Skip to content

Commit

Permalink
add pull-token docs
Browse files Browse the repository at this point in the history
  • Loading branch information
kylegalbraith committed Mar 18, 2024
1 parent 4cf9cf7 commit fde281a
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions content/cli/reference.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ import {DocsTOC} from '~/components/DocsTOC'
{name: 'depot projects create', id: 'depot-projects-create'},
{name: 'depot projects list', id: 'depot-projects-list'},
{name: 'depot pull', id: 'depot-pull'},
{name: 'depot pull-token', id: 'depot-pull-token'},
{name: 'depot push', id: 'depot-push'},
]}
/>
Expand Down Expand Up @@ -395,6 +396,35 @@ Additional flags that can be used with this command.
| `token` | Depot token |
{/* <!-- prettier-ignore-end --> */}

### `depot pull-token`

Generate a short-lived token to pull an image from the ephemeral registry.

**Example**

```shell
depot pull-token --project <project-id>
```

You can also specify a build ID to generate a token for a specific build.

**Example**

```shell
depot pull-token --project <project-id> <build-id>
```

#### Flags for `pull-token`

Additional flags that can be used with this command.

{/* <!-- prettier-ignore-start --> */}
| Name | Description |
| ---- | ----------- |
| `project` | Depot project ID |
| `token` | Depot token |
{/* <!-- prettier-ignore-end --> */}

### `depot push`

Push an image from the ephemeral registry to a remote registry. It uses registry credentials stored in Docker when pushing to registries. If you have not already authenticated with your registry, you should do so with `docker login` before running `depot push`.
Expand Down

0 comments on commit fde281a

Please sign in to comment.