> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.usepassport.ai/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.usepassport.ai/_mcp/server.

# Authentication commands

Use the [`login`](#passport-login) and [`logout`](#passport-logout) commands to authenticate from the command line, and the [`auth`](#passport-auth) command to inspect the Passport authentication session.

## `passport login`

Authenticate to access your resources. The `login` command opens a browser window to complete authentication. You remain signed in until you run `passport logout` or your credentials expire.

### Usage

```bash showLineNumbers={false}
passport login [options]
```

### Options

**`--with-api-key <api-key>`**

Authenticate using an API key directly. Recommended for CI/CD pipelines and headless environments.

---

**`--region <region>`**

Specify the region for authentication. Use `eu` for the EU region.

---

**`--verbose`**

Show detailed error information.

---

**`--no-setup`**

Skip the automatic Passport credential setup that normally runs after login.

---

### Examples

```bash showLineNumbers={false}
passport login
```

## `passport logout`

Sign out and clear the stored session.

### Usage

```bash showLineNumbers={false}
passport logout
```

### Example

```bash showLineNumbers={false}
passport logout
```

## `passport auth`

Inspect the Passport authentication session.

### Usage

```bash showLineNumbers={false}
passport auth [options] [command]
```

### Commands

**`status`**

Refresh and inspect the current authentication token.

---

### Example

```bash showLineNumbers={false}
passport auth status
```