Reference · Tools
CLI reference
The napalm CLI manages your schemas, queries, keys, branches and clusters from a terminal or CI.
Installation#
curl -fsSL https:// downloads.napalmdata.com/ cli/ install.sh | shcurl -fsSL https:// downloads.napalmdata.com/ cli/ install.sh | shirm https:// downloads.napalmdata.com/ cli/ install.ps1 | iexAfter installing the binary, run napalm login to authorize your workstation in the browser and store a scoped organization token.
napalm loginIn a headless or SSH session without a local browser, napalm login prints a URL to open on any device. The console shows a single-use sign-in code, and napalm login prompts for the code.
The CLI ships as a single self-contained executable with no runtime dependencies. Run napalm <command> --help for command flags or napalm --version to check your installed build. The latest release is 2026.11.8.
Common workflows#
The transcripts below show common day-to-day workflows from initial login to schema migrations, preview branches, service keys, backups and S3 file imports.
Account#
- napalm login#
Authenticate the CLI with your organization via browser sign-in or an existing API token.
- --token <token>
- Authenticate using an existing organization API token (pass
-to read from stdin) instead of opening a browser. - -f, --force
- Re-authenticate even if a valid token is already stored for the current organization.
- --no-browser
- Headless device login for SSH sessions. Prints an authorization URL to open on any device and prompts for the single-use sign-in code from the console.
- napalm logout#
Remove the stored organization token for the active organization, or clear all stored tokens and service keys with
--all.- --all
- Sign out of every organization and remove all locally saved project service keys.
- napalm whoami#
Display the active organization, authenticated identity, token scope and expiration.
- --json
- Format output as JSON.
- napalm orgs ls#
List your signed-in organizations on this machine.
- --json
- Format output as JSON.
- napalm orgs use#
Switch the default organization used by subsequent CLI commands (by slug or UUID).
napalm orgs use <org>
Projects#
- napalm projects#
List all projects in the active organization.
- --json
- Format output as JSON.
- napalm new#
Create a starter app in a new folder with email-and-password sign-in, a live query under an access policy, file uploads and hybrid search, plus
AGENTS.mdandCLAUDE.mdfor coding agents. Pass[project]to fill in the project’s address, MCP config and setup commands, including CORS access for thehttp://localhost:5173dev server.napalm new <folder> [project]
- napalm status#
Audit a project’s configuration across every feature: HTTP API, access policies, sign-in, deployed queries, service keys, files, search, managed models, webhooks, actions, handlers, schedules, change log, backups, GitHub integration and agent access. Each row reports whether the feature is active, flags configuration gaps (such as file types without a bucket, email verification without SMTP or a search index with no deployed search query on a locked-down API) and prints the command to fix each gap. If your token lacks permission for a check, only the affected layers report
unread.napalm status <project>
- --json
- Emit JSON entries with
key,layer,state(on,off,gap,unread),standingandcommand. Scripts should match onkeyandstate, aslayerandstandingare human-readable display text.
- napalm repository show#
Show the connected GitHub repository and pull-request preview settings: schema directory, whether merges push to
mainand whether preview branches copy schema only or data too.napalm repository show <project>
- --json
- Format output as JSON.
- napalm repository follow#
Connect a GitHub repository to a project or update its pull-request settings. Every pull request gets an isolated
pr-<number>branch, an updated migration comment and a status check. Install the Napalm GitHub App on the repository in the console first.napalm repository follow <project> <owner/name> [--schema-path dbschema] [--no-push-main] [--copy data]
- --schema-path <path>
- Folder containing the
.gelfiles,queries/andseed.edgeql(defaultdbschema). - --no-push-main
- Do not push the schema to
mainwhen a pull request merges. - --copy <schema|data>
- Contents of a new pull-request branch:
schemacopiesmain’s schema only, anddatacopiesmain’s rows too. - --json
- Format output as JSON.
- napalm repository remove#
Disconnect the GitHub repository from the project, delete active
pr-<number>preview branches and stop posting pull-request comments or checks. Bothmainand your GitHub repository remain untouched.napalm repository remove <project>
- -y, --yes
- Remove without interactive confirmation.
Queries#
- napalm query#
Execute a single EdgeQL statement against a project using the project’s service key under your schema’s access policies.
napalm query <project> "<edgeql>" [--var name=value ...] [--dry-run]
- -v, --var <name=value>
- Bind a query parameter (
$name). Values that parse as JSON numbers, booleans, arrays or objects keep the JSON type. - -f, --file <path>
- Read the EdgeQL statement from a file (or pass
-as the query argument to read from stdin). - --key <key>
- Authenticate with this service key instead of the saved project key or
NAPALM_KEY. - --dry-run
- Execute a mutation inside a rolled-back transaction. Returns the before/after state of every modified object and the snapshot’s bookmark.
- --json
- Print compact single-line JSON output.
- napalm call#
Invoke a deployed query by name. The query’s declared
$variablesbecome typed CLI flags. Run without a name to list all deployed queries, or pass--helpafter the name to list the flags.napalm call <project> [<query> [--<variable> <value> ...] [--dry-run] [--json]]
- --<variable> <value>
- Pass a query parameter by flag name (with
_mapped to-, such as--due-datefor$due_date), or use--var name=value. - --key <key>
- Authenticate with this service key (pass before the query name).
- --dry-run
- Preview a write query’s before/after object changes and roll back without committing.
- --json
- Print compact single-line JSON output.
- napalm watch#
Open a live query stream from your terminal and print the initial result set followed by each incremental commit patch as rows change.
napalm watch <project> "<edgeql>" [--var name=value ...] [--json]
- -v, --var <name=value>
- Bind a query parameter (
$name). - --key <key>
- Authenticate with this service key instead of the saved project key or
NAPALM_KEY. - --json
- Emit each
resultandpatchevent as newline-delimited JSON.
- napalm ask#
Ask a natural-language question against a project whose schema is shared. A model synthesizes an EdgeQL statement and validates it against the compiler. Napalm runs read-only statements under your access policies.
napalm ask <project> "<question>" [--dry-run]
- --no-answer
- Return only the synthesized EdgeQL statement and raw query rows without sending the rows back to the model for prose summarization.
- --dry-run
- If the question requires a mutation, run the proposed statement as a rollback dry run and display the before/after diff. An interactive terminal then prompts to apply the change for real.
- --key <key>
- Authenticate with this service key instead of the saved key or
NAPALM_KEY. - --json
- Format the full response as JSON.
- napalm models#
Show configured AI model providers and managed-model spend for a project, enable the built-in
napalmprovider or configure your own provider API keys.napalm models <project> [--give | --add openai [--secret-stdin] | --remove openai] [--branch pr-12]
- --give
- Enable
ext::aiand provision a dedicatednapalmmodel provider key for the project (requiresmanagescope). - --add <provider>
- Configure or replace a project-owned API key for
openai,anthropicormistral(requiresmanagescope). Reads the secret fromNAPALM_PROVIDER_SECRETor stdin (--secret-stdin) rather than command-line arguments. - --remove <provider>
- Remove a project-owned provider and its key.
- --secret-stdin
- Read the provider API key from stdin instead of
NAPALM_PROVIDER_SECRET. - --branch <name>
- Inspect or update model providers on
<name>instead ofmain. - --json
- Format output as JSON.
- napalm insights#
Display the top queries by execution time across all active cluster members, including replica read ratios, per-policy evaluation overhead and index recommendations.
napalm insights <project> [--by time|calls|mean] [--limit 20] [--days 7]
- --by <order>
- Sort statements by total
time(default),callsormeanlatency per call. - --limit <n>
- Maximum number of statements to return (default
20). - --days <n>
- Window in days (1–30, default
1) for deployed query latency percentiles. - --json
- Format full per-member telemetry as JSON.
Schema#
- napalm schema pull#
Fetch the current schema SDL of a project branch.
napalm schema pull <project> [--branch pr-12] [-o dbschema/default.gel]
- -o, --output <path>
- Write SDL to the specified file instead of stdout.
- --branch <name>
- Pull from the specified branch instead of
main.
- napalm schema push#
Plan, preview and apply a transactional migration from your local
.gelschema (dbschema/by default) to a project. Validates all deployed queries and reports root placement andnotifywebhook changes. When a migration requires disambiguation (such as a backfill expression or rename), the CLI reads answers fromdecisions.yamlbeside the schema. Interactive terminals prompt for missing answers and offer to save them, while non-interactive runs print the required YAML and exit non-zero.napalm schema push <project> [dbschema] [--branch pr-12] [--review]
- -y, --yes
- Apply the migration without interactive confirmation prompts. Unresolved migration decisions still stop the push and print the required YAML.
- -p, --plan
- Print the migration plan, root classifications and affected webhooks, then stop without applying changes.
- --decisions <file>
- YAML file supplying migration disambiguation answers (
decisions.yamlbeside the schema by default):fill,convertandsingleexpressions, plusrenameorreplacechoices. - --json
- Format the migration plan or execution report as JSON.
- --queries <folder>
- Directory of
.edgeqlquery files to validate and deploy atomically with the schema migration (dbschema/queriesby default). - --branch <name>
- Apply the schema migration to an isolated branch instead of
main. - --review
- Emit a Markdown pull-request migration review comparing your local schema against
mainwithout applying changes. Exits non-zero if a query breaks or disambiguation is required.
- napalm schema draft#
Draft an initial
.gelschema from apg_dump --schema-onlySQL dump, a Prisma schema or a Convex schema. Tables and models map to object types (retainingold_idfor data migration), foreign keys, relations andv.idreferences map to links, and join tables, many-to-many relations and ID arrays map tomultilinks with generated backlinks. The translator extracts shared properties (across three or more types) into an abstract base type, convertsCHECK (... IN ...)text columns and literal unions into enums, translates timestamp-update triggers and@updatedAtfields intorewriterules, and converts generatedtsvectorcolumns and Convex search indexes into full-text search indexes. Prisma and Convex drafts preserve original field names, and PostgreSQL RLS policies become comments above fail-closed placeholder access policies until you write the EdgeQL condition.napalm schema draft --from old-schema.sql|schema.prisma|convex/schema.ts [-o dbschema/default.gel]
- --from <path>
- Path to a
pg_dump --schema-onlySQL file, aschema.prismafile (or directory of.prismafiles), or a Convexschema.tsfile (orconvex/directory). - -o, --output <path>
- Write the draft to the specified file (
dbschema/default.gelby default). - -y, --yes
- Replace an existing file without an interactive confirmation prompt.
- napalm schema index#
Build a recommended B-tree or composite index on
main(as suggested bynapalm insights). Previews the DDL migration first.napalm schema index <project> <Type> <property> [<property>…]
- -y, --yes
- Apply without interactive confirmation.
- -p, --plan
- Print the DDL statement, then stop without applying changes.
- --json
- Format output as JSON.
Deployed queries#
- napalm queries push#
Compile and deploy your
.edgeqlquery files to the project so callers, the project CLI, MCP and A2A can invoke each query by name.napalm queries push <project> [--queries dbschema/queries] [--branch pr-12]
- --queries <folder>
- Directory containing
.edgeqlquery files (dbschema/queriesby default). - -y, --yes
- Deploy without prompting when removing queries deleted locally.
- -c, --check
- Type-check all query files against the schema and exit without deploying.
- --branch <name>
- Type-check queries against a branch schema (branches do not host deployed queries).
- --json
- Format output as JSON.
- napalm queries ls#
List all deployed queries on the project, including write capability, volatility (
immutable,stable,volatile,modifying) and CLI/agent visibility.napalm queries ls <project>
- --json
- Format output as JSON.
- napalm queries offer#
Control whether specific deployed queries are exposed as subcommands in your generated project CLI or as tools/skills on the MCP and A2A servers.
napalm queries offer <project> <query>... (--cli | --no-cli | --agents | --no-agents)...
- --[no-]cli
- Show or hide the named queries in the project’s generated CLI.
- napalm generate#
Compile
.edgeqlfiles indbschema/queries/against the project schema, emit an OpenAPI 3.0 specification (napalm/openapi.json) and optionally generate a typed SDK and live-query hooks.napalm generate <project> [--lang ts] [--deployed] [--branch pr-12] [--queries dbschema/queries] [-o napalm]
- --queries <folder>
- Directory containing
.edgeqlquery files (dbschema/queriesby default). - -o, --out <folder>
- Output directory for
openapi.jsonand generated client files (napalmby default). - --lang <language>
- Generate a typed client for
ts,python,go,dart,rust,csharp,swiftorkotlin. - --deployed
- Generate client bindings from the project’s deployed queries (
GET /openapi.json). Each call sends onlyvariables. - --branch <name>
- Type-check queries against a specific branch schema instead of
main.
Branches#
- napalm branches ls#
List
mainand all branches on the project, including shard placement, whether data was cloned and creation time.napalm branches ls <project>
- --json
- Format output as JSON.
- napalm branches create#
Create an isolated branch from
mainwith a copy of its schema, sign-in settings and extensions (--dataalso clones all rows). Waits for provisioning to finish unless--no-waitis set.napalm branches create <project> <name> [--data] [--preview] [--no-wait]
- --data
- Clone all rows and file references from
maininto the branch. The copy takes longer asmaingrows. - --preview
- Place the branch on the cluster’s preview shard (when present) to isolate preview workloads from
main. - --no-wait
- Return as soon as the branch operation is queued and print the operation ID if provisioning is still running.
- --json
- Format output as JSON.
- napalm branches move#
Move a branch to another shard in the same cluster while continuing to serve reads at the same endpoint. Writes pause briefly during cutover (or for the full copy with
--pause).napalm branches move <project> <name> --shard shard-k3m9x2p7qa [--pause]
- --shard <name>
- Target shard name.
- --pause
- Pause writes for the entire copy instead of only during cutover.
- --json
- Format the job as JSON.
- napalm branches restore#
Restore a branch (
mainby default) in place to a point in time within the backup retention window while keeping the same endpoint. Because point-in-time restore rewinds the underlying shard, any other branches on that shard roll back to the same timestamp.napalm branches restore <project> [name] --to 2026-11-07T09:30:00Z [--with pr-12]
- --to <time>
- Target timestamp in RFC 3339 format (or local ISO timestamp).
- --with <name>
- Acknowledge other branches on the same shard that will roll back with this restore (comma-separated). Required alongside
--yeswhen the shard hosts multiple branches. - -y, --yes
- Restore without interactive confirmation.
- --no-wait
- Return immediately after queuing the restore operation.
- --json
- Format the job as JSON.
- napalm branches remove#
Permanently remove a non-main branch along with its data and keys.
napalm branches remove <project> <name>
- -y, --yes
- Remove without interactive confirmation.
- napalm branches keep#
Configure change log retention in days across a project, for pull-request branches or for a single branch. Retention beyond the included window is billed as storage, and shortening the window purges older entries within an hour.
napalm branches keep <project> [<branch>] --days 90 [--pull-requests 30] | --cluster
- --days <n>
- Retention window in days (must match a supported retention tier).
- --pull-requests <n>
- Retention window in days for pull-request preview branches (project-level only).
- --cluster
- Clear a branch’s custom override and inherit the cluster’s retention window.
- --json
- Format output as JSON.
- napalm branches dropped#
List retained change logs for deleted branches along with entry counts and scheduled expiration dates. Inspect a retained log with
napalm changes <project> --branch <name>.napalm branches dropped <project>
- --json
- Format output as JSON.
- napalm branches forget#
Permanently purge a deleted branch’s retained change log immediately instead of waiting for retention expiry. Billing for the log stops at the end of the UTC day.
napalm branches forget <project> <branch>
- -y, --yes
- Delete without interactive confirmation.
- --json
- Format output as JSON.
- napalm changes#
Inspect the branch change log: commit timestamps, caller types, and affected object types and row counts (metadata only, with no row field values). Also reports log gaps and any transactions lost during an unplanned failover (
--lost).napalm changes <project> [--branch pr-12] [--since 1h | --after <bookmark>] [--lost <bookmark>] [--limit 100]
- --branch <name>
- Target branch (defaults to
main). - --since <span>
- How far back to read: a relative duration (
30m,2h,1d) or an RFC 3339 timestamp (default1h). - --after <bookmark>
- Resume reading immediately after the specified commit bookmark.
- --lost <bookmark>
- Inspect the commit summary of transactions lost in the specified failover gap bookmark.
- --limit <n>
- Maximum entries to return, up to 1,000 (default
100). - --json
- Format output as JSON.
Access#
- napalm keys ls#
List metadata for a project’s service keys (labels, branches, read-only flags, the deployed queries each key may call and expiration dates).
napalm keys ls <project>
- napalm keys create#
Issue a new service key for a project or branch and print the bearer secret once.
napalm keys create <project> [--label ci] [--read-only] [--days 30] [--branch pr-12] [--allow-query listNotes] [--save]
- -l, --label <label>
- Human-readable label shown in the console and audit logs.
- --read-only
- Restrict the key to read-only queries.
- --days <days>
- Validity window in days, from 1 to 365 (default
30). - --branch <name>
- Bind the key to a specific branch (
mainby default). - --global <module::name=value>
- Override a branch service global for calls made with this key so access rules can tell keys apart. Repeatable.
- --allow-query <name>
- Restrict the key to invoking only the named deployed query (repeatable). Blocks ad-hoc statements and unlisted queries. Each query must already be deployed on the target branch.
- --save
- Save the key in
~/.napalm/config.jsonfornapalm query,napalm callandnapalm mcp.
- napalm keys revoke#
Immediately revoke a service key by ID.
napalm keys revoke <project> <key-id>
- napalm keys reach#
Count the records and file bytes a service key (or a prospective key with
--new) can select, update and delete across every object type under your access policies.napalm keys reach <project> (<key-id> | --new [--read-only] [--branch pr-12] )
- --new
- Simulate reach for a key not yet issued.
- --read-only
- With
--new, simulate a read-only service key. - --branch <name>
- With
--new, target the specified branch (mainby default). - --global <module::name=value>
- Override a branch service global for calls made with this key so access rules can tell keys apart. Repeatable.
- --json
- Format output as JSON.
- napalm keys usage#
Show per-key activity on a branch: last use, calls, writes and failed calls over the last 30 days, last refused call and source addresses. Pass a key’s ID or label to inspect its hourly and daily history, failed calls by error code and deployed query, called queries and source addresses. A revoked key’s history stays readable.
napalm keys usage <project> [<key>] [--days 30] [--branch pr-12]
- --days <days>
- Number of days to show (default
30), up to the branch’s configured usage retention window. - --branch <name>
- Target branch (
mainby default), including when resolving a key by label. - --json
- Format output as JSON.
- napalm people ls#
List or search users who have signed up on a project branch (up to 50 results matching email substring, UUID or OAuth subject). Requires
managescope.napalm people ls <project> [<search>] [--branch pr-12]
- --branch <name>
- Target branch (
mainby default). - --json
- Format output as JSON.
- napalm people reach#
Simulate a signed-up user’s session and count the records and file bytes that user can select, update and delete per object type. Napalm records each check in organization activity.
napalm people reach <project> <person> [--branch pr-12]
- --branch <name>
- Target branch (
mainby default). - --json
- Format output as JSON.
- napalm grants ls#
List up to 100 agent grants on a branch, live grants first. Each row shows the agent, the user it acts for, read-only or read-write access, allowed queries, grant globals, expiry or revocation status, last use, call count and grant ID. Listing grants wakes an idle database and requires
managescope.napalm grants ls <project> [--branch pr-12]
- --branch <name>
- Target branch (
mainby default). - --json
- Format output as JSON.
- napalm grants revoke#
Revoke an agent grant by ID so Napalm rejects the agent’s next call. Users can re-authorize the agent later on your app’s consent page. Requires
managescope and records an organization activity entry.napalm grants revoke <project> <grant-id> [--branch pr-12] [--yes]
- --branch <name>
- The grant’s branch (
mainby default). - -y, --yes
- Revoke without interactive confirmation.
- napalm grants reach#
Count the records and file bytes an agent grant can select, update and delete per object type. Evaluates access under the user’s session with the grant’s globals and read-only setting, rejecting revoked or expired grants. Requires
managescope and records an organization activity entry.napalm grants reach <project> <grant-id> [--branch pr-12]
- --branch <name>
- The grant’s branch (
mainby default). - --json
- Format output as JSON.
- napalm explain-access#
Evaluate every access policy on a specific object UUID as a service key, a signed-up user (
--as), a prospective key (--new) or the default service context. The report shows which rules passed or failed and never exposes field values.napalm explain-access <project> <object-id> [--key <key-id> | --as <person> [--branch pr-12] | --new [--read-only] [--branch pr-12]]
- --key <key-id>
- Evaluate access policies as the specified service key ID.
- --as <person>
- Evaluate access policies as the specified user (by email or identity UUID).
- --new
- Evaluate access policies as a key not yet issued.
- --read-only
- With
--new, evaluate as a read-only service key. - --branch <name>
- With
--asor--new, target the specified branch (mainby default). - --global <module::name=value>
- Override a branch service global for calls made with this key so access rules can tell keys apart. Repeatable.
- --json
- Format output as JSON.
- napalm test#
Run declarative access-policy tests from
dbschema/testsagainst a branch. Each step executes one statement asanonymous, a user, a user via an agent grant, a service key orsetup, asserting expected rows, row counts or policy refusals. Napalm compiles every statement up front, rolls back every test transaction and exits1on any failure.napalm test <project> [<name>] --branch pr-12 [--tests dbschema/tests]
- --branch <name>
- Target branch (required). Pass
mainto run againstmain. - --tests <folder>
- Directory containing
.yamltest files (dbschema/testsby default). - --queries <folder>
- Directory containing
.edgeqlquery files forcallsteps (dbschema/queriesby default). - --json
- Format the results as JSON.
- napalm endpoint#
Inspect or update a project’s HTTP API settings, read-only mode, schema sharing, query passthrough policy, allowed CORS origins and grant globals.
napalm endpoint <project> [--branch pr-12] [--enable] [--read-only] [--share-schema] [--passthrough keys] [--allow-origin URL] [--grant-global default::current_org]
- --branch <name>
- Inspect or update a specific branch’s endpoint settings instead of
main. - --enable, --disable
- Turn the project’s HTTP API on or off without deleting data or keys.
- --read-only, --read-write
- Enforce read-only mode across all callers, or allow writes permitted by access policies.
- --share-schema, --hide-schema
- Allow or block schema introspection (
GET /schema),/askand MCP schema tools. - --passthrough <none|keys|all>
- Control who may execute ad-hoc EdgeQL statements instead of deployed queries (
none,keysorall). - --allow-origin <url>
- Add an allowed browser origin for CORS requests: HTTPS, or
http://localhostwith a port for a dev server. - --remove-origin <url>
- Remove an allowed browser origin.
- --grant-global <module::name>
- Allow users to set this global when approving an agent grant. Because the user chooses the value, reference it only in
denypolicies. Repeatable. - --remove-grant-global <module::name>
- Remove this global from
grantGlobals. Napalm refuses existing grants that set this global until the user re-approves the agent.
- napalm sign-in show#
Show a project’s sign-in configuration: app name, redirect URLs, session lifetime and enabled providers (without secrets).
napalm sign-in show <project>
- --json
- Format output as JSON.
- napalm sign-in set#
Update a project’s sign-in settings and enable or disable email-and-password sign-in. Omitted flags leave existing settings unchanged.
napalm sign-in set <project> [--app-name Notes] [--redirect https://app.example.com/signed-in] [--session-hours 336] [--[no-]email-password]
- --app-name <name>
- Application name shown on sign-in pages and in emails (required on first setup).
- --redirect <url>
- Allowed OAuth and sign-in redirect URL: HTTPS,
http://localhostfor local development or a custom mobile app scheme (com.example.notes:/). Repeatable. Replaces the existing redirect list./ signed-in - --session-hours <n>
- Session lifetime in hours, from 1 to 8760.
- --[no-]email-password
- Enable or disable email-and-password sign-in.
- --[no-]require-verification
- Require or skip email verification for email-and-password sign-in.
- --logo-url <url>
- HTTPS address of the logo (an empty value clears the logo).
--dark-logo-urlsets the dark-mode logo. - --brand-color <hex>
- Brand color as six hex digits, such as
1f8aed(an empty value clears the color). - --json
- Format output as JSON.
- napalm sign-in provider#
Configure or update an authentication provider:
google,github,microsoft,discord,slack,oidc,passkeysormagicLink. Eachoidcconnection is billed monthly. Reads OAuth client secrets fromNAPALM_CLIENT_SECRETor stdin (--secret-stdin) rather than command-line arguments.napalm sign-in provider <project> <provider> [--client-id <id>] [--issuer-url <url> --display-name <name> [--slug partner]] [--origin <origin>]
- --client-id <id>
- OAuth client ID (OAuth and OpenID Connect providers).
- --secret-stdin
- Read the client secret from stdin instead of
NAPALM_CLIENT_SECRET. - --issuer-url <url>
- OpenID Connect issuer, an HTTPS URL (
oidconly). - --display-name <name>
- Display name of an OpenID Connect provider (
oidconly). - --slug <slug>
- Identifies one of several OpenID Connect providers (
oidconly). - --origin <origin>
- Exact origin where passkeys are created and used: HTTPS, or
http://localhostwith a port for a dev server (passkeysonly). - --[no-]auto-signup
- Allow or block automatic account creation for unknown email addresses (
magicLinkonly). - --[no-]require-verification
- Require or skip email verification before registering passkeys (
passkeysonly). - --json
- Format output as JSON.
- napalm sign-in remove#
Disable and remove a sign-in provider. Existing user accounts remain intact, and nobody can sign in with that provider until you reconfigure it.
napalm sign-in remove <project> <provider> [--slug partner]
- --slug <slug>
- Which OpenID Connect provider to remove when several are configured.
- -y, --yes
- Remove without interactive confirmation.
- --json
- Format output as JSON.
- napalm sign-in email#
Configure the outbound SMTP server for sign-in emails (verification, password resets and magic links). Napalm requires TLS on every SMTP connection and reads the password from
NAPALM_SMTP_PASSWORDor stdin (--password-stdin) rather than command-line arguments.napalm sign-in email <project> --host smtp.example.com --sender "Notes <sign-in@example.com>" --username sign-in@example.com [--port 587 --starttls]
- --host <host>
- SMTP server hostname.
- --port <port>
- SMTP port (default
465). Use587with--starttls. - --sender <address>
- From address, such as
Notes <sign-in@example.com>. - --username <name>
- SMTP username.
- --starttls
- Upgrade with mandatory STARTTLS (typically port
587) instead of implicit TLS. - --password-stdin
- Read the SMTP password from stdin instead of
NAPALM_SMTP_PASSWORD.
- napalm sign-in webhooks add#
Register or update an HTTPS webhook for sign-in events (such as sign-ups, verified emails and password resets). Napalm signs deliveries using the secret read from
NAPALM_SIGNING_KEYor stdin (--key-stdin), which you must supply on every update.napalm sign-in webhooks add <project> <url> --event IdentityCreated [--event EmailVerified] [--replace <url>]
- -e, --event <event>
- Event to send. Repeatable.
- --replace <url>
- Existing destination URL to replace when updating the URL, events or signing key.
- --key-stdin
- Read the signing key from stdin instead of
NAPALM_SIGNING_KEY.
- napalm sign-in webhooks remove#
Unregister a sign-in webhook destination. Queued deliveries already in flight still complete.
napalm sign-in webhooks remove <project> <url>
- -y, --yes
- Remove without interactive confirmation.
Logic#
- napalm actions ls#
List a branch’s actions: each deployed query with a handler, and each handler’s URL, read-only flag and time limit.
napalm actions ls <project> [--branch pr-12]
- --branch <name>
- Target branch (
mainby default). - --json
- Format output as JSON.
- napalm actions add#
Attach an HTTPS handler to a deployed query. Each call runs the query as the caller, sends matched rows to the handler with a signed caller assertion and returns the handler’s response. Prints the handler signing secret once.
napalm actions add <project> <query> <url> [--read-only] [--timeout 10] [--answer-schema answer.json] [--branch pr-12]
- --read-only
- Mark the handler as read-only so read-only keys and agents may call the action.
- --timeout <s>
- The handler’s time limit, 1 to 30 seconds (10 by default).
- --answer-schema <file>
- Path to an OpenAPI 3.0 JSON schema (or
-for stdin) describing the handler’s JSON response for generated SDKs and MCP tool definitions. - --branch <name>
- Target branch (
mainby default). - --json
- Format the action and the handler’s secret as JSON.
- napalm actions remove#
Detach a query’s handler. The query stays deployed, and calls return the query’s rows again.
napalm actions remove <project> <query> [--branch pr-12] [--yes]
- --branch <name>
- Target branch (
mainby default). - -y, --yes
- Remove without interactive confirmation.
- napalm handlers ls#
Show a branch’s hosted handler pool: deployed build, registered actions, machine sizing and configured secret names.
napalm handlers ls <project> [--branch pr-12]
- --branch <name>
- Target branch (
mainby default). - --json
- Format output as JSON.
- napalm handlers deploy#
Build local handler code for Linux using your language toolchain and deploy the bundle to the branch’s hosted handler machines. Each handler binds to a matching deployed query and registers it as an action. Optional
handlers.jsonentries mark handlers read-only, set a timeout up to 30 seconds or declare a response schema. Every deploy atomically replaces the previous deployment.napalm handlers deploy <project> [--handlers handlers] [--runtime go --handler sendReceipt] [--branch pr-12]
- --handlers <folder>
- Directory containing handler source code (
handlersby default). - --runtime <name>
- Handler runtime (
typescript,python,go,rustordart), inferred from the folder when omitted. - --handler <query>
- Deployed query name served by the build (repeatable). Inferred from source for TypeScript and Python, or declared here or in
handlers.jsonfor Go, Rust, Dart and container images. - --bin <name>
- Cargo binary target name when different from the package name.
- --image <image>
- Deploy a prebuilt container image by digest (
ghcr.io/) instead of building a local folder.acme/ handlers@sha256:… - --registry-user <name>
- Username for a private container registry (prompts for the password without echo unless
--registry-password-fileis set). - --registry-password-file <file>
- Read the private registry password or token from
<file>(or-for stdin). - --branch <name>
- Target branch (
mainby default). - --json
- Format the queued job as JSON.
- napalm handlers size#
Configure memory, CPU class and max machine count for a branch’s hosted handlers. Napalm bills handler memory only while machines are awake.
napalm handlers size <project> --memory 512 [--cpu shared] [--machines 2] [--branch pr-12]
- --memory <MiB>
- Memory per machine in MiB:
256,512,1024or2048. - --cpu <shared|performance>
- CPU scheduling (
performancerequires2048MiB of memory). - --machines <n>
- Maximum count, from 1 to 8 (
1by default). Extra machines wake only while active machines are busy. - --branch <name>
- Target branch (
mainby default). - --json
- Format the queued job as JSON.
- napalm handlers secrets set#
Set a write-only secret environment variable (such as a payment API key) for a branch’s hosted handlers. Reads the value from a hidden prompt,
--value-fileor stdin rather than command-line arguments, and never displays the value again. Secrets set before the first deploy apply automatically when you deploy.napalm handlers secrets set <project> <NAME> [--value-file key.txt] [--branch pr-12]
- --value-file <file>
- Read the secret value from
<file>(or-for stdin). - --branch <name>
- Target branch (
mainby default). - --json
- Format the queued job as JSON.
- napalm handlers secrets remove#
Remove a secret from a branch’s handlers.
napalm handlers secrets remove <project> <NAME> [--branch pr-12]
- --branch <name>
- Target branch (
mainby default). - --json
- Format the queued job as JSON.
- napalm handlers remove#
Remove a branch’s hosted handlers, machines and secrets. The queries stay deployed but are no longer actions.
napalm handlers remove <project> [--branch pr-12] [--yes]
- --branch <name>
- Target branch (
mainby default). - -y, --yes
- Remove without interactive confirmation.
- --json
- Format the queued job as JSON.
- napalm schedules ls#
List a branch’s schedules: each scheduled deployed query, the next run time, the service key and the last job’s result.
napalm schedules ls <project> [--branch pr-12]
- --branch <name>
- Target branch (
mainby default). - --json
- Format output as JSON.
- napalm schedules add#
Run a deployed query on a cron schedule (minute, hour, day of the month, month, day of the week). At each cron time, Napalm queues a job that runs the query as the service key. A failed job retries until the next scheduled time, for 30 days at most.
napalm schedules add <project> <query> '<cron>' --key <key-id> [--time-zone America/Los_Angeles] [--variables variables.json] [--branch pr-12]
- --key <key-id>
- The id of the service key the jobs run as, from
napalm keys ls. The key must belong to the branch. - --time-zone <zone>
- The time zone for the cron, such as
America/Los_Angeles(UTC by default). - --variables <file>
- A file (or
-for stdin) holding each run’s variables as a JSON object. - --branch <name>
- Target branch (
mainby default). - --json
- Format the schedule and the next run times as JSON.
- napalm schedules remove#
Remove a query’s cron schedule and cancel any pending scheduled run. The query itself stays deployed.
napalm schedules remove <project> <query> [--branch pr-12] [--yes]
- --branch <name>
- Target branch (
mainby default). - -y, --yes
- Remove without interactive confirmation.
- napalm queue ls#
List jobs on a branch (newest first) with query name, status, timing, attempt count, completed steps, last failure reason and caller type. The
Whencolumn reports whether a job is scheduled (due), awaiting retry (next attempt), overdue to start (waiting since), executing (running sinceor async handlertaken on),doneorfailed. Never exposes job variables or step outputs.napalm queue ls <project> [--status failed] [--query sendReceipt] [--limit 50] [--branch pr-12]
- --status <status>
- Filter to
pending,running,completed,failedorcancelledjobs. - --query <name>
- Filter to jobs for a single deployed query.
- --limit <n>
- Number of jobs to list, newest first, up to 200 (
50by default). - --branch <name>
- Target branch (
mainby default). - --json
- Format output as JSON.
- napalm queue retry#
Requeue a failed or cancelled job immediately with a 24-hour expiration window.
napalm queue retry <project> <job> [--branch pr-12]
- --branch <name>
- Target branch (
mainby default).
- napalm queue cancel#
Cancel a pending job or an open async handler run (
202 Accepted). Synchronous runs already in progress finish normally. Keeps the job row with statuscancelledso you can re-run it later withnapalm queue retry.napalm queue cancel <project> <job> [--branch pr-12]
- --branch <name>
- Target branch (
mainby default).
- napalm queue clear#
Prune completed, failed and cancelled jobs (along with their attempts and steps) that finished more than
--older-thandays ago. Pending jobs, running jobs and jobs referenced by links from your own records are preserved. Prunes baseext::napalm::Jobrows only unless--own-typesis passed.napalm queue clear <project> --older-than <days> [--own-types] [--branch pr-12] [--yes]
- --older-than <days>
- Prune jobs that finished more than this many days ago (
0to3650). - --own-types
- Also prune finished rows of custom
ext::napalm::Jobsubtypes. - --branch <name>
- Target branch (
mainby default). - -y, --yes
- Clear without interactive confirmation.
- napalm webhooks ls#
List all schema
notifydeclarations on a branch alongside registered webhook destinations and each destination’s delivery health.napalm webhooks ls <project> [--branch pr-12]
- --branch <name>
- Target branch (
mainby default). - --json
- Format output as JSON.
- napalm webhooks add#
Register an HTTPS webhook destination for one or more schema
notifyevents. Delivers signedpingsummaries by default, or access-policy-filteredrowswhen--keyis provided. Displays the HMAC signing secret once.napalm webhooks add <project> <url> --event <notify> [--key <key-id>] [--branch pr-12]
- -e, --event <notify>
- Schema
notifynames the webhook receives (repeatable or comma-separated). - --key <key-id>
- Deliver committed row payloads readable by this service key ID (
rowsmode) instead of summary pings. - --branch <name>
- Target branch (
mainby default). - --json
- Format webhook metadata and signing secret as JSON.
- napalm webhooks remove#
Unregister a webhook destination from a branch.
napalm webhooks remove <project> <url> [--branch pr-12] [--yes]
- --branch <name>
- Target branch (
mainby default). - -y, --yes
- Remove without interactive confirmation.
- napalm webhooks test#
Send a signed test delivery to a registered webhook endpoint and report the receiver’s HTTP response.
napalm webhooks test <project> <url> [--branch pr-12]
- --branch <name>
- Target branch (
mainby default).
- napalm webhooks pause#
Pause outbound deliveries to a webhook URL and coalesce pending notifications.
napalm webhooks pause <project> <url> [--branch pr-12]
- --branch <name>
- Target branch (
mainby default).
- napalm webhooks resume#
Resume a paused webhook destination and flush coalesced notifications.
napalm webhooks resume <project> <url> [--branch pr-12]
- --branch <name>
- Target branch (
mainby default).
- napalm webhooks deliveries#
List recent webhook delivery attempts (newest first), including HTTP status codes, latencies and failure diagnostics.
napalm webhooks deliveries <project> [--url <url>] [--limit 50] [--branch pr-12]
- --url <url>
- Filter deliveries to a single webhook URL.
- --limit <n>
- Maximum deliveries to return, from 1 to 200 (default
50). - --branch <name>
- Target branch (
mainby default). - --json
- Format output as JSON.
- napalm webhooks hosts#
View or restrict the allowlist of outbound hostnames a branch’s webhooks are permitted to contact.
napalm webhooks hosts <project> [--add hooks.example.com] [--remove host] [--clear] [--branch pr-12]
- --add <host>
- Add an allowed hostname or wildcard pattern (
*.example.com). Comma-separated for multiple. - --remove <host>
- Remove a hostname from the allowlist.
- --clear
- Clear the allowlist so webhooks may contact any public HTTPS hostname.
- --branch <name>
- Target branch (
mainby default). - --json
- Format output as JSON.
Files#
- napalm files status#
Report file counts (
Ready,Uploading,Empty) and validation errors for every type extendingext::files::File.napalm files status <project>
- --json
- Format output as JSON.
- napalm files errors#
List file records of
<type>that failed upload validation along with each record’s ID and error reason.napalm files errors <project> <type>
- --json
- Format output as JSON.
- napalm files import#
Import external files from URLs returned by an EdgeQL query into
Emptyfile records on the project. The import checks size and magic-byte format rules.napalm files import <project> (--query 'select Photo { id, url := .legacyUrl }' | --file import.edgeql) [--type default::Photo]
- -q, --query <query>
- EdgeQL query returning
{id, url, size?, contentType?, type?}for each file to import. - -f, --file <path>
- Read the EdgeQL query from a file.
- -t, --type <type>
- Default concrete
ext::files::Filesubtype (such asdefault::Photo) when not returned per row. - --key <key>
- Authenticate with this service key instead of the saved key or
NAPALM_KEY. - -c, --concurrency <n>
- Number of concurrent file transfers, from 1 to 16 (default
4). - --json
- Format the final import summary as JSON.
- napalm files store import#
Copy objects from an S3-compatible bucket into
Emptyfile records using an object-key property on each record. Previews pending file counts per type and spot-checks a sample of source keys before background jobs transfer and validate the bytes against each type’s size and format rules. Reads the secret access key fromNAPALM_SOURCE_SECRET_ACCESS_KEYor stdin (--secret-stdin), encrypts it on receipt and deletes it once the import finishes.napalm files store import <project> --endpoint https://s3.us-east-1.amazonaws.com --access-key-id AKIA… --map type=default::Photo,key=sourceKey,bucket=old-photos [--plan] [--yes]
- --endpoint <url>
- S3-compatible endpoint URL of the source object store.
- --region <region>
- Source bucket region (
autoby default). - --path-style
- Use path-style bucket URLs (for example on MinIO) instead of virtual-hosted bucket URLs.
- --access-key-id <id>
- Access key ID with read and list permissions on the source buckets.
- --secret-stdin
- Read the secret access key from stdin instead of
NAPALM_SOURCE_SECRET_ACCESS_KEY. - --map <mapping>
- Map an
ext::files::Filesubtype to source objects:type=<Type>,key=<property>plusbucket=<name>orbucket-property=<property>, and optionalpublic-property=<property>. Repeatable per file type. - -p, --plan
- Preview pending
Emptyfile counts per type and verify a sample of source objects, then exit without importing. - -y, --yes
- Import without an interactive confirmation prompt.
- --no-wait
- Return immediately after queuing the initial background import job.
- --json
- Format output as JSON.
- napalm files store ls#
List S3-compatible store imports for a project (newest first) with imported, missing, failed and remaining file counts.
napalm files store ls <project>
- --json
- Format output as JSON.
- napalm files store cancel#
Cancel an in-progress store import and delete its stored credentials immediately. Already imported files remain
Ready, so a subsequent import resumes the remainingEmptyrecords.napalm files store cancel <project> <import-id>
Sharding#
- napalm roots#
Inspect root ownership inferred from your schema’s required links: which root type owns each object type, which root types can be placed across shards (such as
Account,Project,Site,WorldorOrganization), and whether each deployed query targets a single shard or fans out across shards.napalm roots <project> [--branch pr-12]
- --branch <name>
- Inspect root classifications on
<name>(such as a pull-request branch) instead ofmain. - --json
- Print the report as JSON.
- napalm shards#
Show storage utilization, active connections and branch placement across each shard of a cluster.
napalm shards <cluster>
- --json
- Format output as JSON.
- napalm placement show#
Inspect shard placement for a branch: root tracking status, bucket assignments per shard, root overrides, regional residency pins and core copy shards.
napalm placement show <project> [--branch pr-12]
- --json
- Format output as JSON.
- napalm placement enable#
Enable root-based shard placement on a branch and backfill root ownership across existing rows without changing your schema or primary keys.
napalm placement enable <project> [--branch pr-12] [--wait]
- napalm placement disable#
Disable root-based shard placement on a single-shard branch.
napalm placement disable <project> [--wait]
- napalm placement add-shard#
Attach an additional cluster shard to a branch and prepare the shard’s schema and reference tables to receive root buckets.
napalm placement add-shard <project> --shard <name> [--branch pr-12] [--wait]
- napalm placement move#
Move a bucket of roots or a single placement root UUID to another shard while the branch stays online. Reads continue uninterrupted and writes pause briefly during cutover. Moving a single root creates a root override that places that root independently of its bucket.
napalm placement move <project> (--bucket 12 | --root <id>) --shard <name> [--wait]
- napalm placement split#
Split a shard in two. A new shard takes the upper half of the source shard’s buckets.
napalm placement split <project> --shard <name> [--region iad] [--wait]
- napalm placement keep#
Pin any placement root UUID to a geographic region for data residency or locality, or clear its regional pin with
--anywhere. Moving a root to satisfy the pin records a root override.napalm placement keep <project> <root> (--region iad | --anywhere)
- napalm placement restore-root#
Restore a single placement root UUID (such as an
Account,Project,Site,WorldorOrganization) and its owned rows to a point in time from shard backups while all other roots on the shard remain live and untouched.napalm placement restore-root <project> <root> --to 2026-11-07T09:30:00Z [--yes]
- napalm placement export-root#
Export a single placement root UUID’s owned rows and files at a consistent snapshot into a ZIP archive. Pass
--outto wait for the export, download the archive and verify its SHA-256 checksum. Napalm retains the archive for 7 days.napalm placement export-root <project> <root> [--branch pr-12] [--out team.zip]
- napalm placement root-archive#
Print a signed download URL for a completed
export-rootarchive, or download and verify the ZIP file with--out.napalm placement root-archive <project> <operation> [--out team.zip]
- napalm placement erase-root#
Permanently erase a single placement root UUID and all owned descendant rows while other roots on the shard remain live. Previews deleted and retained record counts first (
--planexits after the preview), and--receiptwaits to save a signed erasure receipt.napalm placement erase-root <project> <root> [--branch pr-12] [--plan] [--outside] [--receipt receipt.json] [--yes]
- napalm placement rebalance#
Analyze per-shard traffic and storage metrics and recommend bucket moves to balance load across shards.
napalm placement rebalance <project> [--hours 24]
- napalm placement let-go#
Detach an empty shard from a branch once all buckets and root overrides have moved off.
napalm placement let-go <project> --shard <name> [--wait]
- napalm core-copies add#
Provision a consolidated core copy shard that holds every data shard’s rows and serves cross-root analytical queries.
napalm core-copies add <project> [--branch pr-12] [--wait]
- napalm core-copies remove#
Decommission a core copy shard.
napalm core-copies remove <project> --shard <name>
Clusters#
- napalm clusters ls#
List all clusters in the organization.
- --json
- Format output as JSON.
- napalm clusters show#
Inspect a cluster’s topology, PostgreSQL members, Napalm engines, shards and storage buckets.
napalm clusters show <cluster>
- napalm clusters scale#
Scale a cluster’s compute and topology: engine count, CPU class, memory and vCPUs, database member memory, CPU class and vCPUs, read replicas per data shard and total data shards. Omitted flags stay unchanged (omitted CPU counts scale automatically with memory), and the CLI previews planned changes before confirmation.
napalm clusters scale <cluster> (--engines 2 | --engine-cpu shared | --engine-memory 2GiB | --engine-cpus 8 | --member-memory 4GiB | --member-cpu performance | --member-cpus 2 | --replicas 1 | --data-shards 2)...
- --engines <n>
- Number of engines (at least 1).
- --engine-cpu <type>
- CPU type of the engines:
sharedorperformance. - --engine-memory <size>
- Memory per engine, such as
2GiBor2048MiB, in 256 MiB steps. - --engine-cpus <n>
- CPUs per engine. Defaults to the maximum shared CPUs for the selected memory size, or 1 performance CPU per 4 GiB.
- --member-memory <size>
- Memory per database machine (for example
4GiBor4096MiB), in 256 MiB steps. - --member-cpu <type>
- CPU type of the database machines:
sharedorperformance. - --member-cpus <n>
- CPUs per database machine. Defaults to the maximum shared CPUs for the selected memory size, or 1 performance CPU per 4 GiB.
- --replicas <n>
- Number of replicas beside each data shard’s primary.
- --data-shards <n>
- Total number of data shards (shards can be added, not removed).
- -y, --yes
- Scale without interactive confirmation.
- --no-wait
- Return immediately after queuing the scale operation.
- napalm clusters address#
Assign a dedicated
<label>.napalmdata.comhostname and managed TLS certificate to a cluster so every branch serves its API there. Certificates renew automatically, and re-running the command re-provisions the certificate.napalm clusters address <cluster> [--label notes]
- --label <label>
- Subdomain label for
<label>.napalmdata.com(required on first setup and immutable afterward). - --no-wait
- Return immediately after queuing the certificate operation.
- napalm clusters backup#
Trigger an immediate on-demand full backup. On a cluster with a replica, the backup adds no load to the primary.
napalm clusters backup <cluster>
- --no-wait
- Return immediately after queuing the backup instead of following the operation.
- napalm clusters switchover#
Hand off the primary to a replica in a planned switchover with zero data loss.
napalm clusters switchover <cluster> [--member member-k3m9x2p7qa]
- --member <name>
- The name of the replica to promote, as listed by
napalm clusters show. Defaults to a replica that holds every commit. - --no-wait
- Return immediately after queuing the switchover operation.
- napalm clusters hold#
Pause routine Napalm maintenance and nightly backups on a cluster during a critical window. Explicit cluster operations from your organization and automatic failover continue normally.
napalm clusters hold <cluster> --reason "Launch week" [--for 3d] | --remove
- -r, --reason <text>
- Reason for the maintenance hold (required when placing a new hold).
- --for <length>
- Hold duration in hours or days, such as
6hor3d(default1d, maximum7dfrom initial placement). - --remove
- Remove the active maintenance hold immediately.
- --json
- Format output as JSON.
- napalm clusters commit-without-replica#
Set write durability behavior when no replica is reachable, or omit the argument to view the current setting. With
allow(default), the primary commits solo after waiting 5 seconds for a replica, risking those solo commits if the primary fails before a replica catches up. Withrefuse, writes wait until a replica acknowledges.napalm clusters commit-without-replica <cluster> [allow|refuse]
- --json
- Print the setting as JSON.
- napalm operations ls#
List a cluster’s recent operations, newest first.
napalm operations ls <cluster>
- napalm operations show#
Inspect an operation’s status or follow it to completion.
napalm operations show <operation-id> [--wait]
- -w, --wait
- Follow the operation until completion or failure.
Storage and search#
- napalm storage show#
Show status, retention windows and bucket names across a cluster’s object stores (backups, files, search and change log).
napalm storage show <cluster>
- --json
- Format output as JSON.
- napalm storage enable#
Provision file buckets, search storage or change log storage on a cluster, or reconfigure an active store. Re-running on
filesre-verifies custom domains, and re-running onsearchrenews the bucket credentials.napalm storage enable <cluster> <files|search|log> [--label acme] [--days 90]
- --label <label>
- Subdomain prefix for the cluster’s file hosts (
filesonly, required on first setup and immutable afterward). - --days <n>
- Change log retention window in days (
logonly, matching a supported retention tier). - --no-wait
- Return immediately after queuing the job.
- --json
- Format the job as JSON.
- napalm storage keep#
Set a cluster’s backup restore window or change log retention in days. Days beyond the included window are billed as storage.
napalm storage keep <cluster> <backups|log> --days 30
- --days <n>
- Retention window in days (must match a supported retention tier).
- --no-wait
- Return immediately after queuing the change log job (
logonly). A backup window takes effect without a job. - --json
- Format output as JSON.
- napalm storage sweep#
Run an immediate garbage-collection sweep on a cluster’s file or search buckets (matching the nightly sweep) to delete unreferenced objects past the backup restore window.
napalm storage sweep <cluster> <files|search>
- --no-wait
- Return immediately after queuing the sweep operation.
- napalm domains ls#
List custom domains configured on a cluster’s file buckets, including verification status and the required CNAME target for pending domains.
napalm domains ls <cluster>
- --json
- Format output as JSON.
- napalm domains add#
Attach a custom domain to a cluster’s private (
files) or public (public) file bucket, or reactivate a previously verified domain. Activates once the CNAME record resolves to the bucket and TLS issuance completes.napalm domains add <cluster> <files|public> <domain>
- --no-check
- Request the domain without queuing the file storage operation that verifies the CNAME record.
- --no-wait
- Return immediately after queuing the verification operation.
- --json
- Format the requested domain as JSON.
- napalm domains check#
Verify DNS CNAME records for pending custom file domains on a cluster and activate each domain that points to its target bucket.
napalm domains check <cluster>
- --no-wait
- Return immediately after queuing the verification operation.
- napalm search ls#
List search indexes across a cluster with branch, object type, storage tier, published vector count and pending unindexed vectors.
napalm search ls <cluster>
- --json
- Format output as JSON.
- napalm search publish#
Publish the next segment version of a search index ahead of schedule. Only indexes in the
segmentstier publish. Name the index by type (such asNote) or by ID.napalm search publish <cluster> <index> [--branch pr-12] [--retrain]
- -b, --branch <name>
- Branch of an index named by type (
mainby default). - --retrain
- Retrain the index on the current vectors while publishing.
- --no-wait
- Return immediately after queuing the publish job.
- napalm search keep#
Pin a search index to a storage tier (
memoryorsegments) regardless of size, or return to size-based placement (auto). Napalm queues any required move.napalm search keep <cluster> <index> <memory|segments|auto> [--branch pr-12]
- -b, --branch <name>
- Branch of an index named by type (
mainby default). - --json
- Format the queued job IDs as JSON.
- napalm search usage#
Report organization-wide search metrics over the past 30 UTC days: query count, rate-limited (
busy) rejections, compute time in seconds and bytes scanned.napalm search usage
- --json
- Emit hourly usage buckets as JSON.
Org and billing#
- napalm orgs limits#
View or configure your organization’s monthly compute spend cap and billing alert threshold.
napalm orgs limits [--cap 500 | --cap none] [--alert 300 | --alert none]
- --cap <dollars>
- Maximum monthly compute spend in USD across all clusters (or
noneto remove your self-imposed cap). - --alert <dollars>
- Monthly spend in USD that triggers a console alert (or
none). - --json
- Format output as JSON.
- napalm orgs charges#
Show month-to-date or historical usage charges by billing meter, matching the console overview. Daily usage posts after each UTC day closes, and invoices deduct included allowances.
napalm orgs charges [--month 2026-10]
- --month <month>
- The UTC month, such as
2026-10(the current month by default). - --json
- Format output as JSON.
- napalm tokens ls#
List active organization API tokens.
- napalm tokens create#
Issue a new organization API token (
readormanagescope) and print the secret token once.napalm tokens create --label deploy [--scope manage] [--days 30]
- -l, --label <label>
- Descriptive label for the token (required).
- --scope <scope>
- Permission scope:
read(default) ormanage. - --days <days>
- Expiration window in days (default
30).
- napalm tokens revoke#
Immediately revoke an organization API token by ID.
napalm tokens revoke <token-id>
- napalm activity#
View the organization audit trail of control-plane events, newest first.
- --limit <n>
- Number of events to show (default
25, max100).
Agents#
- napalm mcp#
Run a local stdio-to-HTTP bridge to a project’s
/mcpserver for desktop MCP clients.napalm mcp <project>
- --key <key>
- Use this service key instead of the saved project key or
NAPALM_KEY. - --url <url>
- Project endpoint URL when running with a service key and no organization token (
NAPALM_PROJECT_URL).
- napalm init#
Configure coding agent instructions (
AGENTS.mdandCLAUDE.md) and register the project’s MCP server in.mcp.json,.cursor/mcp.jsonand.vscode/mcp.json. The server entries runnapalm mcp <project>, so secrets stay out of git. Generated instructions cover schema and access policies, deployed queries,SignIn, live queries, file uploads, search, webhooks andnapalm status.napalm init [project]
Updates#
Environment and CI scripts#
Environment variables take precedence over credentials stored in ~/.napalm/config.json, so CI jobs can run without an interactive login. Pass --org <org> on any command (or set NAPALM_ORG) to target a specific organization when signed in to multiple orgs.
| Environment variable | Purpose |
|---|---|
NAPALM_TOKEN | Organization API token for control-plane commands (read or manage scope). |
NAPALM_ORG | Default organization slug or UUID. |
NAPALM_KEY | Project service key for napalm query, napalm call, napalm ask, napalm files import and napalm mcp. |
NAPALM_PROJECT_URL | Project base URL for napalm mcp when running with NAPALM_KEY and no organization token. |
NAPALM_API_URL | Override the Control API base URL (defaults to api.napalmdata.com). |
NAPALM_HOME | Override the local configuration directory (defaults to ~/.napalm). |
NAPALM_NO_UPDATE_CHECK | Disable the once-per-day stderr notice when a newer CLI release is available (also disabled automatically when CI is set). |
Commands write output to stdout and send progress spinners and diagnostics to stderr. Passing --json emits a single machine-readable JSON document on stdout. Commands that require confirmation fail immediately in non-interactive shells unless --yes is supplied.
| Exit code | Meaning |
|---|---|
| 0 | Command succeeded. |
| 1 | API error, failed background job or network failure (details written to stderr). |
| 64 | Invalid CLI invocation (missing required argument or invalid flag value). |
Direct binary downloads#
Download a prebuilt binary for your platform and place napalm on your PATH.
- macOSnapalm-cli-macos-arm64Apple silicon
- macOSnapalm-cli-macos-x64Intel
- Linuxnapalm-cli-linux-x64x64
- Linuxnapalm-cli-linux-arm64arm64
- Windowsnapalm-cli-windows-x64.exex64
Every release publishes SHA-256 digests in checksums.txt alongside the binaries. The install script and napalm update verify the digests automatically.