Skip to content

docs: improve --help output for agent usability#492

Open
marc0olo wants to merge 1 commit intomainfrom
fix/help-output-agent-usability
Open

docs: improve --help output for agent usability#492
marc0olo wants to merge 1 commit intomainfrom
fix/help-output-agent-usability

Conversation

@marc0olo
Copy link
Copy Markdown
Member

@marc0olo marc0olo commented Apr 9, 2026

Addresses all items from #491, plus one additional gap found during a full help audit.

Changes

icp canister settings update — fill in all previously empty option descriptions:

  • --compute-allocation: clarify 0–100 percentage range
  • --log-visibility: clarify valid values are controllers/public only (not allowed-viewers), and point to --add-log-viewer/--set-log-viewer for per-principal access
  • --add-log-viewer, --remove-log-viewer, --set-log-viewer: add descriptions
  • --add-environment-variable: document KEY=VALUE format
  • --remove-environment-variable: document that it takes a key name

icp canister settings show — fix description to accurately state the command shows full canister status (same output as icp canister status), not just configured settings; note that a canister must always be specified; fix "enviroment" typo in argument description

icp canister status — document that omitting [CANISTER] queries all canisters in the environment (dfx required --all as explicit opt-in); fix "enviroment" typo in argument description; add after_long_help examples block

icp network start — document the default port (8000), how to configure a different port via gateway.port in icp.yaml, and how to stop a network in another project directory using --project-root-override

icp new — replace misleading template_values_file reference in --silent (icp-cli does not expose --template-values-file) with accurate description of non-interactive behaviour; improve --define description to mention that variable names are template-specific and that --define is required in --silent mode for variables with no template default

icp canister list — document plain-text output (names, one per line) and JSON schema ({"canisters": [...]})

icp environment list — fix "enviroments" typo; add context pointing to icp project show for expanded configuration

icp cycles transfer — fix //// (plain comment) to /// (doc comment) on --from-subaccount so the description appears in --help

icp cycles mint — document that exactly one of --icp or --cycles is required; previously both appeared fully optional in --help but a runtime error was returned if neither was provided

docs/reference/cli.md — regenerated to reflect all the above changes

@marc0olo marc0olo requested a review from a team as a code owner April 9, 2026 13:29
@marc0olo marc0olo changed the title improve --help output for agent usability docs: improve --help output for agent usability Apr 9, 2026
Addresses all items from #491, plus one additional gap
found during a full help audit:

- canister settings update: fill in empty descriptions for
  --compute-allocation, --log-visibility, --add/remove/set-log-viewer,
  --add/remove-environment-variable; clarify that --log-visibility only
  accepts 'controllers'/'public', not 'allowed-viewers'
- canister settings show: fix description from "status" to "settings";
  fix "enviroment" typo; note no default-to-all behaviour
- canister status: document that omitting [CANISTER] queries all
  canisters in the environment; fix "enviroment" typo; add examples
- network start: document default port 8000, gateway.port config, and
  --project-root-override tip for port conflicts
- new: replace misleading template_values_file reference in --silent
  with accurate non-interactive/CI guidance; improve --define description
  to mention template-specific variable names and relationship to --silent
- canister list: document plain-text and JSON output formats
- environment list: fix "enviroments" typo; add context about icp project show
- cycles transfer: fix //// comment to /// so --from-subaccount gets a description
- cycles mint: document that exactly one of --icp or --cycles is required
- docs/reference/cli.md: regenerated
@marc0olo marc0olo force-pushed the fix/help-output-agent-usability branch from bbb4b04 to e58d2af Compare April 9, 2026 13:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant