---
title: List
description: List contents of a teamspace drive directory.
canonical: 'https://lightning.ai/docs/cli/stable/command-details/ls'
---
# List {#list}

List contents of a teamspace drive directory.

PATH: Drive path in the format lit://<owner>/<teamspace>/<directory-path>, or lit:///<directory-path> for the current teamspace. The teamspace root lists the drive’s top-level folders (studios, uploads, …).

**Usage:**

```console
lightning ls [OPTIONS] PATH
```

## Arguments {#ls-arguments}

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

## Options {#ls-options}

| Option | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `-r`, `--recursive` | — | no | `Sentinel.UNSET` | List files in all subdirectories recursively |
| `--json` | — | no | — | Output the listing entries as JSON. |

## Examples {#ls-examples}

```console
  lightning ls lit://<owner>/<my-teamspace>/
  lightning ls lit://<owner>/<my-teamspace>/artifacts/reports
  lightning ls lit:///artifacts/reports
  lightning ls -r lit://<owner>/<my-teamspace>/artifacts/reports
  lightning ls --json lit://<owner>/<my-teamspace>/artifacts/reports
```

---

**Navigation**

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