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#

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#

Write a starter app into a new folder. The app uses every layer of a project together: email-and-password sign-in, a live query under an access policy, a file upload and hybrid search. The folder also holds AGENTS.md and CLAUDE.md for coding agents. With a project named, the CLI fills in the project’s address, setup commands and MCP server. The dev server runs at http://localhost:5173, and the setup commands allow that origin.

napalm new <folder> [project]

napalm status#

Show a project layer by layer: API, access policies, sign-in, deployed queries, service keys, files, search, managed models, webhooks, actions, handlers, schedules, change log, backups, repository and agent access. Each layer reports on/off status, missing pieces (file types with no bucket, sign-in that confirms addresses with no mail server, a search index behind an API that takes deployed queries only) and the command that fixes each gap. A refused read leaves only the affected layers unread.

napalm status <project>

--json
Print each layer’s key, layer, state (on, off, gap, unread), standing and command as JSON. Scripts read key and state. The layer label and standing are display text and may be reworded.
napalm repository show#

Show the GitHub repository a project follows and the follow settings: the schema folder, whether a merge pushes to main and the contents of a new pull-request branch.

napalm repository show <project>

--json
Format output as JSON.
napalm repository follow#

Follow a GitHub repository or change the follow settings. Each pull request gets a pr-<number> branch with the pull request’s schema, an updated comment and a check. Napalm’s GitHub App must already have access to the repository (install the app from the console).

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#

Stop following the repository. Napalm drops the repository’s pull-request branches and stops commenting. Neither main nor GitHub changes.

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 (must be passed 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 a project’s model providers and the spend on Napalm’s key. Enable Napalm’s models, or add a provider with the project’s own key.

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>
Set a project key for openai, anthropic or mistral, or replace the current key. The key is read from NAPALM_PROVIDER_SECRET, never from an argument (requires manage scope).
--remove <provider>
Remove a project-owned provider and its key.
--secret-stdin
Read the provider’s key from stdin instead of NAPALM_PROVIDER_SECRET.
--branch <name>
Read or change a branch’s providers instead of main’s.
--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 the project. The push validates all deployed queries and reports root placement and notify webhook changes. A migration that needs a decision takes the answer from decisions.yaml beside the schema. At a terminal the push asks each missing answer and offers to write the file. Without a terminal the push prints the YAML to add and exits non-zero.

napalm schema push <project> [dbschema] [--branch pr-12] [--review]

-y, --yes
Apply the migration without interactive confirmation prompts. A migration that needs a decision stops and prints the YAML to add.
-p, --plan
Print the migration plan, root classifications and affected webhooks, then stop without applying changes.
--decisions <file>
The file of answers to the migration's decisions: fill, convert and single expressions, and rename or replace for a guessed rename (decisions.yaml beside the schema by default).
--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 a first .gel schema from a pg_dump --schema-only file, a Prisma schema or a Convex schema. Each table or model becomes a type, and each foreign key, relation or v.id becomes a link. Each join table, many-to-many relation or array of ids becomes a multi link, and every type keeps old_id for the move. The draft adds the other side of each link, one abstract type for properties three or more types share, an enum for a text column checked against a list or a union of literals, a rewrite for a trigger that kept a timestamp current or an @updatedAt, and a text search index for a generated tsvector or a Convex search index. A draft from Prisma or Convex keeps the original field names. Each row-level security policy becomes a comment above a rule that allows nothing until the condition is written.

napalm schema draft --from old-schema.sql|schema.prisma|convex/schema.ts [-o dbschema/default.gel]

--from <path>
The pg_dump --schema-only file, the schema.prisma or the folder of a schema split across .prisma files, or Convex’s schema.ts or the convex folder.
-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 in an operation with a copy of the schema, auth settings and extensions. --data also copies all data rows. The command waits for the operation until the branch is ready.

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
Mark the branch as a preview. On a cluster with a preview shard, the branch runs on that shard, away from main.
--no-wait
Return once the control service answers. A branch still being made prints its operation's id.
--json
Format output as JSON.
napalm branches move#

Move a branch to another shard of the same cluster in a background job. The branch keeps the same address and serves during the copy. Writes pause only at the switch.

napalm branches move <project> <name> --shard shard-k3m9x2p7qa [--pause]

--shard <name>
The target shard’s name.
--pause
Stop writes for the whole copy instead of only at the switch.
--json
Format the job as JSON.
napalm branches restore#

Wind a branch (main when no branch is named) back in place to any timestamp within the retention window. The address stays the same, and every other branch on the same shard goes back to the same moment.

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>
Another branch on the same shard that goes back too. Separate several with commas. --yes requires every such branch to be named.
-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#

Set the change log’s retention in days for every branch of a project, for pull-request branches or for one branch. Days beyond the included window are billed, and a shorter window drops the older days within the hour.

napalm branches keep <project> [<branch>] --days 90 [--pull-requests 30] | --cluster

--days <n>
Retention window in days, one of the windows listed in the rates.
--pull-requests <n>
Retention window for pull-request branches (only when no branch is named).
--cluster
With a branch named, clear the branch’s own window so the cluster’s window applies again.
--json
Format output as JSON.
napalm branches dropped#

List the change logs the cluster still keeps for dropped branches, with each log’s contents and deletion date. Read a log with napalm changes <project> --branch <name>.

napalm branches dropped <project>

--json
Format output as JSON.
napalm branches forget#

Remove a dropped branch’s change log immediately instead of at the end of the retention window. The changes are gone for good, and the log’s charges end with the 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, never 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. The bearer secret is displayed 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>
A per-key global that overrides the branch’s service globals for this key’s calls. Your access rules can then tell keys apart. Repeatable.
--allow-query <name>
A deployed query the key may call. Repeatable. The key calls only the listed queries and sends no other statement. Each query must be deployed on the key’s 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>
A per-key global that overrides the branch’s service globals for this key’s calls. Your access rules can then 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 number of days the branch keeps key usage.
--branch <name>
Show the keys of the specified branch (main by default). With a key’s label, look for the key on the specified branch.
--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 they can select, update and delete per object type. Each simulation is logged 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 the agent’s next call is rejected. The user can re-authorize the agent later on your app’s consent page. Logged in organization activity. Requires manage scope.

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 as that user’s session with the grant’s globals and read-only setting, and rejects revoked or expired grants. Logged in organization activity. Requires manage scope.

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>
A per-key global that overrides the branch’s service globals for this key’s calls. Your access rules can then tell keys apart. Repeatable.
--json
Format output as JSON.
napalm test#

Run the access-rule tests in dbschema/tests against a branch. Each step runs one statement as anonymous, a person, a person through an agent’s grant, a service key or setup. A step’s expect names the rows, the count or the refusal. Napalm compiles every statement before running any test, rolls back every test transaction and exits 1 if a test fails.

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

--branch <name>
Target branch. Required. main tests 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. Existing grants that set this global are refused until the user re-approves the agent.
napalm sign-in show#

Show a project’s sign-in configuration: app name, redirect URLs, session length and each enabled provider. Secrets are never returned.

napalm sign-in show <project>

--json
Format output as JSON.
napalm sign-in set#

Update a project’s sign-in settings and turn email-and-password sign-in on or off. Settings not named by a flag keep the current values.

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 by sign-in pages and emails (required the first time).
--redirect <url>
A redirect URL for sign-in: HTTPS, http://localhost for a dev server, or a phone app’s own scheme (com.example.notes://signed-in). Repeatable. The given URLs replace the current 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
Whether email-and-password sign-in requires a verified address.
--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#

Enable a sign-in provider or replace its configuration: google, github, microsoft, discord, slack, oidc, passkeys or magicLink. Each oidc provider is an SSO connection with a monthly fee. An OAuth client secret is read from the NAPALM_CLIENT_SECRET environment variable or from stdin, never from an argument.

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
Whether an unknown address is signed up (magicLink only).
--[no-]require-verification
Whether people must verify an email address (passkeys only).
--json
Format output as JSON.
napalm sign-in remove#

Remove a sign-in provider and its settings. Existing accounts are kept, and nobody can sign in through that provider until you add it again.

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#

Set the SMTP server a project’s sign-in sends email through (confirmations, resets, magic links). The connection is always encrypted. The password is read from the NAPALM_SMTP_PASSWORD environment variable or from stdin, never from an argument.

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
Use mandatory STARTTLS instead of TLS from the start.
--password-stdin
Read the SMTP password from stdin instead of NAPALM_SMTP_PASSWORD.
napalm sign-in webhooks add#

Send sign-in events (sign-ups, verified addresses, reset requests and more) to a destination, or replace an existing destination. Requests are signed with a key read from NAPALM_SIGNING_KEY or stdin. Supply the key on every save.

napalm sign-in webhooks add <project> <url> --event IdentityCreated [--event EmailVerified] [--replace <url>]

-e, --event <event>
Event to send. Repeatable.
--replace <url>
The destination to replace when changing a URL, events or key.
--key-stdin
Read the signing key from stdin instead of NAPALM_SIGNING_KEY.
napalm sign-in webhooks remove#

Stop sending sign-in events to a destination. Requests already queued are still delivered.

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 the query’s rows to the handler with a signed caller assertion and returns the handler’s response. Displays the handler’s 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>
A file (or - for stdin) holding the shape of the handler’s JSON response as an OpenAPI 3.0 schema. Generated clients and agent tools use this schema for types.
--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 handlers: the deployed code, the actions served, each machine’s size and the names of the secrets the handlers read.

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

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

Deploy a folder of handlers. The CLI builds the code here for Linux with the language’s own tools and sends the build to Napalm to run on the branch’s machines. Each handler is named for a deployed query, and that query becomes an action. The folder’s handlers.json marks a handler as read-only, sets a time limit under 30 seconds or declares a typed answer. Each deploy replaces the whole previous deploy.

napalm handlers deploy <project> [--handlers handlers] [--runtime go --handler sendReceipt] [--branch pr-12]

--handlers <folder>
The folder of handler code (handlers by default).
--runtime <name>
typescript, python, go, rust or dart. Read from the folder when left out.
--handler <query>
An action the code serves. Repeat the flag for each action. TypeScript and Python actions are read from the code. Go, Rust, Dart and containers name actions here or in the folder’s handlers.json.
--bin <name>
A Cargo package’s binary, when the binary name differs from the package name.
--image <image>
A container of your own in place of a folder, by digest: ghcr.io/acme/handlers@sha256:….
--registry-user <name>
Your username on a private container’s registry. The CLI asks for the password without echo.
--registry-password-file <file>
A file holding that registry’s password or token, or - for stdin.
--branch <name>
Target branch (main by default).
--json
Format the queued job as JSON.
napalm handlers size#

Size a branch’s handler machines: memory, CPU scheduling and machine count. A machine is charged by memory while awake.

napalm handlers size <project> --memory 512 [--cpu shared] [--machines 2] [--branch pr-12]

--memory <MiB>
Each machine’s memory: 256, 512, 1024 or 2048.
--cpu <shared|performance>
CPU scheduling. Performance requires 2048 MiB of memory.
--machines <n>
The number of machines, 1 to 8 (1 by default). An extra machine wakes only while the earlier machines are busy.
--branch <name>
Target branch (main by default).
--json
Format the queued job as JSON.
napalm handlers secrets set#

Set an environment variable a branch’s handlers read, such as a payment key. The value comes from a prompt without echo, a file or stdin, never from the command line. Napalm keeps no copy and never shows the value again. A branch with nothing deployed keeps the secret for the first deploy.

napalm handlers secrets set <project> <NAME> [--value-file key.txt] [--branch pr-12]

--value-file <file>
A file holding the value, 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 schedule. The query stays deployed, and the waiting job is cancelled.

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 a branch’s jobs, newest first: each job’s query, status, time, attempts, finished steps, last failure reason and caller type. The When column reads due, next attempt, waiting since, running since, taken on by its handler, done or failed. Waiting since marks a job that is due and has not started. Job variables and step answers stay in your database and are never listed.

napalm queue ls <project> [--status failed] [--query sendReceipt] [--limit 50] [--branch pr-12]

--status <status>
Only pending, running, completed, failed or cancelled jobs.
--query <name>
Only one deployed query’s jobs.
--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#

Retry a failed or cancelled job now. The job has one day to run.

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

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

Cancel a waiting job, or a running job whose handler took the work on. Any other running job finishes normally. The job stays as a row with the status cancelled, and napalm queue retry takes the job again.

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

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

Delete a branch’s finished jobs that ended more than a number of days ago, with their attempts and steps. Waiting and running jobs stay. Plain jobs only, unless --own-types is given. A job that one of the project’s rows links to stays.

napalm queue clear <project> --older-than <days> [--own-types] [--branch pr-12] [--yes]

--older-than <days>
Clear the jobs that ended more than this many days ago, 0 to 3650.
--own-types
Also clear jobs of the project’s own job types.
--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 the files of one type that failed validation, with each file’s id and 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 store into the Empty files of the records that name each object’s key. The plan shows first: the files waiting per type and how many of a sample of their objects are in the source. Napalm jobs run the copy under each type’s checks. The secret access key is read from NAPALM_SOURCE_SECRET_ACCESS_KEY or stdin, sealed on arrival and deleted when the import ends.

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>
Address of the source store.
--region <region>
Region of the source store (auto when omitted).
--path-style
Address buckets in the path, as MinIO does.
--access-key-id <id>
Access key that can read (and list) the objects.
--secret-stdin
Read the secret access key from stdin instead of NAPALM_SOURCE_SECRET_ACCESS_KEY.
--map <mapping>
The record-to-object mapping: type=, key= and either bucket= or bucket-property=. public-property= is optional. Repeatable, one per type.
-p, --plan
Print the plan of the waiting files per type and a sample of their objects, then stop.
-y, --yes
Import without an interactive confirmation prompt.
--no-wait
Return immediately after the import’s first job is queued.
--json
Format output as JSON.
napalm files store ls#

List a project’s imports from other stores, newest first, with imported, missing, failed and remaining counts.

napalm files store ls <project>

--json
Format output as JSON.
napalm files store cancel#

Cancel an unfinished import. The import’s key is deleted immediately. Files already copied stay, and a new import can copy the rest.

napalm files store cancel <project> <import-id>

Sharding#

napalm roots#

Show each type’s root (from the type’s required links), the placeable roots and each deployed query’s shard once roots spread across shards.

napalm roots <project> [--branch pr-12]

--branch <name>
Read a branch instead of main, such as a pull request’s.
--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#

Display a branch’s placement: whether every row’s root is recorded, each shard’s buckets, pinned roots, regional residency rules and core copies.

napalm placement show <project> [--branch pr-12]

--json
Format output as JSON.
napalm placement enable#

Turn on placement by root for a branch and record every row’s root, without altering your schema or primary keys.

napalm placement enable <project> [--branch pr-12] [--wait]

napalm placement disable#

Turn off placement by root 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 specific root UUID to another shard while the branch keeps serving. Writes pause briefly at the switch, and reads never pause. A single-root move writes a root override, which places the root apart from the rest 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 a specific root UUID to a geographic region for data residency compliance, or clear its regional pin with --anywhere. A root that moves into the region becomes a root override.

napalm placement keep <project> <root> (--region iad | --anywhere)

napalm placement restore-root#

Restore a single tenant root UUID to a point in time from shard backups. Other tenants on the shard do not roll back.

napalm placement restore-root <project> <root> --to 2026-11-07T09:30:00Z [--yes]

napalm placement export-root#

Export one root’s rows and files as of one moment into a ZIP archive, in an operation. --out waits, downloads the archive and checks its SHA-256. Napalm keeps the archive for seven days.

napalm placement export-root <project> <root> [--branch pr-12] [--out team.zip]

napalm placement root-archive#

Print a download link for a finished export’s archive, or download the archive with --out.

napalm placement root-archive <project> <operation> [--out team.zip]

napalm placement erase-root#

Erase one root and every descendant row in an operation, after previewing the deleted and retained records. --plan stops after the plan. --receipt waits and saves the signed 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 its buckets and pinned roots 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#

Change a cluster’s machines: engine count, CPU type, memory and CPUs, database machine memory, CPU type and CPUs, replicas per data shard, and data shard count. Values not named by a flag stay unchanged. CPUs not named by a flag follow memory. The planned effects are listed 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. Left out, the most shared CPUs its memory takes, or one performance CPU for every 4 GiB.
--member-memory <size>
Memory per database machine, in the same format.
--member-cpu <type>
CPU type of the database machines: shared or performance.
--member-cpus <n>
CPUs per database machine. Left out, the most shared CPUs its memory takes, or one performance CPU for every 4 GiB.
--replicas <n>
Number of replicas beside each data shard’s primary.
--data-shards <n>
Number of data shards. Shards can be added but not yet removed.
-y, --yes
Scale without interactive confirmation.
--no-wait
Return immediately after queuing the scale operation.
napalm clusters address#

Give a cluster a dedicated address (<label>.napalmdata.com) with a TLS certificate. Every branch’s API answers at that address. Running the command again re-applies the certificate, and renewal is automatic.

napalm clusters address <cluster> [--label notes]

--label <label>
Label naming the address. Required the first time and fixed afterwards.
--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#

Hold off Napalm’s own maintenance on a cluster until a time you choose. Nightly backups and other maintenance wait. Your org’s requests and automatic failover still run.

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 a shard’s behavior when no replica answers. With allow (the default), the primary commits alone after 5 seconds until a replica returns. A primary lost in that window loses those commits. refuse makes writes wait for a replica. Without an argument, the command shows the current setting.

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 each of a cluster’s stores (backups, file buckets, search bucket, change log) with on/off status, retention window and buckets.

napalm storage show <cluster>

--json
Format output as JSON.
napalm storage enable#

Turn on a cluster’s file buckets, search bucket or change log. Running the command again on an active store reconfigures it. File storage re-checks the domains, and search storage renews the key.

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

--label <label>
Label naming the cluster’s file hosts (files only). Required the first time and fixed afterwards.
--days <n>
Change log retention window in days (log only), one of the windows listed in the rates.
--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, one of the windows listed in the rates.
--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#

Sweep a cluster’s file buckets or search bucket now, the same way the nightly sweep does. The sweep deletes bytes that no record needs and no restore could bring back.

napalm storage sweep <cluster> <files|search>

--no-wait
Return immediately after queuing the sweep operation.
napalm domains ls#

List every domain a cluster’s file buckets have had, with each domain’s state and the CNAME record a pending domain still needs.

napalm domains ls <cluster>

--json
Format output as JSON.
napalm domains add#

Request your own domain for a cluster’s private file links (files) or public files (public), or switch back to a domain the bucket used before. The domain attaches once the CNAME record points at the bucket and the certificate is issued.

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 the CNAME records of a cluster’s pending domains, and attach each domain whose record points at the right bucket.

napalm domains check <cluster>

--no-wait
Return immediately after queuing the verification operation.
napalm search ls#

List a cluster’s search indexes: branch, type, storage tier, vectors in the published version and vectors still waiting to be published.

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#

Show the organization’s searches over the last 30 days by UTC day: count, searches refused as busy, seconds spent answering and bytes read.

napalm search usage

--json
Format every hour 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 a month’s charges by meter, as listed on the console’s home page. A day’s usage is charged once the day ends. Included usage is deducted on the invoice.

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). The token is displayed 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. The instructions cover every layer: schema and access policies, deployed queries, the client’s 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. 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 query, call, ask, files import and 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).

Command output is written to stdout while progress spinners and diagnostics go 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.