@max-ai/cli) is the fastest way to build and deploy marketplace apps.
Installation
max-ai command is available globally.
Authentication
~/.max-ai/config.toml.
You’ll be prompted to select an environment:
| Environment | Dashboard | API |
|---|---|---|
| Staging | app.maxcare.dev | api.maxcare.dev |
Manual API Key
For CI or headless environments, pass the key directly:Creating an App
- Validates your authentication
- Prompts for app name, slug (checked for availability), and category
- Creates the app on the Max AI platform
- Scaffolds a full Next.js project from the official template
- Writes
max-ai.app.tomlwith yourclient_id - Installs dependencies
Example
Local Development
- Conflict detection — Compares your local
max-ai.app.tomlwith the server config. If they differ, prompts you to choose local or server values. - Dev server — Starts
npm run devin the current directory - Cloudflare Tunnel — Exposes your local server via a public HTTPS URL (free, no account needed)
- Registration — Registers your app as a draft on the platform with the tunnel URL
- Auto-install — Installs the app in your organization so you can test it immediately
Options
| Option | Description |
|---|---|
--no-tunnel | Skip the Cloudflare tunnel (use when you have your own public URL) |
--port <port> | Override the dev server port (default: 3000) |
Prerequisites
The tunnel feature requires cloudflared:Example
Seeding Test Data
Deploying
Options
| Option | Description |
|---|---|
--version <version> | Explicit version number (default: auto-increment patch) |
Prerequisites
Before deploying:- Set
hosting.urlinmax-ai.app.tomlto your production HTTPS URL - Your app must be hosted and publicly accessible
Example
Configuration File
The CLI usesmax-ai.app.toml as the source of truth for your app’s configuration. This file is created by max-ai app init and synced during development.
Key Fields
| Field | Description | Editable |
|---|---|---|
app.name | Display name | Read-only after creation |
app.slug | URL-safe identifier | Read-only after creation |
app.client_id | Platform identifier | Set by CLI, do not modify |
app.category | App category | Read-only after creation |
version.number | Semver version | Updated on deploy |
hosting.url | Production URL | Set before deploying |
permissions.scopes | Required API scopes | Editable |
permissions.optional_scopes | Optional API scopes | Editable |
listing.* | Marketplace listing info | Editable |
