docs/docs/en/ai/ai-quick-start.md
This page is a NocoBase CLI installation and initialization guide for AI Agents (such as Claude Code, Codex, Cursor, Copilot, etc.).
If you are a human user, please refer to Quick Start.
Confirm the user has the following dependencies installed:
node -v to check)yarn -v to check). If not installed, install via npm install -g yarngit --version to check). If not installed, install from the Git websitedocker -v to check; if not installed and the user needs Docker, guide them to install from the Docker website, otherwise skip.If the prerequisites are not met, tell the user they need to install the missing dependencies first, provide installation links and brief guidance. After confirming all prerequisites are met, proceed to the next step to install CLI.
If the user already has NocoBase CLI installed (run nb --version to check), proceed to the next step. If not, run the following command to install:
npm install -g @nocobase/cli
Run nb --version to confirm successful installation.
⚠️ IMPORTANT: You MUST run the exact command below. Do NOT modify, replace, or omit the --ui flag. Do NOT attempt to "speed things up" by using non-interactive mode or assembling parameters yourself — --ui is the only correct way to initialize.
nb init --ui
This command launches a browser-based visual wizard where the user completes all configuration (including installation method, database, admin account, etc.). Your responsibilities as an AI Agent are:
nb init --ui — do not append any additional parametersnb env list
Confirm the output shows the configured environment and its running status. Then remind the user to open the running NocoBase instance URL and log in with the configured account and password.
Tell the user the installation is complete. CLI configuration is stored in the global directory (default ~/.nocobase/), so the AI Agent can access it from any directory — no need to enter a specific working directory.