| rad-experiment-schema(1) | General Commands Manual | rad-experiment-schema(1) |
NAME
rad-experiment-schema - Dump the full CLI command tree as JSON for agent self-discovery
SYNOPSIS
rad-experiment schema [-r|--repo] [-q|--quiet] [--pretty] [-h|--help]
DESCRIPTION
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.
OPTIONS
- -r, --repo <REPO>
- Repository path or Radicle RID (defaults to current directory)
- -q, --quiet
- Suppress non-error output to stderr
- --pretty
- Pretty-print JSON output (for human inspection; agents should omit)
- -h, --help
- Print help (see a summary with '-h')
EXTRA
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 |