The Prompting Company CLI gives you terminal access to your workspace, organizations, and simulation workflows. The binary name is:Documentation Index
Fetch the complete documentation index at: https://docs.promptingcompany.com/llms.txt
Use this file to discover all available pages before exploring further.
Prerequisites
- macOS, Linux, or Windows
amd64orarm64
Install
macOS and Linux
Install the latest stable release:Windows
Install with winget:-
Download the latest
tpc_<version>_windows_amd64.ziportpc_<version>_windows_arm64.zipfromhttps://cli.promptingco.com/tpc/<version>/. -
Extract
tpc.exe. -
Move
tpc.exeto a directory onPATH, or add the new directory toPATHthrough System Properties -> Environment Variables -> Path. -
Open a new PowerShell or cmd session, then verify the install:
Update
Check whether a newer CLI build is available:Install a specific version
Install a pinned version:Login
Authenticate with browser-based device flow:tpcrequests a device code.- Your browser opens.
- You sign in to The Prompting Company.
- You approve the CLI.
- The CLI stores your session locally.
Non-interactive authentication
For CI, scripts, and other headless environments where browser login is not available, the CLI reads credentials from environment variables. Two schemes are supported and they map to different request headers:| Variable | Header sent | Use for |
|---|---|---|
TPC_API_TOKEN | Authorization: Bearer <token> | OAuth bearer tokens — for example, the session token issued by tpc auth login. |
TPC_API_KEY | x-api-key: <key> | API keys created via the dashboard. See API authentication for how to create one. |
TPC_API_TOKEN and TPC_API_KEY are set, the CLI uses TPC_API_TOKEN and prints a warning to stderr.
When neither variable is set, the CLI falls back to the session created by tpc auth login.
Organizations
List organizations available to your account:Common commands
Site pages
Manage pages for the active product from the terminal. Every command is scoped to the active organization and product stored in local CLI config, and every JSON response includes the resolved scope.Run
tpc org switch <org-slug> and tpc product switch <product-slug> before any tpc site page command, or the CLI will refuse with guidance.--format json for scripting:
Simulation environment commands
Create a simulation environment:Installer URL
The public installer is served from:Troubleshooting
tpc command not found
- Open a new shell after installation.
- Check whether the installer added the binary directory to your
PATH. - Run the installer again and watch for shell profile update instructions.
- On Windows,
PATHchanges only apply to new PowerShell or cmd sessions.
Login completes in the browser but CLI does not update
- Retry
tpc auth login - complete the device flow in the same machine where the CLI is running
- check whether your browser blocked the callback or redirected into a stale session
Update does not find a release
- run
tpc update --check - confirm you are on the expected channel or pinned version
- if you installed a prerelease, make sure that prerelease metadata exists