Global options
Every command accepts these flags. They can appear anywhere on the command line (before or after the subcommand).
| Flag | Description | Default |
|---|---|---|
-p, --profile <name> |
Use a specific profile | Active profile |
--api-url <url> |
Override API URL | With -p, that profile's URL, then TRUTO_API_URL; without it, TRUTO_API_URL, then the active profile's URL; then https://api.truto.one |
--token <token> |
Override API token | With -p, that profile's token, then TRUTO_API_TOKEN; without it, TRUTO_API_TOKEN, then the active profile's token |
-o, --output <format> |
json, table, yaml, csv, ndjson |
table |
-v, --verbose |
Print request/response details to stderr. Includes request bodies, which can hold credentials; don't share the output. | Off |
--no-color |
Disable colored output | Off |
--no-help-on-error |
Suppress automatic --help on errors (for piping) |
Off |
-V, --version |
Print the CLI version and exit |
Format shortcuts: --json, --yaml, --csv, --ndjson and --table are shorthand for -o json, -o yaml, and so on. export takes its format only from -o / --output; with a shortcut it falls back to JSON.
Flag aliases: Snake_case and camelCase variants work on most flags (for example --tenant-id, --tenant_id, and --tenantId are equivalent). Dotted API field names become kebab-case flags (integration.name → --integration-name).
IDs in paths: IDs and resource names are sent URL-encoded, as one path segment. An empty one, or one that reads as . or .., is refused before anything is sent, and so is a truto custom path that would leave /custom.
When -o is json, yaml, csv, or ndjson, decorative status messages are suppressed on stdout so only structured data is emitted. Errors always go to stderr.
Environment variables
| Variable | What it does |
|---|---|
TRUTO_API_TOKEN |
The API token. See Resolution order for how it ranks against --token, -p and the active profile. |
TRUTO_API_URL |
The API URL, resolved the same way. |
TRUTO_MAX_RETRIES |
Retry budget for transient errors (default 3; 0 turns retrying off). See Transient errors and retries. |
TRUTO_NO_HELP_ON_ERROR |
1 acts like --no-help-on-error. |
ANTHROPIC_API_KEY, FIREWORKS_API_KEY, FIRECRAWL_API_KEY |
LLM and docs-crawling keys for integrations build and unified-mappings build. See AI-powered build. |
TRUTO_NO_SKILL_SYNC |
1 turns off the daily background refresh of Truto's agent skills. See Agent skills. |
CI |
true or 1 turns off the build, mapping and key prompts, the daily update check and the agent skills refresh. In a terminal, delete still asks unless you pass -f, and truto login still prompts unless you pass --token. |
VISUAL, EDITOR |
The editor integrations build opens its working file in. --editor <cmd> overrides them. |
Transient errors and retries
Every API call the CLI makes retries on its own when the failure is one that a moment later usually fixes:
-
429 Too Many Requests on any method. The API rejected the request before running it (this is what an overloaded database returns), so replaying it is always safe.
-
502 / 503 / 504 and network errors (connection reset, DNS, TLS) on
GET,HEAD,OPTIONS,PUTandDELETEonly. APOSTorPATCHthat reached the server before the connection dropped may already have been applied, so those surface the error instead. -
A
500is never retried. -
The budget is 3 retries, with backoff of 0.5s, 1s and 2s (with jitter), capped at 10s per wait.
-
A
Retry-Afterheader from the server replaces the delay, with the same 10s cap.
On a terminal, or with --verbose, each retry prints a dim line to stderr:
⟳ 429 Too Many Requests on GET /integration/865df83b-… — retrying in 1.0s (1/3)When stderr is a pipe the retries are silent, so a scripted run still sees exactly one error envelope.
Set TRUTO_MAX_RETRIES to change the budget. Set TRUTO_MAX_RETRIES=0 to turn retrying off.
Output formats
| Format | Best for | Notes |
|---|---|---|
table |
Interactive inspection | Default. Truncates long values; up to 8 columns. |
json |
Piping to jq, saving files |
Pretty-printed, 2-space indent. |
ndjson |
Streaming, log processing | One JSON object per line. Ideal for export. |
csv |
Spreadsheets | Columns are the command's own (the same as table), else the first record's keys. |
yaml |
Human-readable nested data |
Some commands override the default:
| Command | Default output |
|---|---|
Admin commands, including get |
table |
export |
json (unless -o is set) |
custom |
json |
unified, proxy (single record) |
json |
batch |
json |
Pagination
List commands return 25 results by default:
truto accounts list --limit 10
# Output shows: Next page: --next-cursor abc123...
truto accounts list --limit 10 --next-cursor abc123truto integrations list is the exception: it returns the whole integration catalog available to your team in one response, so --limit and --next-cursor have no effect on it.
For exhaustive pagination across data-plane resources, use truto export instead.
Shared resource flags
Most admin resource commands support:
| Flag | Operation | Description |
|---|---|---|
--next-cursor <cursor> |
list |
Next page |
--limit <n> |
list |
Results per page (default 25) |
--stdin |
create, update |
Body from stdin (JSON array or NDJSON) |
-i, --interactive |
update |
Pre-fill fields from current record |
-f, --force |
delete |
Skip confirmation |
--select <fields> |
list, get |
Comma-separated fields to return. list: the resource's own columns, filtered by the API, which answers an unknown column with a 400 (some resources also take joined columns as $alias.col). get: any fields, dotted paths allowed. |
--brief |
get |
Return only the summary fields, the same columns list shows |
--like <field=pattern> |
list |
Case-sensitive LIKE filter on a column, % / _ wildcards (repeatable) |
--ilike <field=pattern> |
list |
Case-insensitive ILIKE filter on a column (repeatable, where supported) |
On unified, proxy, custom, and unified test-mapping, pass query params with -q key=value (repeatable), --query-json '{"limit":10}', or --query-file params.json.
Filtering
List commands accept --<field> filters. Check per-command help:
truto integrations list --help
truto accounts list --tenant-id <tid>
truto sync-jobs list --integration_name hubspotScripting examples
# IDs as JSON
truto integrations list -o json | jq '.[].id'
# Count exported records
truto export crm/contacts -a <account-id> -o ndjson | wc -l
# Debug HTTP
truto integrations list -v
# stderr: → GET https://api.truto.one/integration?limit=25
# ← 200 OKStdin and --body
On create and update (admin resources), unified, proxy, custom, and batch:
- Admin
create: input that starts with[is a JSON array (bulk create). Anything else is NDJSON, one object per line. - Admin
update: parsed the same way. Each object is sent as its own update to the given ID, in order.- A record refused after earlier ones were sent stops the run with exit 2, and says how many were sent.
integrations updatetakes one record. More are refused before anything is sent.
- Every record must be one JSON object. So must
-b. Anything else (invalid JSON, a number, a string,null, a list) is refused with exit 1 before anything is sent.- The refusal never quotes your text, which could be a token. It names the record by position, for example
--stdin record 2 is not valid JSON.
- The refusal never quotes your text, which could be a token. It names the record by position, for example
- Data plane and
batch: stdin is always one JSON body. --stdinor-b, not both. For data-plane commands-bwins; for admincreateandupdate,--stdinwins.
See Power features for full stdin examples.