@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:
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
api.maxcare.dev.
Options
Prerequisites
The tunnel feature requires cloudflared:Example
Deploying (Beta)
App deployment via the CLI is currently in beta. The deployment workflow may change as we refine the experience.
Options
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
You can also edit your app’s configuration as TOML directly in the Developer Console.
