Command-line interface for the TrustArc platform APIs
pip install trustarc-cli Copy PIP instructions
ta is the command-line interface for the TrustArc platform APIs. Commands are built from each product's live API spec, so new endpoints show up without upgrading the CLI.
Use it directly from your terminal, in scripts, or as a tool for AI agents such as Claude Code, Codex and Cursor.
With uv (installs Python 3.14 for you if needed):
uv tool install trustarc-cli Or with pipx (requires Python 3.14+):
pipx install trustarc-cli Update ta self-update ta checks for a new release once a day and prints a notice to stderr when one is available. Set TA_NO_UPDATE_CHECK=1 to turn the check off (e.g. in CI).
ta config setup --env prod-us # your region: prod-us, prod-eu or prod-in ta auth login # OAuth login via browser (PKCE) ta services # list configured services for this env ta dmrm business-process list # example call Use with AI agents ta is built to be driven by an AI agent as well as by a person:
ta is new, so agents don't know it yet. Add this line once to the instructions file your agent reads on every session (CLAUDE.md for Claude Code, AGENTS.md for Codex, Cursor and most other agents):
Use the `ta` CLI for anything in TrustArc (run `ta --help` to find commands). Then ask the way you normally would:
How many business processes do we have in TrustArc?
Show me the data subject requests that are overdue.
For a create, update or delete, the agent sees in --help that the command changes data and should confirm with you before running it.
ta ├── auth │ ├── login # OAuth login (browser + PKCE) │ ├── logout # revoke + clear local tokens │ └── status # current token expiry / user ├── config │ ├── show # current env + login state │ ├── setup # pick region │ └── reset # delete ~/.ta/config.json ├── services # list all services for the current env ├── files │ └── upload # upload a file, print its file_url ├── self-update # upgrade to the latest release └── # e.g. dmrm, tc, am, cpm, ccm, irm, pc, cst, evidence, org ├── refresh # re-fetch this service's OpenAPI spec └── # e.g. business-process, trust-center └── [args] # e.g. list, get-by-internal-id, upsert Inspecting operations ta --help # list resources ta --help # list actions ta --help # show args/options ta --schema # request/response schema (no API call) Passing arguments Path params → positional: ta dmrm business-process get-by-internal-id Query params → --flag: ta tc subscription list --since 2026-01-01 Body → --body ' ': ta dmrm business-process upsert --body '{"internalId":"...","name":"..."}' Files → upload first, then put the file_url in the body field that takes it (see --schema): URL=$(ta files upload -q ./policy.pdf) Regions and auth Tokens are stored per env at ~/.ta/auth/ .json. Spec caches at ~/.ta/openapi/ / .json (10-minute TTL; auto-refreshed when stale).
ta config setup --env prod-eu # change default region ta auth login --env prod-eu # log into a specific region without changing default Project links Homepage Key dates PyPI data Data sourced directly from PyPI's database. Released: Sep 30, 2026 Latest release 1 maintainer PyPI data Data sourced directly from PyPI's database. junan-trustarc Credits Author: TrustArc
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.




