Skip to the page

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 | sh

After installing the binary, run napalm login to authorize your workstation in the browser and store a scoped organization token.

napalm login

In 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.

Authenticate with your organization
napalm login
Opening your browser to sign in…
If the browser doesn’t open, visit:
https://console.napalmdata.com/authorize-cli?port=53817&state=…&challenge=…&name=napalm+CLI+on+studio
Signed in to Northwind
Can make changes until 2026-11-16 01:12 PST
Run a parameterized query
napalm query notes 'select Note { title } filter .title ilike <str>$match' --var 'match=%launch%'
[
{
"title": "Launch checklist"
}
]
Push a schema change
napalm schema push notes
ALTER TYPE default::Note {
CREATE PROPERTY archived: std::bool;
};
Apply the migration to notes? [y/N] y
Migrated notes: 1 change
Apply a migration non-interactively in CI
export NAPALM_TOKEN="$DEPLOY_TOKEN"
napalm schema push notes --yes
ALTER TYPE default::Note {
CREATE PROPERTY archived: std::bool;
};
Migrated notes: 1 change
Test a migration on a preview branch
napalm branches create notes pr-12
Created pr-12 in notes from main with no rows.
napalm schema push notes --branch pr-12 --yes
ALTER TYPE default::Note {
CREATE PROPERTY archived: std::bool;
};
Migrated pr-12 in notes: 1 change
Issue and save a read-only service key
napalm keys create notes --label laptop --read-only --save
Created laptop for notes, read-only, for 30 days
ndb_Qm9zZS1yZWQtZXhhbXBsZS1rZXk
Saved for napalm query and napalm mcp.
Trigger an immediate cluster backup
napalm clusters backup notes-cluster
shardBackup completed0192c3f1-…
Import external files into file records
napalm files import notes --query 'select Scan { id, url := .legacyUrl }' --type default::Scan
Imported 212 of 214 files into notes
Missing (1)
0192c3f8-… the URL has nothing there
Refused (1)
0192c3f9-… not_accepted a PDF is required

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.md and CLAUDE.md for coding agents. Pass [project] to fill in the project’s address, MCP config and setup commands, including CORS access for the http://localhost:5173 dev 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), standing and command. Scripts should match on key and state, as layer and standing are human-readable display text.
napalm repository show#

Show the connected GitHub repository and pull-request preview settings: schema directory, whether merges push to main and 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 .gel files, queries/ and seed.edgeql (default dbschema).
--no-push-main
Do not push the schema to main when a pull request merges.
--copy <schema|data>
Contents of a new pull-request branch: schema copies main’s schema only, and data copies main’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. Both main and 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 $variables become typed CLI flags. Run without a name to list all deployed queries, or pass --help after 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-date for $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 result and patch event 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 napalm provider or configure your own provider API keys.

napalm models <project> [--give | --add openai [--secret-stdin] | --remove openai] [--branch pr-12]

--give
Enable ext::ai and provision a dedicated napalm model provider key for the project (requires manage scope).
--add <provider>
Configure or replace a project-owned API key for openai, anthropic or mistral (requires manage scope). Reads the secret from NAPALM_PROVIDER_SECRET or 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 of main.
--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), calls or mean latency 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 .gel schema (dbschema/ by default) to a project. Validates all deployed queries and reports root placement and notify webhook changes. When a migration requires disambiguation (such as a backfill expression or rename), the CLI reads answers from decisions.yaml beside 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.yaml beside the schema by default): fill, convert and single expressions, plus rename or replace choices.
--json
Format the migration plan or execution report as JSON.
--queries <folder>
Directory of .edgeql query files to validate and deploy atomically with the schema migration (dbschema/queries by 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 main without applying changes. Exits non-zero if a query breaks or disambiguation is required.
napalm schema draft#

Draft an initial .gel schema from a pg_dump --schema-only SQL dump, a Prisma schema or a Convex schema. Tables and models map to object types (retaining old_id for data migration), foreign keys, relations and v.id references map to links, and join tables, many-to-many relations and ID arrays map to multi links with generated backlinks. The translator extracts shared properties (across three or more types) into an abstract base type, converts CHECK (... IN ...) text columns and literal unions into enums, translates timestamp-update triggers and @updatedAt fields into rewrite rules, and converts generated tsvector columns 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-only SQL file, a schema.prisma file (or directory of .prisma files), or a Convex schema.ts file (or convex/ directory).
-o, --output <path>
Write the draft to the specified file (dbschema/default.gel by 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 by napalm 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 .edgeql query 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 .edgeql query files (dbschema/queries by 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.
--[no-]agents
Expose or hide the named queries on /mcp and /a2a.
napalm generate#

Compile .edgeql files in dbschema/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 .edgeql query files (dbschema/queries by default).
-o, --out <folder>
Output directory for openapi.json and generated client files (napalm by default).
--lang <language>
Generate a typed client for ts, python, go, dart, rust, csharp, swift or kotlin.
--deployed
Generate client bindings from the project’s deployed queries (GET /openapi.json). Each call sends only variables.
--branch <name>
Type-check queries against a specific branch schema instead of main.

Branches#

napalm branches ls#

List main and 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 main with a copy of its schema, sign-in settings and extensions (--data also clones all rows). Waits for provisioning to finish unless --no-wait is set.

napalm branches create <project> <name> [--data] [--preview] [--no-wait]

--data
Clone all rows and file references from main into the branch. The copy takes longer as main grows.
--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 (main by 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 --yes when 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 (default 1h).
--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 (main by 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.json for napalm query, napalm call and napalm 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 (main by 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 (main by 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 manage scope.

napalm people ls <project> [<search>] [--branch pr-12]

--branch <name>
Target branch (main by 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 (main by 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 manage scope.

napalm grants ls <project> [--branch pr-12]

--branch <name>
Target branch (main by 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 manage scope and records an organization activity entry.

napalm grants revoke <project> <grant-id> [--branch pr-12] [--yes]

--branch <name>
The grant’s branch (main by 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 manage scope and records an organization activity entry.

napalm grants reach <project> <grant-id> [--branch pr-12]

--branch <name>
The grant’s branch (main by 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 --as or --new, target the specified branch (main by 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/tests against a branch. Each step executes one statement as anonymous, a user, a user via an agent grant, a service key or setup, asserting expected rows, row counts or policy refusals. Napalm compiles every statement up front, rolls back every test transaction and exits 1 on any failure.

napalm test <project> [<name>] --branch pr-12 [--tests dbschema/tests]

--branch <name>
Target branch (required). Pass main to run against main.
--tests <folder>
Directory containing .yaml test files (dbschema/tests by default).
--queries <folder>
Directory containing .edgeql query files for call steps (dbschema/queries by 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), /ask and MCP schema tools.
--passthrough <none|keys|all>
Control who may execute ad-hoc EdgeQL statements instead of deployed queries (none, keys or all).
--allow-origin <url>
Add an allowed browser origin for CORS requests: HTTPS, or http://localhost with 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 deny policies. 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://localhost for local development or a custom mobile app scheme (com.example.notes://signed-in). Repeatable. Replaces the existing redirect list.
--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-url sets 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, passkeys or magicLink. Each oidc connection is billed monthly. Reads OAuth client secrets from NAPALM_CLIENT_SECRET or 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 (oidc only).
--display-name <name>
Display name of an OpenID Connect provider (oidc only).
--slug <slug>
Identifies one of several OpenID Connect providers (oidc only).
--origin <origin>
Exact origin where passkeys are created and used: HTTPS, or http://localhost with a port for a dev server (passkeys only).
--[no-]auto-signup
Allow or block automatic account creation for unknown email addresses (magicLink only).
--[no-]require-verification
Require or skip email verification before registering passkeys (passkeys only).
--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_PASSWORD or 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). Use 587 with --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_KEY or 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 (main by 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 (main by 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 (main by 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 (main by 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.json entries 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 (handlers by default).
--runtime <name>
Handler runtime (typescript, python, go, rust or dart), 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.json for 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/acme/handlers@sha256:…) instead of building a local folder.
--registry-user <name>
Username for a private container registry (prompts for the password without echo unless --registry-password-file is set).
--registry-password-file <file>
Read the private registry password or token from <file> (or - for stdin).
--branch <name>
Target branch (main by 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, 1024 or 2048.
--cpu <shared|performance>
CPU scheduling (performance requires 2048 MiB of memory).
--machines <n>
Maximum count, from 1 to 8 (1 by default). Extra machines wake only while active machines are busy.
--branch <name>
Target branch (main by 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-file or 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 (main by 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 (main by 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 (main by 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 (main by 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 (main by 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 (main by 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 When column reports whether a job is scheduled (due), awaiting retry (next attempt), overdue to start (waiting since), executing (running since or async handler taken on), done or failed. 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, failed or cancelled jobs.
--query <name>
Filter to jobs for a single deployed query.
--limit <n>
Number of jobs to list, newest first, up to 200 (50 by default).
--branch <name>
Target branch (main by 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 (main by 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 status cancelled so you can re-run it later with napalm queue retry.

napalm queue cancel <project> <job> [--branch pr-12]

--branch <name>
Target branch (main by default).
napalm queue clear#

Prune completed, failed and cancelled jobs (along with their attempts and steps) that finished more than --older-than days ago. Pending jobs, running jobs and jobs referenced by links from your own records are preserved. Prunes base ext::napalm::Job rows only unless --own-types is 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 (0 to 3650).
--own-types
Also prune finished rows of custom ext::napalm::Job subtypes.
--branch <name>
Target branch (main by default).
-y, --yes
Clear without interactive confirmation.
napalm webhooks ls#

List all schema notify declarations on a branch alongside registered webhook destinations and each destination’s delivery health.

napalm webhooks ls <project> [--branch pr-12]

--branch <name>
Target branch (main by default).
--json
Format output as JSON.
napalm webhooks add#

Register an HTTPS webhook destination for one or more schema notify events. Delivers signed ping summaries by default, or access-policy-filtered rows when --key is provided. Displays the HMAC signing secret once.

napalm webhooks add <project> <url> --event <notify> [--key <key-id>] [--branch pr-12]

-e, --event <notify>
Schema notify names the webhook receives (repeatable or comma-separated).
--key <key-id>
Deliver committed row payloads readable by this service key ID (rows mode) instead of summary pings.
--branch <name>
Target branch (main by 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 (main by 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 (main by 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 (main by 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 (main by 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 (main by 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 (main by default).
--json
Format output as JSON.

Files#

napalm files status#

Report file counts (Ready, Uploading, Empty) and validation errors for every type extending ext::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 Empty file 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::File subtype (such as default::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 Empty file 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 from NAPALM_SOURCE_SECRET_ACCESS_KEY or 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 (auto by 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::File subtype to source objects: type=<Type>,key=<property> plus bucket=<name> or bucket-property=<property>, and optional public-property=<property>. Repeatable per file type.
-p, --plan
Preview pending Empty file 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 remaining Empty records.

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, World or Organization), 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 of main.
--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, World or Organization) 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 --out to 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-root archive, 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 (--plan exits after the preview), and --receipt waits 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: shared or performance.
--engine-memory <size>
Memory per engine, such as 2GiB or 2048MiB, 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 4GiB or 4096MiB), in 256 MiB steps.
--member-cpu <type>
CPU type of the database machines: shared or performance.
--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.com hostname 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 6h or 3d (default 1d, maximum 7d from 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. With refuse, 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 files re-verifies custom domains, and re-running on search renews the bucket credentials.

napalm storage enable <cluster> <files|search|log> [--label acme] [--days 90]

--label <label>
Subdomain prefix for the cluster’s file hosts (files only, required on first setup and immutable afterward).
--days <n>
Change log retention window in days (log only, 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 (log only). 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 segments tier publish. Name the index by type (such as Note) or by ID.

napalm search publish <cluster> <index> [--branch pr-12] [--retrain]

-b, --branch <name>
Branch of an index named by type (main by 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 (memory or segments) 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 (main by 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 none to 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 (read or manage scope) 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) or manage.
--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, max 100).

Agents#

napalm mcp#

Run a local stdio-to-HTTP bridge to a project’s /mcp server 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.md and CLAUDE.md) and register the project’s MCP server in .mcp.json, .cursor/mcp.json and .vscode/mcp.json. The server entries run napalm mcp <project>, so secrets stay out of git. Generated instructions cover schema and access policies, deployed queries, SignIn, live queries, file uploads, search, webhooks and napalm status.

napalm init [project]

Updates#

napalm update#

Upgrade the napalm binary in place to the latest release once the SHA-256 checksum verifies.

napalm update

napalm rollback#

Roll back the napalm binary to a previous release version (or list available rollback versions when called without arguments).

napalm rollback [<version>]

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 variablePurpose
NAPALM_TOKENOrganization API token for control-plane commands (read or manage scope).
NAPALM_ORGDefault organization slug or UUID.
NAPALM_KEYProject service key for napalm query, napalm call, napalm ask, napalm files import and napalm mcp.
NAPALM_PROJECT_URLProject base URL for napalm mcp when running with NAPALM_KEY and no organization token.
NAPALM_API_URLOverride the Control API base URL (defaults to api.napalmdata.com).
NAPALM_HOMEOverride the local configuration directory (defaults to ~/.napalm).
NAPALM_NO_UPDATE_CHECKDisable 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 codeMeaning
0Command succeeded.
1API error, failed background job or network failure (details written to stderr).
64Invalid 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.

Every release publishes SHA-256 digests in checksums.txt alongside the binaries. The install script and napalm update verify the digests automatically.

Type a word or two to search every docs page.