TheDocumentation Index
Fetch the complete documentation index at: https://docs.insforge.dev/llms.txt
Use this file to discover all available pages before exploring further.
@insforge/cli is the interface a coding agent uses to operate your backend. Where a human reaches for the dashboard, the agent reaches for the terminal: it runs a command, reads the output, and decides what to do next. Every command speaks --json, so the agent works from structured data instead of scraping a screen.
Run the CLI with
npx @insforge/cli. Do not install it globally, so the agent always uses the version pinned to the project.Why a CLI for agents
A dashboard is built for a human pointer; a CLI is built for anything that can write text. Pass--json to any command and the agent gets a structured result it can parse; pass --yes and it runs without stopping for a confirmation prompt. Schema, auth config, storage, functions, deploys, branches, and diagnostics are all subcommands of the same tool, so there is one surface to learn instead of a dashboard to navigate. It runs in any terminal, any editor, or CI, with no integration to set up. And after a change, the agent can run npx @insforge/cli diagnose and read back exactly what broke.
Command surface
| Area | Commands |
|---|---|
| Auth & context | login, logout, whoami, current, list |
| Project | create, link |
| Schema | db migrations new, db migrations up, db migrations list |
| Config as code | config plan, config apply, config export |
| Branching | branch create, branch merge, branch reset, branch delete |
| Build | functions, storage, deployments, secrets, schedules, ai |
| Diagnose | diagnose, diagnose advisor, diagnose db, diagnose logs, metadata |
npx @insforge/cli help <command> for the flags on any of these.
A typical agent run
Let the agent interpret the output
Diagnostics ships an AI flag so the agent can hand its own backend data to a model and get back an explanation:Next steps
- Put auth and SMTP in version control with config as code.
- Test risky changes on a backend branch before touching production.