troq command surface effectively before deep-diving into command-specific internals.
Core Invocation Pattern
Every operation follows the same shape:<COMMAND> defines the domain operation to execute.
Current Primary Top-Level Commands
authappsaddonslogssecretsroutesauditrbacchecksworkspacedoctorconfigwhoamishiphelp
troq -Vtroq --version
Global Context Flags (Most Important)
--profile
Selects which local CLI profile is used for credentials and API config.
--workspace
Sets workspace scope for the current call.Use this to avoid accidental cross-workspace operations.
--app
Sets default app target for commands that support app context.
troq.toml) so that root usage stays minimal.
Other High-Value Global Flags
--output <table|json|jsonl>: choose human or machine output contract.--timeout-secs <n>: request timeout control.--retries <n>: transient retry budget.--request-id <id>and--correlation-id <id>: traceability and incident correlation.--yes: non-interactive confirmation for sensitive write paths.
Output Strategy
table: default for human operation sessions.json: deterministic payload for scripts and debugging.jsonl: streaming automation and log pipelines.
Common Operator Mistakes
1) Passing only a global flag without a command
This is invalid:2) Expecting global option previews
This is invalid:3) Confusing identity failures with command syntax
If syntax is correct butwhoami fails, it is usually session/token state and requires: