Skip to content

Commit d51cb36

Browse files
Merge pull request #129 from depot/docs-sync-updates
Update content from depot/app
2 parents 7dd98d4 + e85d95b commit d51cb36

File tree

2 files changed

+142
-2
lines changed

2 files changed

+142
-2
lines changed

content/cli/reference.mdx

Lines changed: 138 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -272,6 +272,82 @@ Reset the cache of a specific project ID
272272
depot cache reset --project 12345678910
273273
```
274274

275+
### `depot claude`
276+
277+
Run Claude Code with automatic session saving and resuming via Depot. Sessions are stored by Depot and can be resumed by session ID, allowing you to collaborate on any session in your organization across any environment.
278+
279+
Using the `--resume` flag allows you to resume any session by its ID, which can be useful if you want to continue a session from another environment like in CI or give the session to a teammate to continue working on.
280+
281+
All flags not recognized by `depot` are passed directly through to the Claude CLI. This includes Claude flags like `-p`, `--model`, etc.
282+
283+
**Example**
284+
285+
Start a new Claude session with a custom ID:
286+
287+
```shell
288+
depot claude --session-id feature-auth-redesign
289+
```
290+
291+
Resume an existing session:
292+
293+
```shell
294+
depot claude --resume feature-auth-redesign
295+
```
296+
297+
Mix Depot flags with Claude flags:
298+
299+
```shell
300+
depot claude --session-id older-claude-pr-9953 --model claude-3-opus-20240229 -p "write tests"
301+
```
302+
303+
Use in a script with piped input:
304+
305+
```shell
306+
cat code.py | depot claude -p "review this code" --session-id code-review
307+
```
308+
309+
#### Flags for `claude`
310+
311+
{/* <!-- prettier-ignore-start --> */}
312+
| Name | Description |
313+
| ---- | ----------- |
314+
| `help` | Show help for claude command |
315+
| `org` | Organization ID (required when user is a member of multiple organizations) |
316+
| `output` | Output format (json, csv) |
317+
| `resume` | Resume a session by ID |
318+
| `session-id` | Custom session ID for saving |
319+
| `token` | Depot API token |
320+
{/* <!-- prettier-ignore-end --> */}
321+
322+
### `depot claude list-sessions`
323+
324+
List all saved Claude sessions for the organization. In interactive mode, pressing Enter on a session will start Claude with that session.
325+
326+
**Example**
327+
328+
List sessions interactively:
329+
330+
```shell
331+
depot claude list-sessions
332+
```
333+
334+
List sessions in JSON format:
335+
336+
```shell
337+
depot claude list-sessions --output json
338+
```
339+
340+
#### Flags for `claude list-sessions`
341+
342+
{/* <!-- prettier-ignore-start --> */}
343+
| Name | Description |
344+
| ---- | ----------- |
345+
| `help` | Show help for list-sessions |
346+
| `org` | Organization ID |
347+
| `output` | Output format (json, csv) |
348+
| `token` | Depot API token |
349+
{/* <!-- prettier-ignore-end --> */}
350+
275351
### `depot gocache`
276352

277353
Configure Go tools to use Depot Cache. The Go tools will use the remote cache service to store and retrieve build artifacts.
@@ -372,10 +448,17 @@ depot init
372448

373449
Authenticates with your Depot account, automatically creating and storing a user token on your local machine.
374450

375-
**Example**
451+
**Examples**
376452

377453
```shell
378-
depot login
454+
# Login and select organization interactively
455+
$ depot login
456+
457+
# Login and specify organization ID
458+
$ depot login --org-id 1234567890
459+
460+
# Clear existing token before logging in
461+
$ depot login --clear
379462
```
380463

381464
### `depot logout`
@@ -535,3 +618,56 @@ Additional flags that can be used with this command.
535618
| `tag` | Optional tags to apply to the image |
536619
| `token` | Depot token |
537620
{/* <!-- prettier-ignore-end --> */}
621+
622+
### `depot org`
623+
624+
Manage organizations you have access to in Depot. The `org` command group provides tools to list, switch, and show your current organization context.
625+
626+
#### `depot org list`
627+
628+
List organizations that you can access. By default, this command opens an interactive table. You can also output the list in `json` or `csv` format for scripting.
629+
630+
**Usage**
631+
632+
```shell
633+
depot org list
634+
```
635+
636+
#### `depot org switch`
637+
638+
Set the current organization in your global Depot settings. This affects which organization is used by default for commands that support organization context.
639+
640+
**Usage**
641+
642+
```shell
643+
depot org switch [org-id]
644+
```
645+
646+
If you do not provide an `org-id`, you will be prompted to select one interactively.
647+
648+
**Examples**
649+
650+
```shell
651+
# Switch to a specific organization by ID
652+
$ depot org switch 1234567890
653+
654+
# Select organization interactively
655+
$ depot org switch
656+
```
657+
658+
#### `depot org show`
659+
660+
Show the current organization set in your global Depot settings.
661+
662+
**Usage**
663+
664+
```shell
665+
depot org show
666+
```
667+
668+
**Example**
669+
670+
```shell
671+
$ depot org show
672+
1234567890
673+
```

content/overview/index.mdx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,3 +64,7 @@ Teams using Depot see dramatic improvements across their entire development work
6464
- [Bastion cut build times by 6x while halving GitHub Actions spending](/customers/bastion): Achieved 6x faster Rust Docker builds, 3x faster Go builds, and 2x increase in PR throughput. Their CTO Jameel Al-Aziz noted: "Depot seems to have broken that formula. They said, hey, we'll make it both cheaper and faster."
6565

6666
Whether you're building a single application or managing infrastructure for hundreds of projects, Depot scales with your needs while maintaining the performance that keeps developers in flow state rather than waiting for builds to complete.
67+
68+
## AI Documentation (llms.txt)
69+
70+
We provide [`llms.txt`](/llms.txt) for quick navigation and [`llms-all.txt`](/llms-all.txt) for complete documentation access, both formatted in Markdown to help AI assistants better understand Depot's capabilities.

0 commit comments

Comments
 (0)