The daster command

Commands for connections, MCP tools, website deploys and AI tool setup, with their flags and exit codes.

Last updated

Run daster help for the short usage text. Every command that talks to DASTER uses a profile created with daster login (see Install and sign in). Add --profile NAME to use one other than default.

Commands

CommandWhat it does
daster login [--write] [--open] [--profile NAME] [--console URL]Connect this machine to one project and environment
daster listShow saved profiles, their project and scopes
daster diagnoseCheck sign-in discovery, the access token and the MCP link
daster toolsList the MCP tools this connection may call
daster call <tool> [--args JSON]Call one MCP tool and print its answer
daster deploy [FOLDER|FILE.zip] [--name NAME | --app ID] [--no-wait]Put a website on DASTER Hosting
daster setup <vscode|cursor|claude-code|codex> [--stdio] [--write]Print or write an AI tool's MCP configuration
daster mcpRun a local stdio bridge to the hosted MCP server
daster logoutRevoke the connection and forget the profile
daster --versionPrint the version

Exit codes

CodeMeaning
0Done
1DASTER refused the request, or the command failed
2A person has to approve the request in the Dashboard first
64Unknown command or flag

Check a connection

Terminal
daster diagnose

The command prints one ok or FAIL line per check: OAuth discovery, the access token (renewed if needed), and the MCP connection with the number of tools and the connected project. It exits with 1 if any check fails.

Call a tool

daster tools prints one line per tool: its name, read or write, and a description. A connection made without --write lists only the read tools.

Terminal
daster call project_overview
daster call app_status --args '{"appId":"<app id>"}'

--args must be a JSON object. When the tool needs a person's approval, the command prints the answer, then "Human approval required: approve it in DASTER (Developer access › Approvals), then rerun with the same --args plus "approvalId"." and exits with 2. Approve the request once in the Dashboard and run the same call again with "approvalId" added to --args.

Deploy a website

Deploys need a connection made with daster login --write.

Terminal
daster deploy ./site --name my-site
daster deploy ./site --app <app id>

The first form creates a website. The name comes from --name, or from the folder name, turned into lowercase letters, digits and hyphens (at most 40 characters). The second form deploys a new version of an existing website.

What happens:

  1. The command zips the folder. It leaves out .git, node_modules, .env files (.env.example is kept), .pem, .key, .p12 and .pfx files, .aws, .ssh and symbolic links. The archive may be at most 100 MB. You can also pass a .zip file you made yourself.
  2. A folder with an index.html and no package.json or Dockerfile is a plain site. The command places it in public/, which Hosting serves.
  3. The archive is uploaded through a one-use link and DASTER detects the framework and build settings.
  4. Hosting charges your wallet, so DASTER asks for approval. The command prints "Approve this in DASTER (it charges your wallet):" with the address of Developer access › Approvals, and waits up to 15 minutes. Choose Approve once there.
  5. The command prints Deploying <app id> (deployment <deployment id>). and two follow-up commands: daster call app_status for the status and daster call database_connect_app to give the website a database.

With --no-wait, the command stops after printing the approval address and a daster deploy --upload … --commit … --approval … command to run once you have approved, and exits with 2.

See Deploy from GitHub for deploys from a repository instead of a folder.

Errors you may see

MessageWhat to do
No DASTER connection "default". Run: daster loginSign in, or pass the right --profile
This connection lacks permission for that tool. Reconnect with: daster login --writeThe connection is read-only
This connection was revoked or is no longer authorized. Run: daster loginIt was disconnected, or you lost access to the project
Cannot reach DASTER at … (network)Check your network, or the address set with --console or DASTER_CONSOLE_URL