Skip to main content
The CLI handles everything that needs the admin key: tables, migrations, buckets, realtime channels, functions, secrets and payment keys. App code never does these - it uses the SDK with the publishable key.

Credentials

The CLI reads .env.local (then .env) in the current directory:
Both are on your app’s page in the Result dashboard. To override them, pass the global flags before the command: result --url <url> --key <key> <command>.

result init

Run this once per project, first. It:
  1. Verifies the credentials against the live backend.
  2. Writes the backend rules into AGENTS.md (creating or updating a marked section - safe to re-run).
  3. Creates CLAUDE.md pointing at AGENTS.md if you don’t have one.
That persistence step is what keeps AI coding agents working correctly in future sessions - a fresh chat thread reads AGENTS.md and knows the SDK, the CLI, and the rules without being told.

Errors

Every failure prints the backend’s own fix hint:
Full command list: CLI reference.