CLI & publishing
Use the CLI to sync and publish forms, and choose the right key for each command.
Choose the credential by workflow
| Workflow | Credential | Lifecycle |
|---|---|---|
| Render a published form by formId or slug | No key | The dashboard's published version loads and accepts responses. |
| Push reviewed JSON from a terminal | Private CLI token from fillo login | A clean update can publish immediately. Use --stage for a draft and review pending edits before publishing. |
| Connect Zapier | Private API token | Authorizes Zapier form discovery and response hook subscriptions. |
Connect the CLI
Use login for an existing Fillo account. It opens the browser approval page and catches the token on a local loopback, with nothing to copy or type. Headless, SSH, CI, and agent sessions fall back to a device code automatically; force it with --headless.
After an ordinary login, project list shows every site/app in the billed workspace. project create makes and selects an isolated project; project select deliberately retargets later commands. A project-specific agent handoff stays pinned and cannot enumerate, create, or select sibling projects.
Agent bootstrap can install the skill and authorize an account. Existing preview workspaces can still be recovered using their original emailed link.
npx @usefillo/cli@latest login --headless
npx @usefillo/cli@latest whoami --jsonKeep agent tooling current
New CLI and local MCP installations check for compatible stable releases at most once an hour and run newer versions from a private cache. Offline or failed checks fall back to the available version. Hosted MCP connections receive server updates when Fillo deploys.
Existing installations need one fresh launch: run npx @usefillo/cli@latest --agent-help. Configure local MCP clients with npx -y @usefillo/mcp@latest and restart the connection to acquire the updater. fillo --version reports the installed launcher version, which can differ from the newer runtime used by commands.
The CLI also refreshes opted-in skills it already manages in the current project and user scope, including registered custom destinations. It does not create missing skills or replace unrelated skills. Plugin-managed skills follow the host application's plugin updater.
Set FILLO_AUTO_UPDATE=0 to keep an explicitly pinned CLI or MCP installation unchanged. CI and development checkouts skip automatic updates. Core, React, and DOM SDK dependencies continue to follow your project's package manager and lockfile.
Push a reviewed schema
push accepts JSON by default. For an existing form, pull its ID and base revision before editing. A new form returns the ID to use for future edits and embeds.
- An authorized update can publish from clean live state. An existing unpublished draft requires review of all combined edits.
--stagesaves a draft revision.--draftis an alias for--stage; without an existing form ID or handle, either creates a new draft form.fillo status <formId|handle>is read-only: it reports the form's status and live URL, plus any storage warning with the settings link that resolves it.- A
file_uploadfield still needs a connected storage destination before the CLI can publish the form. - JavaScript schema files require the explicit
--allow-codeflag because loading them executes local code. Prefer JSON for reviewable automation.
fillo pull <form-id> --out form.json
# Apply the requested edits to form.json, preserving its id and baseRevision.
fillo push form.json --json
fillo status <form-id>Operate the workspace from the terminal
Day-two operations do not need the dashboard: select the intended project, promote a staged revision, send one safe test response, and manage project keys, responses, storage, Slack, webhooks, settings, and workspace members from the same login.
CLI command reference lists the commands with their flags, the --json contract, and the three tiers of confirmation the CLI asks for before an outward or irreversible change.
Start with fillo --agent-help. fillo commands search <task words> finds command families and MCP tools; fillo commands schema <name> returns one parser contract with help, or a local MCP contract for a fillo_ name. Catalogue commands need no login. Select response answers with --fields plan,score, omit answers with --fields none, and omit metadata with --include-meta=false.
keys createscopes with--preset read|agent|full(or explicit--scopes) and shows the plaintext key once;keys listandkeys revoke <keyId>manage the rest of the lifecycle.storage connect s3runs headless (r2is an accepted alias);driveandboxfinish in a signed-in browser.- Every command takes
--jsonfor machine-readable output, and agent mode engages automatically (non-TTY orFILLO_AGENT=1): no ANSI, no browser auto-open, and do-not-retry-login guidance. delete formanddelete workspacerequire a typed confirmation; automation passes--confirmwith the exact title.--yesnever skips the guard.
npx @usefillo/cli@latest project list
npx @usefillo/cli@latest project select customer-site-a1b2c3
npx @usefillo/cli@latest publish onboarding --expected-fingerprint <reviewed-fingerprint>
npx @usefillo/cli@latest test-response onboarding answers.json
npx @usefillo/cli@latest keys create --name automation --preset agent
npx @usefillo/cli@latest responses export onboarding --out responses.csv
npx @usefillo/cli@latest storage connect s3
npx @usefillo/cli@latest webhooks list onboarding
npx @usefillo/cli@latest settings get onboarding
npx @usefillo/cli@latest membersMigrate a browser embed
Replace legacy schema sync with the published form ID from Share. Previously registered forms resolve to their published version. See migration.
Embed the published result
Use the returned form ID with FilloForm in React or renderForm in other browser apps. Loading and submitting the form by ID needs no key.
Install the project skill
The optional Build with Fillo skill gives the agent the form editing and embed workflow. Install it in the shared Agent Skills path or use --dir for another skill directory.
npx @usefillo/cli@latest skill installNext steps
This page for agents: /docs/cli.md · index at /llms.txt
Updated