Skip to content

CLI reference

The commands and connection settings you will use most.

The binary is named r2cast. From a built checkout, substitute node packages/cli/dist/main.js.

node packages/cli/dist/main.js --help

Commands

Command Purpose
connect Save a connection profile
podcast list, get, create, update Manage shows and private settings
episode create, update, get, validate Manage private episode drafts
upload Upload a file from an allowed local root
release prepare, publish, schedule, cancel Plan and authorize public changes
release get, list, retry Inspect publication and recover an accepted job
grant list, create, revoke Manage agent access as the owner
view Return a URL for a focused task view
call Call any canonical operation with a JSON file
mcp --stdio Start a local MCP server
install Validate, plan, or apply the Alchemy installation

Common options

  • --url or R2CAST_URL selects the management URL.
  • --profile or R2CAST_PROFILE selects a connection profile.
  • --token-file or R2CAST_MCP_TOKEN_FILE loads an agent credential.
  • --access-jwt-file loads a production owner session from a private file.
  • --file reads JSON input.
  • --key sets the idempotency key for a mutation.
  • --json produces machine-readable results and errors.
  • --wait explicitly waits for a release; stopping the client does not cancel it.

Use the current command help for command-specific arguments. The examples in these docs use placeholders such as EPISODE_ID; replace them with returned values.

Call an operation directly

Save {"slug":"my-show"} in context.json:

r2cast call capabilities --file context.json

Use this path for operations without a dedicated command, including distribution, revision reads, and export.

Exit codes

Code Meaning
0 Command succeeded
1 Other failure
2 Validation failure
3 Forbidden
4 Conflict

A successful publish command can return an accepted job that is still running. Read the release until it is completed.

Type to search…

↑↓ navigate↵ selectEsc close