Skip to main content

CLI reference

yukta-cli is a single binary that calls the REST API of a Yukta server; this page lists its commands, flags, environment variables and exit codes. Syntax: yukta-cli [global flags] <command> [subcommand] [arguments] [flags]. Global flags may come before or after the command. <x> is a required argument, [x] an optional one. yukta-cli <command> --help prints the flags of one command.

Global flags

--url

  • Type: string
  • Default: http://localhost:9858
  • Environment: YUKTA_SERVER_URL
  • Description: Base address of the server.

--token

  • Type: string
  • Default: none
  • Environment: YUKTA_TOKEN
  • Description: API key, sent as Authorization: Bearer <key>. Mutually exclusive with --token-file.

--token-file

  • Type: path
  • Default: none
  • Description: File that holds the API key; surrounding whitespace is trimmed.

--insecure-token

  • Type: boolean
  • Default: false
  • Environment: YUKTA_INSECURE_TOKEN
  • Description: Allows sending the token over plain http to a host that is not loopback; refused otherwise.

--timeout

  • Type: duration
  • Default: 30s
  • Description: Time limit of each non-streaming request; 0 disables it. Streaming commands are not limited by it.

--retries

  • Type: integer
  • Default: 0
  • Description: Extra attempts for reads, and for starts (an idempotency key is generated), on network errors, 429 and 502 to 504.

--retry-wait

  • Type: duration
  • Default: 1s
  • Description: First pause between retries; it doubles each time, and a longer Retry-After from the server wins.

-o, --output

  • Type: table or json
  • Default: table
  • Description: Output format of every command; any other value is a usage error.

Environment-only settings

A flag overrides its environment variable. The client reads no configuration file.

Exit codes

On failure the command prints error: <message> to standard error.

Server and identity

AI agents

The key for the agents comes from --token, --token-file or YUKTA_TOKEN, like every other command. See Connect an AI assistant.

Sessions and workflow definitions

Runs

logs flags

Nodes

All take <session-id> <execution-id> <node-id> except where noted.

Control bus

controlbus watch flags

Input requests

Supervisors

Not in the CLI

The CLI has no command for draining the server (/api/admin/drain), templates or metrics. Use the REST API. See Client parity for every task across the four clients.