Skip to main content
GTM workflow commands. Contract:
  • Success data is always JSON on stdout.
  • Errors are always printed to stderr.
  • Mutating commands require —apply; default is preview/no-op.
Every command follows the CLI contract: JSON on stdout, errors on stderr, and command-specific mutation safety controls. Keys resolve as described in Secrets and API keys.

Examples

Research an objective, then preview a batch CRM load:
Output (preview)
Add --apply to the same command to perform the writes.

Commands

gtm accounts research

Run non-mutating research.

gtm accounts enrich

Run non-mutating enrichment.

gtm accounts find-people

Run non-mutating people discovery.

gtm accounts map-account-hierarchy

Run non-mutating account hierarchy mapping.

gtm accounts batch-add-people

Batch add people with explicit preview/apply behavior.
Preview by default: without --apply this command prints the planned mutation and writes nothing. See the CLI contract.

gtm accounts batch-add-companies

Batch add companies with explicit preview/apply behavior.
Preview by default: without --apply this command prints the planned mutation and writes nothing. See the CLI contract.
Last modified on July 17, 2026