Skip to content

Utility Commands

Commands for inspection, Dockfile modification, diagnostics, and info.


Invoke the agent and inspect its output, optionally generating io_schema from the result.

Terminal window
dockrion inspect [path] [options]
Argument/OptionFlagTypeDefaultDescription
path(positional)strDockfile.yamlPath to Dockfile
--payload-pstrnullJSON payload as string
--payload-file-fstrnullPath to JSON file
--generate-schema-gboolfalseGenerate io_schema YAML from output
--output-ostrnullSave output or schema to file
--raw-rboolfalseShow raw Python repr instead of JSON
--verbose-vboolfalseDetailed output

When --generate-schema is set, inspect invokes the agent, examines the output structure, and generates a YAML io_schema block that matches the output shape. This is useful for bootstrapping your Dockfile’s io_schema from actual agent output.

Terminal window
dockrion inspect -p '{"query": "test"}' --generate-schema -o schema.yaml

Add or update sections in an existing Dockfile. Three subcommands are available.

Terminal window
dockrion add streaming [dockfile] [options]
Argument/OptionFlagTypeDefaultDescription
dockfile(positional)strDockfile.yamlPath to Dockfile
--events-EstrnullEvents preset (all, chat, debug, minimal) or comma-separated list
--async-runs-AboolfalseEnable async /runs endpoint
--backend-bstrmemoryBackend: memory or redis
--heartbeatint15Heartbeat interval (seconds)
--max-durationint3600Max run duration (seconds)
--force-fboolfalseOverwrite existing streaming config
Terminal window
dockrion add auth [dockfile] [options]
Argument/OptionFlagTypeDefaultDescription
dockfile(positional)strDockfile.yamlPath to Dockfile
--mode-mstrapi_keyAuth mode: api_key, jwt, or none
--env-varstrAPI_KEYEnv var for API key (api_key mode)
--headerstrX-API-KeyHTTP header for API key
--force-fboolfalseOverwrite existing auth config

Using --mode none removes the auth section from the Dockfile.

Terminal window
dockrion add secrets [dockfile] <names> [options]
Argument/OptionFlagTypeDefaultDescription
dockfile(positional)strDockfile.yamlPath to Dockfile
names(positional)strrequiredComma-separated secret names
--optionalboolfalseMark secrets as optional
--force-fboolfalseOverwrite existing secrets config

New secrets are merged into the existing secrets section. If a secret already exists, it is skipped (unless --force).

Terminal window
dockrion add secrets OPENAI_API_KEY,DATABASE_URL
dockrion add secrets LANGFUSE_PUBLIC_KEY --optional

Run environment diagnostics to check that your setup is healthy.

Terminal window
dockrion doctor

No arguments or options.

CheckWhat it tests
Dockerdocker --version runs successfully
DockfileDockfile.yaml exists in the current directory
Schema validationThe Dockfile passes validate_dockspec()
Package importsdockrion_adapters, dockrion_common, dockrion_schema, dockrion_sdk are importable

Doctor always exits with code 0, even if checks fail. It reports pass/fail for each check with guidance on how to fix failures.


View agent logs.

Terminal window
dockrion logs <agent> [options]
Argument/OptionFlagTypeDefaultDescription
agent(positional)strrequiredAgent name
--lines-nint100Number of log lines to show
--follow-fboolfalseFollow log output in real-time
--verbose-vboolfalseDetailed output

Logs are read from .dockrion_runtime/logs/{agent}.log. The --follow flag streams new lines as they appear (press Ctrl+C to stop).


Show version information.

Terminal window
dockrion version

No arguments or options. Displays:

  • SDK version (dockrion_sdk.__version__)
  • CLI version
  • Python version

Status: Not implemented. This command is reserved for future controller integration. Running it will display a “not yet implemented” message.

Source: packages/cli/dockrion_cli/inspect_cmd.py, add_cmd.py, info_cmd.py, logs_cmd.py


Previous: 3.1 Core Commands | Next: 3.3 Exit Codes →