---
title: User
description: Manage the authenticated user.
canonical: 'https://lightning.ai/docs/cli/stable/command-details/user'
---
# User {#user}

Manage the authenticated user.

**Usage:**

```console
lightning user [OPTIONS] COMMAND [ARGS]...
```

## Commands {#user-commands}

| Command | Description |
| --- | --- |
| [`secret`](#user-secret) | Manage generic secrets for the authenticated user. |

## lightning user secret {#user-secret}

Manage generic secrets for the authenticated user.

**Usage:**

```console
lightning user secret [OPTIONS] COMMAND [ARGS]...
```

### Commands {#user-secret-commands}

| Command | Description |
| --- | --- |
| [`delete`](#user-secret-delete) | Delete a generic user secret. |
| [`list`](#user-secret-list) | List generic user secrets. |
| [`set`](#user-secret-set) | Create or update a generic user secret. |

### lightning user secret delete {#user-secret-delete}

Delete a generic user secret.

**Usage:**

```console
lightning user secret delete [OPTIONS] KEY
```

#### Arguments {#user-secret-delete-arguments}

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `KEY` | `text` | yes | No description provided. |

#### Options {#user-secret-delete-options}

| Option | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `--json` | — | no | — | Output as JSON. |

### lightning user secret list {#user-secret-list}

List generic user secrets.

**Usage:**

```console
lightning user secret list [OPTIONS]
```

#### Options {#user-secret-list-options}

| Option | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `--json` | — | no | — | Output as JSON. |

### lightning user secret set {#user-secret-set}

Create or update a generic user secret.

**Usage:**

```console
lightning user secret set [OPTIONS] KEY
```

#### Arguments {#user-secret-set-arguments}

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `KEY` | `text` | yes | No description provided. |

#### Options {#user-secret-set-options}

| Option | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `--value-stdin` | — | no | — | Read the secret value from stdin. |
| `--json` | — | no | — | Output as JSON. |

---

**Navigation**

- Parent: [Command details](/docs/cli/2026.11.20/command-details.md)
