Postman CLI overview
The Postman CLI (postman) is Postman’s official, signed command-line tool for running and managing collections, specifications, mocks, and other Postman elements from your terminal, coding agents, or CI/CD pipeline. To see how a coding agent uses the CLI to gather context, simulate dependencies, and verify a change, see Context, simulate, and verify with your coding agent.
Install
npm
curl (macOS, Linux, WSL)
PowerShell (Windows)
For update, uninstall, and troubleshooting instructions, see Install the Postman CLI.
If you use the Postman desktop app, you can also install the Postman CLI from the app. Click Help > Postman CLI and Plugins > Install Postman CLI. To learn more, see Install with the Postman desktop app.
Get started
- Run your first collection in the quickstart. You set up a project, create a collection with a test, run it, and push it to a workspace.
- Authenticate and configure the Postman CLI with an API key, a signed-in session, or a temporary session.
- Browse commands and global options for a complete reference to every command.
Availability of some Postman CLI commands depends on your Postman plan.
Use the built-in terminal in the Postman desktop app to run Postman CLI commands when using Native Git. The built-in terminal includes its own copy of the Postman CLI, so you can run commands there before you install the Postman CLI. After you install the Postman CLI, the built-in terminal uses your installed copy.
For agents and CI
The Postman CLI supports non-interactive use, machine-readable --json output on many commands, and event reporting you can turn off with --no-report-events. To learn more, see Use the Postman CLI with AI agents and CI/CD. For agent-specific context and code generation, see postman describe.