← CLI reference

rad-experiment-schema(1) General Commands Manual rad-experiment-schema(1)

rad-experiment-schema - Dump the full CLI command tree as JSON for agent self-discovery

rad-experiment schema [-r|--repo] [-q|--quiet] [--pretty] [-h|--help]

Emits a JSON description of every subcommand, flag, and positional argument in the CLI — names, short/long switches, help text, defaults, whether each arg is required, whether it takes a value, and the command tree structure.

Agents can parse this output to discover what commands exist and how to invoke them, without scraping `--help` text. Pair with `--pretty` for readable browsing.

Repository path or Radicle RID (defaults to current directory)
Suppress non-error output to stderr
Pretty-print JSON output (for human inspection; agents should omit)
Print help (see a summary with '-h')

EXAMPLES:

List every subcommand name:

rad-experiment schema | jq -r '.subcommands | keys[]'

Show every flag of `publish`:

rad-experiment schema | jq '.subcommands.publish.args'

schema