terse CLI expects you to run commands from the root of a generated Terse project, where package.json and src/index.ts live.
Command summary
| Command | What it does |
|---|---|
terse init [project-name] | Scaffold a new TypeScript workflow project |
terse generate | Generate src/terse.generated.ts from connected integrations |
terse integrate | Open the Terse integrations page in the browser |
terse test [workflow-name] | Run a workflow locally against a selected sample event |
terse deploy | Sync all registered workflows to Terse |
Global options
--help,-h: Print usage information for any command.
terse init [project-name]
Scaffolds a new project and prompts you for an API token.
src/index.ts.envpackage.json- TypeScript build scripts
--template <slug> when you want a working GTM starter instead of a blank project.
Common template slugs:
weekly-pipeline-digestnew-deal-enrichmentcrm-slack-alertscontact-scoring
terse generate
Fetches integration details and writes src/terse.generated.ts.
- connecting a new integration
- changing available resources in a connected integration
- updating the generated tool surface you want your workflows to use
terse integrate
Opens the integrations page in the Terse web app.
https://app.useterse.ai/app/integrations
terse test [workflow-name]
Runs a workflow locally against a selected sample event.
--verbose,-v: show model stream output during the run
--event <json>: inline serialized event JSON--event-file <path>: read serialized event JSON from a file
terse deploy
Syncs every registered workflow in the project to Terse.
- new local workflows are created remotely
- existing local workflows are updated remotely
- workflows removed locally are removed remotely on the next deploy
Required environment variable
TERSE_API_KEY: required forterse generate,terse test, andterse deploy
