Skip to main content

Commands

crewship commands prints every command, subcommand, and flag the CLI supports — generated from the live command tree, so it can never drift from the binary it ships in. This is the agent-facing capability manifest: read it once to learn the whole surface instead of scraping --help page by page.
Pass a canonical command path (separate words or one quoted argument) to return only that subtree, retaining the global flags. Aliases are not accepted in the path. Unknown paths print command not found: <path> and exit 3. The lookup never contacts a server, so it works without login.
Each command includes runnable, optional example, and inherited_flags. Global flags appear once in global_flags; inherited_flags contains only options inherited from intermediate command groups. Local flags include required: true when Cobra marks them individually required. The schema also has a deprecated field, but marking a flag deprecated hides it, and hidden flags are left out, so current builds never emit it. Conditional flag groups are still described by command help; required is not a complete input schema. Defaults come from the flag definitions, never the current flag values or stored credentials. For API operations and request/response schemas, see API.

Manifest shape

Empty fields are omitted rather than printed empty: a flag whose default is the empty string has no default key, and shorthand, example, aliases, inherited_flags, flags, commands and required appear only when set. version, global_flags, commands at the top level and runnable, path and use on each command are always present. Hidden commands, hidden flags (including deprecated aliases) and cobra’s built-in help command are excluded. completion is included. A hidden command whose feature is paused stays in the manifest so agents can still find its documented pause; hooks is the current example.

Output formats

See also