Quick start in 5 minutes
This guide shows how to get Rabetbase CLI 2.0 up and running quickly, in both new and existing projects.
Recommended: automated install via an AI Agent
If you already use an AI coding tool such as Claude Code, Codex, Cursor, Trae, or Windsurf, just copy the prompt below to your AI assistant. Following the guide, it will install the CLI, install the Skill, and complete the login — you only step in for browser authorization or project confirmation.
Prompt (copy it straight to your AI assistant):
Mainland China node:
帮我安装 Rabetbase CLI:https://www.lovrabet.com/agent-install-guides/cn/rabetbase-cli.mdIndonesia node:
帮我安装 Rabetbase CLI:https://www.lovrabet.id/agent-install-guides/id/rabetbase-cli.mdNotes:
INFO
- Authorization is where AI Agent installs most often get stuck: when the Agent pastes the actual
Login URL, open the link and complete the browser authorization first, then return to the chat and tell the Agent "authorization complete". - If the Agent asks whether to initialize a project, confirm only when the current directory really is the target project. If you're just installing the CLI, there's no need to run
rabetbase project init.
Supported AI Agent tools: Claude Code, Codex, Cursor, Qoder, Trae, Windsurf, GitHub Copilot, OpenCode, Hermes Agent, OpenClaw
💡 If you don't use AI Agent tools, or you want to control every step yourself, continue with the manual installation below.
Manual installation
For: first-time Rabetbase CLI users whose machines have never had any version installed.
>> Watch the installation screencast
1.1 Install the CLI
Package: @lovrabet/rabetbase-cli
# 全局安装(推荐)
npm install -g @lovrabet/rabetbase-cli@latest
# 验证安装
rabetbase --version1.2 Install the Rabetbase Skill
Use the CLI's built-in entry point:
rabetbase skill installIf you need the raw skills command, this works too:
npx skills add lovrabet/rabetbase -g -yInstall it globally so your AI assistant can use
rabetbasefrom any project directory.
1.3 Authenticate
rabetbase auth loginComplete the OAuth login in the browser that opens; the CLI saves the session automatically. One login covers all projects.
1.4 Initialize a project
Initialize configuration inside an existing project directory:
cd your-project/
rabetbase project initCreate a new project from scratch:
rabetbase project create1.5 Quick verification
rabetbase doctor
rabetbase schema --format compress
rabetbase app list --format compressTo confirm --jq is available, run one more:
rabetbase schema --format compress --jq '.data.cli.version'2. Changes worth knowing in the current release
--jqis more stable: the latest release bundles a jq sidecar, so it no longer relies onnode-jqdownloading a binary from GitHub at install time — better stability on mainland China networks and in CI.- Dataset listings are more complete by default:
rabetbase dataset listnow returns DO V2 datasets by default, includingDB_TABLEandMETADATA. Add--source DB_TABLEto see database tables only, or--source METADATAto see metadata only. - The AppCode environment variable must be used explicitly: CI pipelines can still store
RABETBASE_APPCODE, but commands must pass--appcode "$RABETBASE_APPCODE". The CLI no longer silently overrides project configuration from an environment variable. - Writes are safer by default:
rabetbase page generate-startreturns only a dry-run preview unless you explicitly add--apply, and writing project configuration no longer drags global app settings into project files. - Dataset write operations require an explicit target:
dataset rename,field-update,extend-update,delete, and similar commands no longer rely on fuzzy context. Select the target with--code,--id, or--dbid, and run--dry-runfirst. - Menu asset updates are more conservative: when
rabetbase menu updaterefreshes CDN assets, it preserves the page's existingextendconfiguration, reducing the risk of overwriting production settings. - You can now query real data during development:
rabetbase data filterandrabetbase data getOneare official commands — handy for quickly checking what real data looks like at dev time. - One unified Skill install entry point: just run
rabetbase skill install— no need to memorize the underlyingnpx skills add ...form.
3. Checklist
Fresh install
[ ] Install the CLI:
npm install -g @lovrabet/rabetbase-cli@latest[ ] Install the Skill:
rabetbase skill install[ ] Authenticate:
rabetbase auth login[ ] Initialize a project:
rabetbase project initorrabetbase project create[ ] Verify:
rabetbase doctor
4. Next steps
- Using Rabetbase in Claude Code: from one sentence to a full feature
- Configuration: apps, environments, multiple apps
- Rabetbase CLI changelog