You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/cli/reference.mdx
+138-2Lines changed: 138 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -272,6 +272,82 @@ Reset the cache of a specific project ID
272
272
depot cache reset --project 12345678910
273
273
```
274
274
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
+
275
351
### `depot gocache`
276
352
277
353
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
372
448
373
449
Authenticates with your Depot account, automatically creating and storing a user token on your local machine.
374
450
375
-
**Example**
451
+
**Examples**
376
452
377
453
```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
379
462
```
380
463
381
464
### `depot logout`
@@ -535,3 +618,56 @@ Additional flags that can be used with this command.
535
618
| `tag` | Optional tags to apply to the image |
536
619
| `token` | Depot token |
537
620
{/* <!-- 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.
Copy file name to clipboardExpand all lines: content/overview/index.mdx
+4Lines changed: 4 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -64,3 +64,7 @@ Teams using Depot see dramatic improvements across their entire development work
64
64
-[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."
65
65
66
66
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