> ## Documentation Index
> Fetch the complete documentation index at: https://docs.onebucket.io/llms.txt
> Use this file to discover all available pages before exploring further.

# CLI reference

> The onebucket CLI — sign in, manage access keys, and control active sessions.

The `onebucket` CLI handles **authentication and credentials**. Data operations (upload, download, list) go through any S3 client pointed at your endpoint — see the [Quickstart](https://docs.onebucket.io/quickstart.md) — or through an AI assistant over [MCP](https://docs.onebucket.io/mcp/overview.md).

## Commands

### `onebucket login`

Sign in via OAuth in your browser. The CLI stores the resulting login locally and uses it for the commands below.

```bash theme={null}
onebucket login
```

### `onebucket keys`

List your access keys — the key pairs used for S3 (SigV4) access.

```bash theme={null}
onebucket keys
```

### `onebucket sessions`

List or revoke active sessions, including connector (MCP) authorizations.

```bash theme={null}
onebucket sessions
```

### `onebucket logout`

Clear the stored login on this machine.

```bash theme={null}
onebucket logout
```

## Related

* Access can also be revoked at any time from your [OneBucket console](https://app.onebucket.io).
* MCP connectors authenticate with OAuth 2.1 + PKCE — see [How authentication works](https://docs.onebucket.io/connectors/claude.md#how-authentication-works).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.