Admin resources
Admin commands manage Truto platform resources. All follow the same pattern:
truto <resource> <operation> [args] [options]Operations: list, get, create, update, delete (where supported). See Global options for shared flags.
Integrated accounts (accounts)
Live tenant connections to integrations.
truto accounts list
truto accounts list --integration-name hubspot --status active
truto accounts list --stale true # stale: needs_reauth with no change for 7 days
truto accounts get <id>
truto accounts create -b '{"environment_integration_id":"...","tenant_id":"...","context":{},"authentication_method":"oauth2"}'
truto accounts update <id> -b '{"tenant_id":"acme-corp"}' # move the account to another tenant
truto accounts refresh-credentials <id>
truto accounts create-token <id> # 15-minute backend token for one account; it can read the account's stored credentials, so keep it server-side
truto accounts identify <id> # integration, tenant, status in one call
truto accounts tools <id> --methods read,custom # comma-separated: read, write, custom, or method namesaccounts (aliases account, integrated-account, integrated-accounts) wraps the integrated-account API.
Filters: --tenant-id, --integration-name, --environment-integration-id, --status, --stale, --features-super-query, --created-at, --updated-at
--stale true lists only stale accounts, and --stale false the rest. See Stale integrated accounts.
Status values: active, connecting, post_install_error, validation_error, needs_reauth
Bulk delete — delete every account for a tenant, or a specific list of accounts, in a single request:
# Delete every account for a tenant (capped at 1000 per request; repeat until matched_count < 1000)
curl -X POST https://api.truto.one/integrated-account/bulk-delete \
-H "Authorization: Bearer $TRUTO_API_TOKEN" -H 'Content-Type: application/json' \
-d '{"tenant_id":"acme-corp"}'
# Or delete up to 99 accounts by ID per request
curl -X POST https://api.truto.one/integrated-account/bulk-delete \
-H "Authorization: Bearer $TRUTO_API_TOKEN" -H 'Content-Type: application/json' \
-d '{"ids":["79a39d69-e27e-49cb-b9a9-79f5eea7aa26","0c74a4ad-7b8e-4f3a-9c1d-2e4f5a6b7c8d"]}'Tenants
External identities that own integrated accounts. One tenant, many integrated accounts.
truto tenants list
truto tenants list --name acme
truto tenants get <id>
truto tenants create -b '{"id":"acme-corp","name":"Acme Corp","metadata":{"tier":"gold"}}'
truto tenants update <id> -b '{"name":"Acme Corp","metadata":{"tier":"platinum"}}'
truto tenants delete <id>
# Create or upsert up to 1000 tenants in a single request (POST /tenant/bulk)
truto tenants create-bulk -b '[{"id":"acme"},{"id":"globex"}]'
truto tenants create-bulk --mode upsert -b '[{"id":"acme","name":"Acme Corp"}]'
cat tenants.ndjson | truto tenants create-bulk --stdinFilters: --id, --name
Create fields: id (required — any characters up to 255, except control characters, leading or trailing whitespace, or an id that is exactly . or ..), name (optional; defaults to id), metadata (optional JSON object)
Bulk import: --mode insert (default) skips existing ids; --mode upsert updates name/metadata on existing ids. Only id, name, and metadata are allowed per row.
Update fields: name, metadata (PATCH replaces the whole metadata object; merge client-side for partial updates)
truto tenants delete <id> returns 409 Conflict if the tenant still has integrated accounts. List them with truto accounts list --tenant-id <id> (or bulk-delete via the endpoint shown above — capped at 1000 accounts per request), then retry.
See Tenants overview for concepts and Bulk import for the CSV/JSON upload flow.
Environments
truto environments list
truto environments get <id>
truto environments update <id> -b '{"name":"Production"}'Creating and deleting environments requires the dashboard. The CLI supports list, get, and update only.
Environment integrations
truto environment-integrations list --integration_id <id>
truto environment-integrations create -b '{"integration_id":"...","override":{...}}'
truto environment-integrations update <id> -b '{"is_enabled":false}'
truto environment-integrations delete <id>
# Connections widget: show this integration only to tenants whose metadata.plan is "pro"
truto environment-integrations update <id> \
--link-ui-config '{"visible_when":{"all_of":[{"path":"plan","op":"in","values":["pro"]}]}}'--link-ui-config sets how the integration appears in the Connections widget (visible_when, group, connect_label, configure_label). It replaces the stored value whole; send null to clear it.
API tokens
truto api-tokens list --name backend-token
truto api-tokens get <id>Create and delete tokens require the dashboard.
Sync jobs and runs
truto sync-jobs list --integration_name hubspot
truto sync-jobs create -b '{"label":"Sync Contacts","integration_name":"hubspot","resources":[...]}'
truto sync-job-runs list --sync_job_id <id>
truto sync-job-runs create -b '{"sync_job_id":"...","integrated_account_id":"..."}'
truto sync-job-triggers list --integrated_account_id <id>
truto sync-job-triggers create -b '{"sync_job_id":"...","cron_expression":"0 */6 * * *"}'
truto sync-job-triggers schedule <id>
truto sync-job-triggers update <id> --is-active false # pause; --is-active true resumes
truto sync-job-templates list
truto sync-job-templates create -b '{"label":"CRM Sync","resources":[...],"default_runtime_version":2}'Sync job run state (key-value checkpoint data keyed by state_key from the sync job definition):
truto sync-job-run-states list --state-key <state_key>
truto sync-job-run-states get <entry-key> --state-key <state_key>
truto sync-job-run-states create --state-key <state_key> --key cursor --value "..."
truto sync-job-run-states update <entry-key> --state-key <state_key> --value "..."
truto sync-job-run-states delete <entry-key> --state-key <state_key> -fWorkflows
truto workflows list
truto workflows create -b '{"trigger_name":"integrated_account:active","config":{...}}'
truto workflow-runs list --workflow_id <id> --status completedtrigger_name is integrated_account:active or unified_webhook:batch; any other returns 404. See Workflows.
Workflow runs cannot be created via CLI — they are triggered by the workflow.
Webhooks and notifications
truto webhooks create -b '{"target_url":"https://example.com/hook"}'
truto webhooks test --id <id>
truto webhooks test --id <id> --event-type integrated_account:active --integrated-account-id <account-id>
truto notification-destinations create -b '{"type":"slack","config":{...},"label":"Eng Alerts"}'
truto notification-destinations test --id <id>webhooks test sends integrated_account:created unless --event-type names another event. --integrated-account-id builds the payload from a real account in the webhook's environment instead of placeholder data, and --payload <json> is merged over the generated payload.
MCP tokens
Scoped to an integrated account. The account ID is the first positional argument:
truto mcp-tokens list <account-id>
truto mcp-tokens get <account-id> <token-id>
truto mcp-tokens create <account-id> --name "my-mcp-token"
truto mcp-tokens create <account-id> --name agent --tool-exposure discovery
truto mcp-tokens update <account-id> <token-id> --tool-exposure all
truto mcp-tokens delete <account-id> <token-id> -f--tool-exposure is all (the default) or discovery. See Tool exposure.
Unified models and environment overrides
truto unified-models list
truto unified-models create -b '{"name":"crm","category":"crm","description":"CRM model","resources":{...}}'
truto unified-models update <id> -b '{"description":"Updated","version":1}'
truto unified-model-mappings list --integration-name hubspot --resource-name contacts
truto env-unified-models list
truto env-unified-model-mappings listversion is required on unified model updates — fetch with get first.
Datastores, daemons, team
Daemons are workers you run yourself; Truto publishes no daemon client. See Daemons before using these commands.
truto datastores create -b '{"label":"my-bucket","type":"s3","config":{...}}'
truto datastores test <id> # lists objects: S3, Google Cloud Storage and Azure Blob Storage only
truto daemons create -b '{"label":"My Daemon"}'
truto daemon-jobs list
truto daemon-job-runs create -b '{"daemon_job_id":"...","daemon_id":"..."}'
truto daemon-job-triggers schedule <id>
truto team get
truto team update <id> -b '{"name":"New Team Name"}'
truto users listTo test a Postgres, Pinecone, BigQuery or Snowflake datastore, open its menu on Datastores in the dashboard, choose Send test method, then Test connection. Through the API, call POST /datastore/<id>/test/testConnection with {}. Qdrant has no connection test. See Datastores.
Gates, docs, link tokens, logs, files, schema
# Static IP egress proxies (command: gates, API: static-gate)
truto gates create -b '{"name":"us-west-proxy","domain":"api.example.com"}'
# User-authored integration/model documentation
truto docs list --integration_id <id> # at least one filter required
truto docs create -b '{"content":"...","type":"readme","integration_id":"..."}'
truto docs update <id> --body-file doc-update.json # complete update body; - reads stdin
truto link-tokens create --tenant-id <tid>
truto link-tokens create --tenant-id <tid> --integrated-account-id <id>
truto logs --log-type unified_proxy_api --integrated-account-id <id> --limit 50
truto logs --log-type webhook --start 2026-11-01T00:00:00Z --end 2026-11-02T00:00:00Z
truto files upload /path/to/file.csv
truto schema --out openapi.yml # YAML output; --out not -oLog types and filters vary by type — run truto logs --help. --log-type is required. --start and --end (ISO 8601) set the time window; with --start or --all and no --end, the window ends when the command started. --limit is rows per page (up to 100); --next-cursor <cursor> resumes a page and --all follows up to 100 pages with a fixed end time. Repeated cursors and the page cap produce warnings. An API query failure is reported as an error, never an empty success. Logs help investigate observed requests but do not prove which cached config version executed.
Link token refusal. link-tokens create --integrated-account-id <id> is refused with 400 and truto_error_code: app_credentials_not_configured when the account's integration has no usable authentication method left — every method it has is a bring-your-own-app one (an OAuth 2.0 client id or an AWS STS access key) with no app credentials configured in the environment. Reauthorization may switch method, so an integration that still has a working method is not refused. Add the credentials in the integration's Configuration tab (Use your own OAuth settings for OAuth 2.0, Use your own signing credentials for AWS STS), then retry. A --tenant-id-only token is never refused for this reason.
Capabilities
Show what an integration or account can do — proxy methods, unified resources, auth surfaces, and AI readiness scoring:
truto capabilities hubspot
truto capabilities <account-uuid> --type proxy
truto capabilities acme-crm --resource contacts --methods list,get
truto capabilities hubspot --no-has-description # include methods without descriptions
truto capabilities <integration-uuid> --target integration # an integration ID looks like an account IDUUIDs are treated as integrated accounts, anything else as an integration slug. Pass --target integration for an integration ID.