Truto CLI Toolbelt
Intent
Use this skill as the baseline for Truto CLI work. The CLI is an admin and debugging surface for Truto platform state, not application code. It manages integrations, environment integrations, accounts, docs, sync jobs, workflows, webhooks, logs, unified/proxy/custom APIs, exports, diffs, and mappings.
Fast Start
For short mobile prompts, infer what you can and start read-only:
truto whoami -p "$PROFILE" -o json --no-color
truto context | sed -n '1,220p'
If no profile is provided, try the active profile with truto whoami -o json --no-color. Ask for a profile or token only if the command fails or the environment is ambiguous.
Hard Rules
- Use
-o json for structured admin calls and -o ndjson for streaming exports.
- Use
--no-color for outputs you will parse or quote.
- Use
-v only to debug HTTP behavior. Redact bearer tokens, cookies, API keys, OAuth secrets, authorization headers, and customer PII before reporting.
- Start with read-only inspection. Treat create/update/delete, override helpers, refresh credentials, test deliveries, schedules, sync-job-run creation, file uploads, and provider write methods as mutating.
- Remember that the API token is environment-scoped. Most commands do not need an
environment_id; profile choice determines the environment.
- If command shape is uncertain, run
truto <command> --help, truto <command> <subcommand> --help, or truto context --full before guessing.
Entity Ladder
Resolve Truto objects in this order:
truto accounts get "$ACCOUNT_ID" -p "$PROFILE" -o json --no-color
truto accounts tools "$ACCOUNT_ID" -p "$PROFILE" -o json --no-color
truto capabilities "$ACCOUNT_ID" --target account -p "$PROFILE" -o json --no-color
truto environment-integrations get "$ENV_INTEGRATION_ID" -p "$PROFILE" -o json --no-color
truto environment-integrations show-override "$ENV_INTEGRATION_ID" -p "$PROFILE" -o json --no-color
truto integrations get "$INTEGRATION_ID" -p "$PROFILE" -o json --no-color
If only an integration slug is known:
truto integrations list --name "$INTEGRATION" -p "$PROFILE" -o json --no-color
truto capabilities "$INTEGRATION" --target integration -p "$PROFILE" -o json --no-color
Data-Plane Choice
- Use
unified when the question is about normalized schemas and cross-integration behavior:truto unified "$MODEL" "$RESOURCE" -m list -a "$ACCOUNT_ID" -p "$PROFILE" -o json --no-color
- Use
proxy when the question is about provider-native resources or integration config:truto proxy "$RESOURCE" -m list -a "$ACCOUNT_ID" -p "$PROFILE" -o json --no-color
- Use
custom when the provider endpoint exists but is not mapped:truto custom "$PATH" -m GET -a "$ACCOUNT_ID" -p "$PROFILE" -o json --no-color
- Prefer
--query-json for nested filters and --stdin for large bodies.
Evidence Standard
Do not stop at "it failed." Collect enough evidence to identify the layer:
- CLI scope: profile, API URL, team/environment from
whoami
- Target: account, environment integration, catalog integration, model/mapping/docs when relevant
- Capability:
accounts tools and capabilities
- Logs:
unified_proxy_api, rapid_bridge, webhook, sync_job_cron_trigger, or mcp
- Reproduction: smallest read-safe command, then verbose only if needed
Final Answer Contract
Return: profile used, target IDs, commands run, key evidence, likely layer, confidence, and next safe action. Never include raw secrets or full noisy payloads unless the user explicitly asks.
1---2name: truto-cli-toolbelt3description: Shared Truto CLI operating playbook for profiles, command discovery, JSON output, account data-plane calls, logs, safe writes, and common gotchas. Use whenever an agent will run Truto CLI commands or prepare another Truto debugging skill.4---56# Truto CLI Toolbelt78## Intent910Use this skill as the baseline for Truto CLI work. The CLI is an admin and debugging surface for Truto platform state, not application code. It manages integrations, environment integrations, accounts, docs, sync jobs, workflows, webhooks, logs, unified/proxy/custom APIs, exports, diffs, and mappings.1112## Fast Start1314For short mobile prompts, infer what you can and start read-only:1516```bash17truto whoami -p "$PROFILE" -o json --no-color18truto context | sed -n '1,220p'19```2021If no profile is provided, try the active profile with `truto whoami -o json --no-color`. Ask for a profile or token only if the command fails or the environment is ambiguous.2223## Hard Rules2425- Use `-o json` for structured admin calls and `-o ndjson` for streaming exports.26- Use `--no-color` for outputs you will parse or quote.27- Use `-v` only to debug HTTP behavior. Redact bearer tokens, cookies, API keys, OAuth secrets, authorization headers, and customer PII before reporting.28- Start with read-only inspection. Treat create/update/delete, override helpers, refresh credentials, test deliveries, schedules, sync-job-run creation, file uploads, and provider write methods as mutating.29- Remember that the API token is environment-scoped. Most commands do not need an `environment_id`; profile choice determines the environment.30- If command shape is uncertain, run `truto <command> --help`, `truto <command> <subcommand> --help`, or `truto context --full` before guessing.3132## Entity Ladder3334Resolve Truto objects in this order:3536```bash37truto accounts get "$ACCOUNT_ID" -p "$PROFILE" -o json --no-color38truto accounts tools "$ACCOUNT_ID" -p "$PROFILE" -o json --no-color39truto capabilities "$ACCOUNT_ID" --target account -p "$PROFILE" -o json --no-color40truto environment-integrations get "$ENV_INTEGRATION_ID" -p "$PROFILE" -o json --no-color41truto environment-integrations show-override "$ENV_INTEGRATION_ID" -p "$PROFILE" -o json --no-color42truto integrations get "$INTEGRATION_ID" -p "$PROFILE" -o json --no-color43```4445If only an integration slug is known:4647```bash48truto integrations list --name "$INTEGRATION" -p "$PROFILE" -o json --no-color49truto capabilities "$INTEGRATION" --target integration -p "$PROFILE" -o json --no-color50```5152## Data-Plane Choice5354- Use `unified` when the question is about normalized schemas and cross-integration behavior:55 ```bash56 truto unified "$MODEL" "$RESOURCE" -m list -a "$ACCOUNT_ID" -p "$PROFILE" -o json --no-color57 ```58- Use `proxy` when the question is about provider-native resources or integration config:59 ```bash60 truto proxy "$RESOURCE" -m list -a "$ACCOUNT_ID" -p "$PROFILE" -o json --no-color61 ```62- Use `custom` when the provider endpoint exists but is not mapped:63 ```bash64 truto custom "$PATH" -m GET -a "$ACCOUNT_ID" -p "$PROFILE" -o json --no-color65 ```66- Prefer `--query-json` for nested filters and `--stdin` for large bodies.6768## Evidence Standard6970Do not stop at "it failed." Collect enough evidence to identify the layer:7172- CLI scope: profile, API URL, team/environment from `whoami`73- Target: account, environment integration, catalog integration, model/mapping/docs when relevant74- Capability: `accounts tools` and `capabilities`75- Logs: `unified_proxy_api`, `rapid_bridge`, `webhook`, `sync_job_cron_trigger`, or `mcp`76- Reproduction: smallest read-safe command, then verbose only if needed7778## Final Answer Contract7980Return: profile used, target IDs, commands run, key evidence, likely layer, confidence, and next safe action. Never include raw secrets or full noisy payloads unless the user explicitly asks.