For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
Postman
PricingEnterprise
Contact SalesSign InSign Up for Free
HomeDocs
HomeDocs
      • Overview
      • Schemas
        • Overview
        • Install
          • Overview
          • Basic CLI commands
          • Authentication commands
          • Workspace commands
          • Collection commands
          • Request commands
          • Monitoring and performance commands
          • Application commands
          • Flows commands
          • API governance commands
          • Mock server commands
          • Simulator commands
          • Publish API versions commands
        • Built-in reporters
        • Postman CLI GitHub Action
Postman API Platform

Product

  • Postman Overview
  • Enterprise
  • Spec Hub
  • Flows
  • Agent Mode
  • API Catalog
  • Fern
  • Postman CLI
  • Integrations
  • Workspaces
  • Plans and pricing

API Network

  • App Security
  • Artificial Intelligence
  • Communication
  • Data Analytics
  • Database
  • Developer Productivity
  • DevOps
  • Ecommerce
  • eSignature
  • Financial Services
  • Payments
  • Travel

Resources

  • Postman Docs
  • Academy
  • Community
  • Templates
  • Intergalactic
  • Videos
  • MCP Servers

Legal and Security

  • Legal Terms Hub
  • Terms of Service
  • Postman Product Terms
  • Security
  • Website Terms of Use

Company

  • About
  • Careers and culture
  • Contact us
  • Partner program
  • Customer stories
  • Student programs
  • Press and media
Twitter iconLinkedIn iconGithub iconYouTube iconInstagram iconDiscord icon
Download Postman
Privacy Policy

© 2026 Postman, Inc.

On this page
  • postman login
  • postman logout
Postman CollectionsPostman CLICLI commands

Authentication commands

||View as Markdown|
Was this page helpful?
Previous

Basic CLI commands

Next

Workspace commands

Built with

You can use the Postman CLI to sign in and out of Postman with the login and logout commands.

Any local operations work without a login requirement. Commands that interact with the Postman cloud require you to be signed in.

If you’re using the Postman CLI from a network with outbound restrictions, you must allowlist specific domains to connect to Postman.

postman login

The login command prompts you to securely sign in and authenticate from the browser.

If you purchased a Postman EU Data Residency plan, the login command also requires the --region option. Use this option with the argument eu to specify that your instance of Postman is hosted in the EU region.

You can also use the --with-api-key option to authenticate using your Postman API key. This method is recommended when using the Postman CLI from your CI/CD pipeline, but you can also use this method from your local machine.

You remain signed in until you use the logout command or your Postman credentials or API key expire.

Usage

$postman login [options]

Options

--with-api-key <api-key>

Authenticate the user with the given API key.

--region <region>

Specify that your instance of Postman is hosted in the EU region. Accepts eu.

--verbose

Shows detailed error information for the authentication attempt.

Examples

$postman login
$
$postman login --with-api-key ABCD-1234-1234-1234-1234-1234
$
$postman login --with-api-key ABCD-1234-1234-1234-1234-1234 --region eu

postman logout

The logout command signs you out of Postman and deletes the stored API key.

Usage

$postman logout

Examples

$postman logout