---
title: Teamspace
description: Manage Lightning teamspaces.
canonical: 'https://lightning.ai/docs/cli/stable/command-details/teamspace'
---
# Teamspace {#teamspace}

Manage Lightning teamspaces.

**Usage:**

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

## Commands {#teamspace-commands}

| Command | Description |
| --- | --- |
| [`list`](#teamspace-list) | List the Teamspaces you have access to. |
| [`secret`](#teamspace-secret) | Manage generic Teamspace secrets. |

## lightning teamspace list {#teamspace-list}

List the Teamspaces you have access to.

**Usage:**

```console
lightning teamspace list [OPTIONS]
```

### Options {#teamspace-list-options}

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

## lightning teamspace secret {#teamspace-secret}

Manage generic Teamspace secrets.

**Usage:**

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

### Commands {#teamspace-secret-commands}

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

### lightning teamspace secret delete {#teamspace-secret-delete}

Delete a generic Teamspace secret.

**Usage:**

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

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

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

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

| Option | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `--teamspace` | `TEXT` | no | — | The teamspace to use, as a bare name or an ‘owner/teamspace’ slug. Defaults to the current teamspace. |
| `--org` | `TEXT` | no | — | The organization owning the teamspace (if any). Defaults to the current organization.(DEPRECATED: Pass the owner as part of –teamspace instead, e.g. ‘–teamspace owner/teamspace’. This option will be removed in a future release.) |
| `--user` | `TEXT` | no | — | The user owning the teamspace (if any). Defaults to the current user.(DEPRECATED: Pass the owner as part of –teamspace instead, e.g. ‘–teamspace owner/teamspace’. This option will be removed in a future release.) |
| `--json` | — | no | — | Output as JSON. |

### lightning teamspace secret list {#teamspace-secret-list}

List generic Teamspace secrets.

**Usage:**

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

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

| Option | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `--teamspace` | `TEXT` | no | — | The teamspace to use, as a bare name or an ‘owner/teamspace’ slug. Defaults to the current teamspace. |
| `--org` | `TEXT` | no | — | The organization owning the teamspace (if any). Defaults to the current organization.(DEPRECATED: Pass the owner as part of –teamspace instead, e.g. ‘–teamspace owner/teamspace’. This option will be removed in a future release.) |
| `--user` | `TEXT` | no | — | The user owning the teamspace (if any). Defaults to the current user.(DEPRECATED: Pass the owner as part of –teamspace instead, e.g. ‘–teamspace owner/teamspace’. This option will be removed in a future release.) |
| `--json` | — | no | — | Output as JSON. |

### lightning teamspace secret set {#teamspace-secret-set}

Create or update a generic Teamspace secret.

**Usage:**

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

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

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

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

| Option | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `--teamspace` | `TEXT` | no | — | The teamspace to use, as a bare name or an ‘owner/teamspace’ slug. Defaults to the current teamspace. |
| `--org` | `TEXT` | no | — | The organization owning the teamspace (if any). Defaults to the current organization.(DEPRECATED: Pass the owner as part of –teamspace instead, e.g. ‘–teamspace owner/teamspace’. This option will be removed in a future release.) |
| `--user` | `TEXT` | no | — | The user owning the teamspace (if any). Defaults to the current user.(DEPRECATED: Pass the owner as part of –teamspace instead, e.g. ‘–teamspace owner/teamspace’. This option will be removed in a future release.) |
| `--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)
