Skip to content

Written for: For developers

Astrato CLI reference

39 min read · Updated 18 Nov 2026

The astrato CLI develops Data Apps. It owns the local browser origin and proxies the project’s Vite server while delegating governed runtime operations to the real Astrato platform. It does not emulate Astrato services.

Preview: publication commands require an enabled Astrato environment and publication access. Publishing replaces the current app; deploy history, promotion and rollback are unavailable.

The CLI is not required for externally hosted apps or workbooks.

During development, the CLI briefly reuses identity and semantic-layer metadata across charts under the same login. Queries still reach Astrato with your current credential. Reload the page after changing your semantic model to refresh metadata; you do not need to restart astrato dev.

Install @astrato-io/cli and @astrato-io/app-runtime from npm. Package installation is separate from astrato login, which authorizes the CLI to access Astrato.

The CLI requires Node.js >=24.18.0 <25 and installs one global executable:

Terminal window
npm install --global @astrato-io/cli
astrato --version

If astrato --version reports that the command is not found, npm’s global folder is not on your PATH. Run npm prefix --global to see the folder npm installs into:

  • Windows: add the folder that command prints (usually %APPDATA%\npm) to your user Path environment variable, then open a new terminal. In PowerShell, this adds it only if it is missing:

    Terminal window
    $prefix = npm prefix --global
    $userPath = [Environment]::GetEnvironmentVariable('Path', 'User')
    $entries = @($userPath -split ';' | Where-Object { $_ })
    if ($entries -notcontains $prefix) {
    [Environment]::SetEnvironmentVariable('Path', (@($entries + $prefix) -join ';'), 'User')
    }
  • macOS and Linux: add the bin folder inside that prefix (for example, $(npm prefix --global)/bin) to PATH in your shell profile, then open a new terminal.

astrato login needs no environment variable. Run it once after installing. ASTRATO_TOKEN is only for automation; see Authentication.

The installed executable is the source of truth for its available commands and flags:

Terminal window
astrato --help
astrato <command> --help

Version 0.1.3 rejects astrato help <command> with a “too many arguments” error. Only the command groups accept help, as in astrato publications help list. Compare what your installed version prints with the output below, from version 0.1.3. A command or option this page describes that your help does not list is not in your version.

$ astrato --help
Usage: astrato [options] [command]
Develop Astrato Apps.
Options:
-V, --version output the version number
--json emit one machine-readable JSON result
--host <url> Astrato application host (default:
"https://app.astrato.io")
-h, --help display help for command
Commands:
login [options] authenticate this computer with Astrato
logout revoke and remove the saved Astrato login
status show Astrato authentication and local project
configuration
init [options] [path] configure an existing frontend project for Astrato
hosting
validate [path] validate the nearest astrato.json and its local
project
dev [options] [path] run the app against its current Astrato semantic
layer
build [path] build and validate the local static app artifact
publications list and manage app publications
semantic-layers find semantic layers and manage their sharing
publish [options] [path] build, upload and publish an app to an explicit
publication

publications and semantic-layers are command groups: run astrato publications --help or astrato semantic-layers --help to list their subcommands. Each command’s section below shows its --help output from 0.1.3, then a table of its options. A command whose help lists only -h, --help has no options of its own; the Commands table marks those None.

To see whether a newer CLI has been published, compare astrato --version with npm view @astrato-io/cli version.

These are the Options: lines of astrato --help, word for word:

-V, --version output the version number
--json emit one machine-readable JSON result
--host <url> Astrato application host (default:
"https://app.astrato.io")
-h, --help display help for command

Every command and command group accepts -h, --help, --json and --host. login and dev refuse --json. init, validate and build do not contact Astrato, so --host changes nothing for them.

Use --host only when your organization provides a different Astrato origin. Authentication is stored separately for each normalized host.

An unknown option, an unknown subcommand or a missing required option stops the command before it does anything, with invalid_request and exit code 2. A near miss gets a suggestion:

$ astrato dev --no-opn
Error: unknown option '--no-opn'
(Did you mean --no-open?)
$ astrato publications lst
Error: unknown command 'lst'
(Did you mean list?)
$ astrato publish
Error: required option '--publication-id <id>' not specified

An unknown word in place of a top-level command is reported as an extra argument, for example “Error: too many arguments. Expected 0 arguments but got 1: bogus.” With --json, the same message is the error.message of the one JSON object on stderr:

{
"error": { "code": "invalid_request", "message": "too many arguments. Expected 0 arguments but got 1: bogus." },
"ok": false
}
Command Needs login Needs configured semantic layer Supports --json Own options Purpose
login No No No --force Complete interactive device authorization
logout No No Yes None Revoke and remove the saved login
status No No Yes None Report login and nearest local configuration
init [path] No Required input Yes --semantic-layer-id, --dev-script, --build-script, --output Configure an existing Vite frontend
validate [path] No Yes Yes None Validate config and project scripts
dev [path] Yes Yes No --no-open Run against the current semantic layer
snapshot [path] Yes Yes Yes --out, --timeout, --browser Screenshot the running app and report what drew
build [path] No Yes Yes None Build and validate a local static artifact
publish [path] Yes Yes Yes --publication-id, --expected-version, --idempotency-key, --publication-node, --follow-data-node, --image, --collection Build and replace an explicit publication
publications list Yes No Yes --cursor Find accessible publications and current versions
publications get <id> Yes No Yes --hosting Read one publication and its current version
publications create [path] Yes Yes Yes --name, --idempotency-key Create an unpublished app
publications update <id> Yes No Yes --expected-version, --name, --audience, --expire-at, --embedding, --embed-domain, --publication-node, --follow-data-node Change an existing publication
publications unpublish <id> Yes No Yes --expected-version, --yes Stop delivering an app
publications delete <id> Yes No Yes --expected-version, --yes Remove a publication
semantic-layers list Yes No Yes --name, --offset Find the layers you can read and their IDs
semantic-layers describe <id> Yes No Yes None Read a layer’s stored measures and dimensions
semantic-layers visibility <id> Yes No Yes --everyone Show or set “Visible to everyone” for a layer

init, validate and build are local operations. They do not create a publication or check data access. Every supplied project path must be an existing, accessible directory.

Terminal window
astrato login
astrato login --force
$ astrato login --help
Usage: astrato login [options]
authenticate this computer with Astrato
Options:
--force start a new device authorization even when already authenticated
-h, --help display help for command
Option Type Required Default Meaning
--force flag No off Start a new device authorization even when a valid login is already saved.

--host <url> selects the Astrato origin to log in to. --json is refused; see For AI agents below.

The CLI opens the device-authorization page, prints the verification URL and user code, and waits for approval. Complete the approval in your browser. Access tokens remain in process memory, while the renewable login is stored in the operating system credential store. --force starts a new authorization even when a valid login already exists; use it only when you intentionally want to replace the saved login. If a saved grant lacks the scopes required by the installed CLI, status reports unauthenticated and login requests fresh approval.

The CLI requests profile schema:read data:query data:write data:sql publication:read publication:write publication:publish, and also data:action, which a login does not need to be valid. Older logins without the first group need fresh approval through astrato login. Use the local write methods for App procedure execution and row changes during astrato dev. Arbitrary SQL is unavailable through the App runtime.

If access fails because scopes are missing, the CLI lists them and asks you to log in again. If Astrato rejects the scope request or returns an incomplete grant, ask your Astrato administrator to check the CLI client’s allowed scopes and your permissions before retrying.

login --json is rejected because login is interactive. An AI agent must not automate this flow or handle its device code. It should ask the user to run astrato login, wait for confirmation, then re-run astrato status --json.

Terminal window
astrato logout
astrato logout --json
$ astrato logout --help
Usage: astrato logout [options]
revoke and remove the saved Astrato login
Options:
-h, --help display help for command

logout has no options of its own.

Logout attempts server-side revocation and removes the saved credential. Do not run it merely to diagnose an error; it intentionally changes your saved authenticated state.

Terminal window
astrato status
astrato status --json
$ astrato status --help
Usage: astrato status [options]
show Astrato authentication and local project configuration
Options:
-h, --help display help for command

status has no options of its own.

From inside a project, status discovers the nearest astrato.json and reports your login and local configuration. It does not check access to the semantic layer; dev performs that check. A representative JSON shape is:

{
"authentication": {
"issuer": "https://app.astrato.io",
"scope": "data:query data:sql data:write profile publication:publish publication:read publication:write schema:read",
"state": "authenticated"
},
"command": "status",
"project": {
"semanticLayerId": "296dddd1-c121-4f12-a4c2-3c735d327da2",
"configPath": "/absolute/project/astrato.json"
},
"ok": true
}

state is authenticated only when the saved grant carries every scope listed under login; a narrower grant reports "state": "unauthenticated" and no scope field at all, so test for the field before reading it. The saved scope string is deduplicated and sorted, as above.

A directory without configuration returns "project":null. Do not parse the human-readable output in automation.

init configures an existing frontend project. The target must already be a directory containing package.json, a scripts object, and usable Vite development and build scripts.

Terminal window
astrato init [path] --semantic-layer-id <id>
astrato init [path]
$ astrato init --help
Usage: astrato init [options] [path]
configure an existing frontend project for Astrato hosting
Arguments:
path frontend project directory (default: ".")
Options:
--semantic-layer-id <id> semantic-layer UUID required for local development
--dev-script <script> package.json Vite development script
--build-script <script> package.json Vite build script
--output <directory> static build output directory
--template <name> add starter source: dashboard (themed dashboard page
following the design guide)
-h, --help display help for command
Option / argument Type Required Default Meaning
[path] directory No . The existing frontend project to configure.
--semantic-layer-id <id> semantic-layer UUID Yes, unless you enter it at the prompt none The layer the app queries. See below for where to find it.
--dev-script <script> package.json script No dev, or a script that invokes Vite The script that starts the Vite development server.
--build-script <script> package.json script No build, or a script that invokes Vite The script that builds the static frontend.
--output <directory> directory No dist, or the value already in the config Build output, relative to the project root.
--template <name> dashboard No none Adds starter source. See Start from the dashboard template.

Without overrides, the CLI prefers dev and build scripts and otherwise infers scripts whose commands invoke Vite. It creates or validates astrato.json and ensures .astrato/ is in .gitignore. Re-running the same initialization is safe. It refuses to silently replace a different semantic-layer ID: changing that association requires an intentional config edit. The exception is the placeholder ID 00000000-0000-0000-0000-000000000000, which marks a project as not bound to a layer yet. init replaces it with the ID you pass and keeps the file’s other settings, so an example project can ship an astrato.json. init refuses the placeholder as the ID to bind. If you rename scripts or change the output directory, re-run init with the corresponding overrides. Dev-script inference does not select vite preview, vite optimize or vite build.

A semantic-layer ID is required. In an interactive terminal, init prompts for it when omitted. Use an existing layer’s ID, not a name or an invented value. To find one, run astrato semantic-layers list, or call astrato_semantic_layer_list on an MCP connection and take a returned semanticLayerId — see MCP tools and Configure the semantic layer — or ask the layer’s owner for it. Initialization does not authenticate, create anything in Astrato, or verify access. Local development uses the model currently available to Astrato’s query engine, not an editor draft or a selected historical revision.

--template dashboard writes App Builder’s starter and a page framed as the Build a Data App guide describes, with the layer’s names left as TODOs. It needs CLI 0.2.0 or later. Start from a Vite vanilla-ts project, which has none of the template’s files:

Terminal window
npm create vite@latest my-app -- --template vanilla-ts
cd my-app
astrato init . --semantic-layer-id <id> --template dashboard
npm install @astrato-io/app-runtime@^0.9.0 @astrato-io/visualizations react react-dom
npm install -D @types/react @types/react-dom

init prints the two install commands for you. It writes nothing if any template file already exists, such as the src/App.tsx and src/main.tsx of a React project, and names those files. It points index.html at src/main.tsx, renames its <div id="app"> mount to root, and sets "jsx": "react-jsx" in tsconfig.json.

For non-interactive use, provide an absolute path, the semantic-layer ID and --json:

Terminal window
astrato init /absolute/project/path --semantic-layer-id <id> --json

Resolve the layer through live MCP context or ask the user. Do not publish or change the layer merely to make initialization succeed.

Terminal window
astrato validate [path]
astrato validate [path] --json
$ astrato validate --help
Usage: astrato validate [options] [path]
validate the nearest astrato.json and its local project
Arguments:
path project directory (default: ".")
Options:
-h, --help display help for command

validate has no options of its own. It takes one argument:

Argument Type Required Default Meaning
[path] directory No . Where the search for the nearest astrato.json starts.

Validation searches from the supplied path toward the filesystem root for the nearest astrato.json, checks it against schema version 1, verifies the project scripts, and checks that the output directory stays safely inside the project. A canonical semantic-layer UUID is required. Validation is local and does not prove that your login can access that layer; dev checks access. Add --json for automation.

Terminal window
astrato dev [path]
astrato dev [path] --no-open
$ astrato dev --help
Usage: astrato dev [options] [path]
run the app against its current Astrato semantic layer
Arguments:
path project directory (default: ".")
Options:
--no-open do not open the browser automatically
-h, --help display help for command
Option / argument Type Required Default Meaning
[path] directory No . Project directory containing astrato.json.
--no-open flag No off Print the sign-in URL without opening the default browser; described below.

dev does not accept --json. Logins are saved per host, so --host <url> needs an astrato login for that same host.

dev requires a saved login and configured semantic layer. It resolves the tenant and current semantic-layer metadata from Astrato, starts the configured Vite script, and exposes it through a per-run astrato-....localhost origin. The CLI prints and opens an HTTP sign-in URL that establishes your browser session and takes you to the clean App URL. Do not open Vite’s raw URL.

The CLI detects npm, pnpm, Yarn or Bun and forwards the loopback host, allocated port and strict-port options using that package manager’s argument syntax. You do not need to add these options to your development script.

Run separate astrato dev processes to develop multiple projects concurrently. Each gets its own framework port and App origin.

For both dev and build, install your package manager and make it available on PATH. On Windows, the CLI resolves it to an absolute file using the project’s working directory, PATH and executable extensions in PATHEXT. Native executables run directly; .cmd and .bat shims run through cmd.exe with quoted paths and validated arguments. Installation paths may contain spaces or ampersands. Batch-shim paths containing %, ! or double quotes are rejected; use an installation path without those characters. On macOS and Linux, the manager runs directly.

A semantic layer can load its fields while its data connection is broken: the database rejects the connection’s saved credentials, or cannot be reached. Queries, query insights, procedure calls and row writes then fail, whatever the App sends.

This is not in @astrato-io/cli 0.1.3. From the next release, the gateway answers those requests with HTTP 424 and the code data_connection_failed, and the terminal running astrato dev prints the message on stderr the first time it occurs:

Astrato could not open the semantic layer's data connection "Sales warehouse". This usually means the database rejected the connection's credentials or could not be reached, not a problem with your query or your sign-in. Ask the layer's owner to check the connection in Astrato.

In the App the failure is an AstratoAppRuntimeError with status 424, and the code and message are on error.response.error. The connection’s name is left out when Astrato does not return it, or when it is longer than 120 characters or contains a double quote or a control character. The database’s own error text is never included.

For a rejected credential or an unreachable database, changing the query or signing in again does not help. The connection’s credentials, or the database’s network access, have to be fixed first: see A saved connection stops working and Allow Astrato’s addresses. Then reload the App.

The CLI cannot tell those two causes apart, and Astrato’s data engine gives the same answer when the layer’s data connection belongs to another workspace. In that case the message appears although the connection itself works, and the layer has to be pointed at a connection in its own workspace.

Data actions are not covered: with a broken connection they still report their own error or HTTP 403 forbidden.

Version 0.1.3 and earlier report the same failure as HTTP 403 with the code forbidden and the message “Astrato denied access. Check your permissions and CLI login scopes.”, and print nothing in the terminal.

astrato dev 0.1.1 or later, with @astrato-io/app-runtime 0.2.0 or later, runs App procedure calls and row writes. Published Apps reject them.

Use the App runtime write methods without adding permission lists to astrato.json. The CLI binds procedures to the configured layer’s datasource and checks row views and fields against its current model. Your Astrato permissions, OAuth scopes and warehouse permissions govern execution. Procedure and schema names use unquoted identifiers, with an optional database prefix in the schema. Arbitrary SQL remains unavailable through the App runtime.

Semantic Business Workflow definitions are authoring and preparation metadata. The CLI does not expose their registry, execute them by name or look up their execution status. Existing explicit procedure and table-write APIs do not apply those definitions.

Queries use the model currently available to Astrato’s query engine. After changing that model, reload the page to fetch its current field metadata. The CLI does not pin a model revision or notify you when it changes, so an already-open page can temporarily have older metadata than its queries.

The browser receives a Data App session scoped to this dev run and can reach only the versioned /_astrato/v1/* runtime boundary. The authored Data App never receives the CLI’s OAuth token. The gateway exits with the frontend process and stops both on Ctrl+C. Allow a few seconds for cleanup; repeated Ctrl+C does not skip it.

Use --no-open to open the printed sign-in URL in your chosen browser instead of automatically launching the default browser. Reuse the same link in any browser profile on the same computer while this dev process runs. It has no short expiry or single-use restriction. Clearing browser cookies or switching browsers does not require a new link or a restart.

The URL grants access only to the running local app and contains no Astrato OAuth token or PAT. Avoid sharing it: anyone with the link and access to the local gateway can establish a session until the process stops. Shutdown invalidates the link and all its browser sessions; a restarted process prints a new link. Remote browsing and port forwarding are not supported. dev is long-running and does not support --json.

Browser automation does not require --no-open. Choose the opening mode for the browser you intend to use; see Browser automation for browser preferences, profile-specific admission and manual fallbacks. Agents may use the printed sign-in URL with a local browser tool; this does not authorize automating account login or handling OAuth credentials.

Terminal window
astrato snapshot [path] --out <directory>
astrato snapshot [path] --out <directory> --json
$ astrato snapshot --help
Usage: astrato snapshot [options] [path]
run the app in a headless browser, save screenshots and report what rendered
Arguments:
path project directory (default: ".")
Options:
--out <directory> directory for desktop.png and phone.png
--timeout <seconds> how long each screen size may take to finish loading
(default: "30")
--browser <path> Chrome, Chromium or Edge executable to use instead of the
installed one
-h, --help display help for command
Option / argument Type Required Default Meaning
[path] directory No . Project directory containing astrato.json.
--out <directory> directory Yes None Where desktop.png and phone.png are written. Created if missing; files are replaced.
--timeout <seconds> number No 30 Time each screen size may take to finish loading, from 1 to 600.
--browser <path> file No None Browser executable to start. ASTRATO_BROWSER sets the same thing.

snapshot is not in @astrato-io/cli 0.1.3.

snapshot shows what the app looks like without a browser window, for an assistant that has no browser tool or a script that checks the app. It needs a saved login and a configured semantic layer, as dev does. It starts the app the way dev does, loads it in a headless browser at 1440 by 900 and again at 390 by 844, saves a screenshot of each, prints a result, and stops the browser and the app. It does not need astrato dev to be running. A screenshot is as wide as the screen size and runs down the whole page, up to 8,000 pixels: content that needs sideways scroll is not in it.

The browser is a Chrome, Chromium or Edge already installed on the computer; the CLI does not download one. It runs with a temporary profile, so it never reads your own browser’s sign-ins, and it connects with the run’s own sign-in link. With no browser installed the command fails with app_unavailable before it starts the app.

$ astrato snapshot --out shots
desktop 1440x900: /absolute/project/shots/desktop.png
Objects: 2 rendered, 1 failed
rendered sales-by-month
rendered sales-by-segment
failed sales-by-region - not mounted Error: 0 matches for dimension "Regionn".
Data requests: 6, failed requests: 0
Page errors: 0
Console errors: 1
[sales-by-region] not mounted Error: 0 matches for dimension "Regionn".
Scrolls sideways: no
phone 390x844: /absolute/project/shots/phone.png
...
Result: failed

For each screen size the result holds:

Field Meaning
screenshot Absolute path of the PNG. A page taller than 8,000 pixels is cut there.
settled false when the page was still loading at the time limit. The screenshot shows it as it was then.
objects Each element with a data-object-id attribute: its id, a status and, unless it rendered, a reason.
dataRequests How many runtime data requests got a response.
failedRequests Requests that failed, grouped: count, path, HTTP status, and the runtime’s code and message when it gave them.
consoleErrors Errors the page wrote to the console, at most 20.
pageErrors Errors the page did not catch, at most 20.
scrollsSideways Whether the page is wider than the screen.

An object’s status is rendered, failed, loading or empty. snapshot reads it from the element’s data-state, which the dashboard template’s charts set:

data-state status
ready rendered
loading, timeout loading
empty empty
error, any other value failed

An element with data-object-id and no data-state counts as rendered when it has content and a size, and empty otherwise. The reason is the console error that starts with the object’s id in square brackets, when the page wrote one, and otherwise the message the object shows.

A page that marks no elements with data-object-id gets no object list. A failure shows only when it is a failed request or a console error, so write a chart’s error to the console with its id. A passing result does not verify the objects on such a page: a chart that never mounted, with no request and no error, still passes. snapshot waits for such a page to be quiet for three seconds, and one second otherwise.

The result passes only when every screen size settled, every object rendered, and there are no failed requests, console errors or page errors. Sideways scroll is reported and does not fail it. A passing result says the objects drew, not that the figures or the design are right: open the screenshots to judge those.

With --json, the result is one object on one line of stdout whether it passed or not, with one entry in viewports per screen size. This example is indented and leaves out phone:

{
"command": "snapshot",
"ok": false,
"viewports": [
{
"name": "desktop",
"width": 1440,
"height": 900,
"screenshot": "/absolute/project/shots/desktop.png",
"settled": true,
"objects": [
{ "id": "sales-by-month", "status": "rendered" },
{
"id": "sales-by-region",
"status": "failed",
"reason": "not mounted Error: 0 matches for dimension \"Regionn\"."
}
],
"dataRequests": 6,
"failedRequests": [],
"consoleErrors": ["[sales-by-region] not mounted Error: 0 matches for dimension \"Regionn\"."],
"pageErrors": [],
"scrollsSideways": false
}
]
}

The exit code is 0 when the result passed and 4 when it did not. A snapshot that could not be taken at all fails like any other command, with an error on stderr, as an object with --json. With no saved login that is exit 2; see the exit codes for the others.

Terminal window
astrato build [path]
astrato build [path] --json
$ astrato build --help
Usage: astrato build [options] [path]
build and validate the local static app artifact
Arguments:
path project directory (default: ".")
Options:
-h, --help display help for command

build has no options of its own. It takes one argument:

Argument Type Required Default Meaning
[path] directory No . Project directory containing astrato.json.

The CLI detects the project’s package manager, runs <manager> run <configured-script>, replaces only the validated configured output directory, and checks the resulting static artifact. Success writes .astrato/build-manifest.v1.json containing sorted relative paths, media types, byte counts, per-file SHA-256 values and one deterministic artifact digest.

The artifact must contain a root index.html.

The permitted set is a closed list of 29 extensions, matched case-insensitively. Anything outside it fails — this is not a deny-list, so a stray README.md or a .ts left in the output stops the build:

.avif .bmp .css .csv .gif .htm .html .ico .jpeg .jpg .js .json .mjs .mp3 .mp4 .ogg .otf .pdf .png .svg .ttf .txt .wasm .webm .webmanifest .webp .woff .woff2 .xml

Common extensions that are not permitted include .map, .md, .ts, .tsx, .eot, .wav, .flac, .mov and .zip — and a file with no extension at all. The message is “The static artifact contains an unsupported file type.”, under artifact_invalid, with the file in details.path.

A .map file is checked first and gets its own message, “Source maps are not supported in an Astrato App static artifact.”, so switching source maps off is a different fix from removing an unsupported type.

Eleven exact filenames are refused — .npmrc, astrato.json, bun.lock, bun.lockb, id_dsa, id_ed25519, id_rsa, package-lock.json, package.json, pnpm-lock.yaml, yarn.lock — along with four credential extensions, .key, .p12, .pem and .pfx, and .env or anything beginning .env.. They share one message: “The static artifact contains a credential-bearing or project file.” The match is on the whole lowercased filename, so package.json.txt is not one of them. The name is checked before the extension, so a stray id_rsa or .env.local reports this message and never the unsupported-type one.

Six structural rejections complete the set: an output path that is missing, is not a directory, or is itself a symbolic link; a symbolic link anywhere in the tree; any non-regular file; a file that cannot be read; an empty output directory; and a missing index.html at the root.

Eleven text extensions are scanned for six patterns — .css, .csv, .htm, .html, .js, .json, .mjs, .svg, .txt, .webmanifest and .xml. A secret inside a .wasm, a .pdf or an image is not inspected.

The bearer check matches a placeholder as readily as a real token. Bearer followed by twenty or more token characters fails the build, so a documentation snippet or a demo string in an authored asset stops it exactly as a live credential would. The error says so: “a bearer-shaped value; remove real credentials and token placeholders from authored assets”.

The defaults are 50 MiB per file, 10,000 files and 250 MiB in total, and those three give payload_too_large rather than artifact_invalid. Of those, only the per-file limit names the file in details.path; the total-size and file-count failures carry no details at all. A fourth limit, 1,024 bytes per relative path, reports as artifact_invalid with the path in details.path.

Publishing has a tighter file ceiling than building. An upload accepts at most 2,000 files, so a build of between 2,001 and 10,000 files succeeds and then fails at publish with “Publication uploads support at most 2000 files.”

build --json suppresses the frontend build logs so stdout contains one result. Building does not upload or deploy the artifact.

Terminal window
astrato publish [path] --publication-id <id> --expected-version <version> --idempotency-key <key>
$ astrato publish --help
Usage: astrato publish [options] [path]
build, upload and publish an app to an explicit publication
Arguments:
path project directory (default: ".")
Options:
--publication-id <id> existing publication ID
--publication-node <id> host on an available publication node
independently of data execution
--follow-data-node reset hosting to the data exit node ("Deployment
Region" in Astrato); no fallback
--expected-version <version> version from the last read
--idempotency-key <key> unique operation key; reuse with the same
content when retrying
--image <path> optional cover image (PNG, JPEG, WebP or GIF, up
to 2 MB) shown in the Apps list
--collection <id> optional collection ID to add the app to; you
must be able to edit it
-h, --help display help for command

Every option below is read from the installed CLI. astrato <command> --help remains the source of truth for your installed version. Options marked Required fail the command before anything changes if they are missing. The global options --json and --host <url> work on every command below; --json is covered under Machine-readable output.

Three ideas recur:

  • --expected-version takes the version you last read with publications get or publications list. It must be a positive whole number, otherwise the CLI stops with invalid_request: “–expected-version must be a positive integer from the most recent read.”
  • --idempotency-key is any unique string you choose for one operation. Reuse it only when retrying that same operation; see Recovering an interrupted publish.
  • --publication-node and --follow-data-node are mutually exclusive. Passing both fails with “Use either –publication-node or –follow-data-node, not both.”
Option / argument Type Required Default Meaning
[path] directory No . Project directory containing astrato.json.
--publication-id <id> publication ID Yes none The existing publication to replace, as returned by publications create. Its semantic layer must match the one in astrato.json.
--expected-version <version> positive number Yes none Version from your last read. A publication that has changed since is refused with version_conflict.
--idempotency-key <key> string Yes none Unique key for this publish. Reuse it, with unchanged build output, only to retry.
--publication-node <id> location ID No not changed Host on an available publication location, independently of data execution. List the IDs with publications get <id> --hosting.
--follow-data-node flag No off Reset hosting to the data exit node (“Deployment Region” in Astrato), with no fallback.
--image <path> file path No none Cover image: PNG, JPEG, WebP or GIF, 2 MB or less. See Set a cover image when publishing.
--collection <id> collection ID No none Add the app to this collection after it publishes. You must be able to edit the collection. See Add a published app to a collection.

Sample human-readable output on success:

Published Sales app (v2). Artifacts verified and activated; application loading and data queries have not been checked.
<canonical app URL>

When Astrato returns no canonical address, the last line is the reason it gives instead, or a message asking you to have your administrator check publication hosting.

With --json, stdout carries one object with command: "publish", the publication, and a verification object in which artifacts is verified while application and dataQueries are not_checked. When you passed --collection, it also carries a collection object with id, added and, if the add was refused, reason.

For the whole flow, from creating the publication to recovering an interrupted upload, see Publish an app.

publications is a command group with no options of its own.

$ astrato publications --help
Usage: astrato publications [options] [command]
list and manage app publications
Options:
-h, --help display help for command
Commands:
list [options]
get [options] <id>
create [options] [path] reserve an unpublished publication without building
or uploading content
update [options] <id>
unpublish [options] <id>
delete [options] <id>
help [command] display help for command
Terminal window
astrato publications list [--cursor <cursor>]
astrato publications get <id> [--hosting]
$ astrato publications list --help
Usage: astrato publications list [options]
Options:
--cursor <cursor> continue from nextCursor
-h, --help display help for command
$ astrato publications get --help
Usage: astrato publications get [options] <id>
Options:
--hosting show available publication locations and connection warnings
-h, --help display help for command
Option / argument Applies to Type Required Default Meaning
--cursor <cursor> list string No first page Continue from the nextCursor of the previous page.
<id> get publication ID Yes none The publication to read.
--hosting get flag No off Also show the available publication locations, the default one, the data exit node and any connection warning.

Sample list output: one line per publication as ID, status, version and name, then a cursor line while more pages remain.

<publication-id> <status> v3 Sales app
Next cursor: <next-cursor>

Sample get output:

Sales app (<publication-id>)
Status: <status>
Version: 3
<canonical app URL>

With --hosting, get adds the data exit node, the default publication node, one line per available publication node (ID and label) and any warning.

Terminal window
astrato publications create [path] --name <name> --idempotency-key <key>
$ astrato publications create --help
Usage: astrato publications create [options] [path]
reserve an unpublished publication without building or uploading content
Arguments:
path project directory (default: ".")
Options:
--name <name> publication display name
--idempotency-key <key> unique key for this creation; reuse only when
retrying
-h, --help display help for command
Option / argument Type Required Default Meaning
[path] directory No . Project directory. The publication is tied to the semanticLayerId in its astrato.json.
--name <name> string Yes none Display name of the publication.
--idempotency-key <key> string Yes none Unique key for this creation. Reuse it only when retrying.

It reserves an unpublished target; it does not build or upload anything. Sample output:

Publication Sales app (<status>)
Publication ID: <publication-id>
Version: 1
Terminal window
astrato publications update <id> --expected-version <version> [options]
astrato publications unpublish <id> --expected-version <version> --yes
astrato publications delete <id> --expected-version <version> --yes
$ astrato publications update --help
Usage: astrato publications update [options] <id>
Options:
--name <name> new display name
--audience <audience> authenticated or public
--expire-at <utc> UTC expiry timestamp, or none to remove expiry
--embedding <enabled> true or false; requires explicit allowed domains
when true
--embed-domain <domains...> allowed embedding hostnames (requires
--embedding)
--publication-node <id> use an explicit publication location
--follow-data-node always default publication hosting to the data
exit node ("Deployment Region" in Astrato)
--expected-version <version> version from the last read
-h, --help display help for command
$ astrato publications unpublish --help
Usage: astrato publications unpublish [options] <id>
Options:
--expected-version <version> version from the last read
--yes confirm disabling this publication
-h, --help display help for command
$ astrato publications delete --help
Usage: astrato publications delete [options] <id>
Options:
--expected-version <version> version from the last read
--yes confirm disabling this publication
-h, --help display help for command
Option / argument Applies to Type Required Allowed values Meaning
<id> all three publication ID Yes an existing publication The publication to change.
--expected-version <version> all three positive number Yes version from your last read A stale version is refused with version_conflict.
--yes unpublish, delete flag Yes present Confirms the action. The CLI does not prompt; without it the command is rejected.
--name <name> update string No any display name New display name.
--audience <audience> update string No authenticated, public Who can open the app. public has extra requirements, described under Publish an app.
--expire-at <utc> update UTC timestamp No a UTC timestamp, or none Expiry time. none removes the expiry.
--embedding <enabled> update string No true, false Turns embedding on or off. When true, give the allowed domains with --embed-domain.
--embed-domain <domains...> update one or more hostnames No hostnames; only with --embedding Allowed embedding hostnames. Passing it without --embedding fails.
--publication-node <id> update location ID No an available location Use an explicit publication location.
--follow-data-node update flag No present Always default hosting to the data exit node (“Deployment Region” in Astrato).

Options you leave out of update are not changed. An invalid --audience, an --embedding other than true or false, or --embed-domain without --embedding fails with “Use –audience authenticated|public and –embedding true|false. –embed-domain requires –embedding.”

Each command prints one line on success:

Updated Sales dashboard (v4).
Unpublished publication <publication-id>.
Deleted publication <publication-id>.

With --json, update returns the publication, unpublish returns publicationId and the publication, and delete returns publicationId and deleted: true.

Find a layer’s ID, then read what it can answer, without an MCP connection.

semantic-layers is a command group with no options of its own:

$ astrato semantic-layers --help
Usage: astrato semantic-layers [options] [command]
find semantic layers and manage their sharing
Options:
-h, --help display help for command
Commands:
list [options] list the semantic layers you can read, most
recently updated first
describe <id> show a semantic layer's stored measures and
dimensions, with their descriptions
visibility [options] <id> show or change whether a semantic layer is visible
to everyone in the workspace
help [command] display help for command
Terminal window
astrato semantic-layers list
astrato semantic-layers list --name "fernhill outdoor"
astrato semantic-layers describe <semantic-layer-id>
Option / argument Type Required Allowed values Meaning
--name <words> string No any words list keeps layers whose name contains every word, ignoring case.
--offset <n> whole number No a returned nextOffset list continues from the previous page.
<id> semantic-layer UUID Yes an existing layer describe reads this layer.

list prints each layer’s ID, name and data source, 50 at a time, most recently updated first; with --json it returns items and, when there are more, nextOffset. A name search reads the 1,000 most recently updated layers. describe prints the layer’s stored measures and dimensions with their descriptions and the views they read, then each view’s columns: the names an app looks fields up by. Its description says what each measure counts, its unit and which measures store a period comparison. Both read only what you may read, through astrato login or a PAT.

Share a semantic layer with everyone in the workspace, or stop.

Terminal window
astrato semantic-layers visibility <semantic-layer-id>
astrato semantic-layers visibility <semantic-layer-id> --everyone true
astrato semantic-layers visibility <semantic-layer-id> --everyone false --json
$ astrato semantic-layers visibility --help
Usage: astrato semantic-layers visibility [options] <id>
show or change whether a semantic layer is visible to everyone in the workspace
Arguments:
id semantic layer UUID
Options:
--everyone <enabled> true to make the layer visible to everyone, false to
stop
-h, --help display help for command
Option / argument Type Required Allowed values Meaning
<id> semantic-layer UUID Yes an existing layer The layer to read or change.
--everyone <enabled> string No true, false Set Visible to everyone. Leave it out to report the current value.

Any other --everyone value fails with invalid_request and “Use –everyone true|false.” Setting the value it already has changes nothing and reports that the layer “was already” visible, or not.

Without --everyone the command reports whether the layer is visible to everyone in the workspace. --everyone true and --everyone false set the editor’s Visible to everyone toggle; grants to named users, groups and roles are kept. Astrato checks that you may manage access to the layer. Use a PAT (ASTRATO_TOKEN) or astrato login; a browser cookie session is not accepted here.

astrato init owns this file. Do not hand-write it when the CLI is available. The current generated shape is:

{
"$schema": "https://schemas.astrato.invalid/hosted-app/v1/astrato.schema.json",
"semanticLayerId": "296dddd1-c121-4f12-a4c2-3c735d327da2",
"build": {
"output": "dist",
"script": "build"
},
"dev": {
"adapter": "vite",
"script": "dev"
},
"hosting": {
"spa": true
},
"kind": "app",
"schemaVersion": 1
}

The .invalid schema host is an intentional preview placeholder and is not expected to resolve. schemaVersion, not $schema, selects the contract enforced by the CLI.

Property Meaning
$schema Editor hint written by the CLI; it does not select CLI behavior
schemaVersion Configuration contract version; currently exactly 1
kind Project kind; currently exactly "app"
semanticLayerId Required semantic-layer UUID; local development uses its current engine model
dev.adapter Local framework adapter; currently exactly "vite"
dev.script Name of the package.json script that starts Vite
build.script Name of the package.json script that produces static output
build.output Project-relative static output directory; must not escape or overlap protected directories
hosting.spa Required boolean; whether hosting uses single-page-application fallback

A semanticLayerId of 00000000-0000-0000-0000-000000000000 is a placeholder, not a layer: it passes the schema, and astrato init replaces it with a real ID.

Every property above is required and none has a default. Omitting one, or adding one the contract does not define, fails astrato validate with config_invalid.

Do not add credentials, tenant IDs, datasource IDs, revision pins, environment targets or API origins to this file. Only the semantic-layer ID belongs in config; Astrato resolves and authorizes the remaining context using your current login.

Use --json for agents and automation except where explicitly unsupported. A successful command writes exactly one JSON object to stdout and exits 0:

{
"command": "validate",
"configPath": "/absolute/project/astrato.json",
"semanticLayerId": "296dddd1-c121-4f12-a4c2-3c735d327da2",
"ok": true
}

A failed command writes exactly one JSON object to stderr:

{
"error": {
"code": "config_invalid",
"message": "astrato.json does not match the Data App v1 schema.",
"details": {}
},
"ok": false
}

Exit codes are:

  • 0 — success;
  • 1 — unexpected/internal failure;
  • 2 — expected request, configuration, authorization, network, runtime or artifact failure;
  • 3 — operating system credential-store unavailable or corrupt.
  • 4 — snapshot ran and the app did not render cleanly; the result is on stdout.
  • 130 — cancelled by an interrupt, including an interactive prompt.

Treat error.code as the stable programmatic category. Display error.message and retain details for diagnosis; do not parse prose to decide the next action.

Exit codes cannot stand in for the code. Everything except internal_error, the two credential-store codes and cancelled collapses onto exit 2, so a retryable failure and a terminal one look identical by exit status. The CLI’s JSON error also has no retryable field, so the retry decision has to come from the code itself. These are not the App runtime’s error codes: the hosted runtime has its own vocabulary and does carry a retryable flag, described under Runtime errors.

Code Means Retry?
temporarily_unavailable Astrato was unreachable, an artifact upload failed, or a credential lock timed out Yes, with the same idempotency key
rate_limited HTTP 429 Yes, later
upstream_timeout An authentication refresh or astrato dev request timed out, or Astrato sent 504 Yes, later
version_conflict The publication changed under you, or its data exit node did No — read the current version first
invalid_request Malformed request, or an idempotency key reused for different content No
config_invalid, config_not_found astrato.json is wrong or missing No
artifact_invalid, build_failed The build produced nothing usable No
payload_too_large The artifact breaks a size or file-count limit No
unauthenticated No saved login, or it has expired After signing in
forbidden Signed in, but not permitted — including a missing OAuth scope No
not_found The named resource does not exist No
upstream_invalid_response Astrato answered with something the CLI could not read No
credential_store_unavailable, credential_store_corrupt The operating system credential store is locked, denied or damaged (exit 3) After fixing the store
cancelled Ctrl+C, or an abandoned interactive prompt (exit 130) —
internal_error Anything the CLI did not classify (exit 1) No

details is structured per failure kind: { path } for an artifact or project-path failure and for a credential-lock timeout, { exitCode } for a failed frontend build, { status } and sometimes { serverCode } for a rejected publication or access request, { missingScopes } where the login lacks a scope the CLI requires, and { filesystemCode } for six errno values — EACCES, EPERM, EISDIR, ENOTDIR, ENOENT and ENOSPC — which also append “(code; check local file access and disk space)” to the human-readable message.

Each key is absent where that failure carries nothing, so read every field as optional: an upstream_timeout raised by a timed-out authentication refresh carries no details at all.

internal_error always carries the fixed message “Astrato CLI failed unexpectedly.” Dependency messages, URLs, request bodies and stacks are deliberately never printed, so a reproduction needs the command rather than the output.

Two distinctions worth coding against. A reused idempotency key with different content is invalid_request, not version_conflict — “Use a new key for a new operation.” And version_conflict carries a standing instruction not to retry blind: read the publication’s current version first, and where its data exit node changed, publish with a new key.

A server’s own error code is honoured only on HTTP 400, 404, 409 and 422, and only when the CLI knows it. Otherwise the status alone decides: 409 is version_conflict, 401 unauthenticated, 403 forbidden, 404 not_found, and anything else upstream_invalid_response.

Three codes exist but never reach a JSON error object, because they belong to the local development gateway: csrf_token_required, csrf_token_invalid and data_connection_failed (see When the layer’s data connection fails). They can appear as the code of a failed request in a snapshot result. app_unavailable reaches a JSON error object only from snapshot, when no browser is installed, or the browser, the page or the Vite server did not start or stopped answering; astrato dev reports it as prose, because it does not support --json.

A missing saved login is unauthenticated. If reading or deleting a credential fails because the store is locked or access is denied, the CLI reports credential_store_unavailable with exit code 3. A failed deletion does not report a successful logout. Restore access to the operating system credential store and retry; the CLI has no plaintext credential fallback.

If another CLI process holds the credential lock, let it finish or close it and retry. The CLI waits 30 seconds before reporting it as held, with “Another Astrato CLI process holds the credential lock. Close it and retry; an incomplete abandoned lock may need manual removal.” That error’s code is temporarily_unavailable, so it exits 2, not 3 — it is not a credential-store failure.

The lock lives in the CLI’s private directory, .astrato-cli in your home directory. That is not the project-local .astrato/ described above; the two names look alike and advice about one is destructive applied to the other. A lock is itself a directory rather than a file — creating it is how the lock is taken. There is one per normalized host, named auth-refresh-<hash>.lock, and details.path names the exact one, so the guidance below is actionable in --json mode; human-readable output prints the message alone.

An abandoned lock is reclaimed for you, but only when all four hold at once: it has not changed for over 120 seconds, it holds exactly one owner file, that file is named as an owner file, and the process it names is positively gone. A process probe that is refused counts as alive, not abandoned. A lock whose owner file was never written is left in place deliberately, so an interrupted acquisition fails closed. Releasing removes the owner file and then the directory itself, never recursively, so a lock holding anything unexpected is never cleaned up for you.

Only remove the specific lock reported in the error, after confirming no other CLI process is using that login. Do not delete the whole private directory or clear your credential store to diagnose a lock error — the directory holds coordination state only, so removing a lock never signs you out, and the renewable login is in the operating-system credential store. Interrupting the wait with Ctrl+C reports cancelled and changes nothing either.

A .astrato-cli that is a symbolic link, or not a directory, is refused on every platform. On macOS and Linux it must also be owned by you and readable by nobody else; the CLI creates it as 0700 and refuses it otherwise. Either way you get credential_store_unavailable and “Astrato could not coordinate credential access. Check your CLI private directory permissions.” A lock directory that fails the same test ends the command immediately with that error instead of waiting and retrying.

If dev reports upstream_invalid_response while resolving your data context, the message identifies whether account, semantic-layer or datasource metadata failed validation. Share that message when reporting the problem; do not share credentials or raw API response contents.

Use the current CLI preview containing these commands (astrato publish --help). Your administrator must enable publications on your Astrato host. Management commands use your saved astrato login by default and check your normal publication permissions. Log in again if your existing grant predates publication authoring support. The semantic layer must already be published and its connection must select a supported exit node. Use the App runtime for hosted queries; do not upload code that depends on a local development query proxy.

For interactive use, run astrato login, then use the publication commands below. For automation, you can override the saved login with exactly one explicit credential. For a PAT, follow the secure PAT input example to set ASTRATO_TOKEN. Alternatively, supply your browser session’s Cookie header as ASTRATO_COOKIE using hidden input:

Terminal window
printf 'Astrato session cookie: '
IFS= read -r -s ASTRATO_COOKIE
printf '\n'
export ASTRATO_COOKIE

Do not set both variables or put credential values in command arguments, project files or chat. The CLI never reads browser credential stores. The CLI handles CSRF for cookie credentials; PAT calls use bearer authentication. Unset the variable when finished. Explicit credentials take precedence; a rejected PAT or cookie does not fall back to OAuth. Publication tokens are not passed to customer build subprocesses or command results.

Terminal window
astrato publications create ./my-app --name "Sales app" --idempotency-key sales-app-create-1
astrato publications get <publication-id>
astrato publish ./my-app --publication-id <publication-id> --expected-version <version> --idempotency-key sales-app-publish-1

create reserves an unpublished target; it does not build, upload or publish app content. Use the ID returned by create and the version returned by get. There is no implicit publication target saved in astrato.json. Pass --host with the Astrato origin you logged into or that issued your explicit credential when your organization uses a different origin. You need create permission to create a publication, and publish permission plus semantic-layer access to upload it.

publish first checks publication access, OAuth publish scope, the published semantic layer and selected hosting location without changing the publication. Failed prerequisites stop before the build; use publications get <publication-id> --hosting --json to inspect available locations and data-node warnings. This check does not probe storage, the hosted app or data queries. The server rechecks prerequisites when preparing and completing the upload.

The command then runs the configured build, uploads each validated file and asks Astrato to verify the contents before making them current. OAuth tokens, PATs and session cookies are never uploaded with the files. New files use your tenant’s existing storage; you do not configure a bucket. CLI builds permit up to 50 MiB per file and 250 MiB in total; publishing additionally limits the artifact to 2,000 files. A failed upload leaves the previously published app available.

For automation, add --json to receive one result containing publication metadata, without upload URLs or credentials. The result’s verification distinguishes verified artifacts from unchecked application loading and data queries. Open the hosted app to verify those separately. When no canonical URL is available, publication.urlUnavailableReason explains why; a missing configured hostname requires administrator action. login remains interactive and does not support JSON mode.

Terminal window
astrato publications list
astrato publications list --cursor <next-cursor> --json
astrato publications get <publication-id> --json
astrato publications update <publication-id> --name "Sales dashboard" --expected-version <version>
astrato publications update <publication-id> --audience public --expected-version <version>
astrato publications unpublish <publication-id> --expected-version <version> --yes
astrato publications delete <publication-id> --expected-version <version> --yes

List returns at most 100 items; follow nextCursor until it is null. Unpublish disables delivery and allows later republishing. Delete removes the publication from the catalog and disables its URL; it cannot be undone through the CLI. Audit records and stored files are retained. Deletion requires its own delete permission. The CLI cannot edit permissions: use the row’s Manage access action under Analytics → Library, or the publication access tools on an MCP connection — see Manage publications in the lobby and MCP tools.

--audience public makes an app open without sign-in. It needs manage-access permission on the publication and the workspace’s external embedding setting, as in the lobby. It does not open the app’s data. When anybody still cannot read the semantic layer or the data connection, or Astrato cannot read their permissions, the command prints a Warning: line after Updated <name> (v<version>)., and until both are open, someone opening the link sees This app isn’t open to the public yet. astrato semantic-layers visibility <id> --everyone true opens the semantic layer, to every workspace member as well as to public viewers; the CLI has no command for the data connection. Open both from the app’s Public access tab instead, as described in Public access and embedding. --audience authenticated takes it back, and needs neither that setting nor a confirmation — see Taking public access back off, which also covers the way --embedding false erases the stored allowed-domain list.

astrato publish takes an optional --image <path>: a PNG, JPEG, WebP or GIF of 2 MB or less, shown on the app’s card in the Library. With none set, the app falls back to a built-in Astrato cover rather than an empty box.

The CLI checks three things before it does anything else, so a rejection costs nothing — no preflight, no build, no upload:

  • The extension must be .png, .jpg, .jpeg, .webp or .gif, matched case-insensitively. Anything else: “–image must be a .png, .jpg, .jpeg, .webp or .gif file.” .svg is accepted inside the build artifact but not as a cover.
  • The file must be larger than zero bytes and no larger than 2 MB. Both ends give the same message: “–image must be 2 MB or smaller.”
  • The file must be readable: “–image path could not be read.”

All three are invalid_request, so they exit 2. The path is resolved against your current directory, not against the project directory you passed.

A bad cover never fails the publish. The cover is set after the app is already live, and a failure there is swallowed so the command still exits 0. In human-readable mode you get one line on stderr — “Warning: published, but the cover image was not set (reason). Set it from the Apps page.” — and with --json that warning is suppressed entirely. The result then reports the cover the publication already had: null for an app that never had one, and the previous image’s URL when you were replacing one. An automation replacing a cover therefore cannot tell from the result that the new one failed. Success is as quiet in human-readable mode: the result names the publication, its version and its URL, never the cover, so the absence of the warning is the only confirmation.

That matters because the CLI checks the extension while the server checks the file’s own magic bytes. A .png that is really a JPEG passes locally and is refused upstream with “The image content does not match its type.”, which in --json mode is silent.

The warning repeats the underlying error, which for an unreachable Astrato reads “Retry with the same idempotency key.” Ignore that advice: the publish itself succeeded, and only the cover is missing. Set it from the lobby instead.

Ctrl+C during the cover upload reports cancelled and exits 130 although the app is live and published. Read the publication before deciding whether to republish.

When a cover is set, publication.image is a same-origin relative URL, /api/publications/<id>/image?v=<digest>.

Two more things worth knowing: publishing needs publish permission but setting a cover needs manage, so someone holding only the first publishes successfully and sees nothing but the warning. And a cover change does not move the publication version, so it never causes a version_conflict and never invalidates an --expected-version you are holding.

--image exists on publish alone. Neither publications create nor publications update accepts it, there is no MCP input for it, and the CLI cannot clear a cover — there is no --image none. Use the lobby’s cover controls for that.

Retry the same command with the same idempotency key, expected version and unchanged build output. Astrato resumes the interrupted upload. A successful completed attempt can also be retried safely. If rebuilding produces different content, read the latest publication and start a new operation with a new key. Never reuse a key for different content, and never automatically overwrite a version_conflict. Read current state and decide which change to keep.

The saved OAuth login renews access automatically. If the login is revoked or lacks scopes, run astrato login again. For an explicit PAT or cookie, replace that credential instead. A permission error requires the appropriate publication ACL; supplying a different authentication method does not grant additional rights.

  • Confirm that the project is a Data App before using this CLI.
  • If astrato is missing, follow the supported global installation above. If installation is not permitted or package access is unavailable, tell the user exactly what is missing; do not switch hosting models.
  • Prefer absolute project paths, explicit init choices and --json.
  • Ask the user to perform astrato login personally; never request or handle authentication material.
  • Use init for supported config updates. Never invent IDs, open Vite’s raw origin, or emulate the local gateway.
  • Before reporting an app as done, look at it: with your own browser tool, or with snapshot when you have none. A passing build does not show that a chart drew.
  • Publish only when authorized, using the documented commands above; do not manufacture deployment commands.