...
1## crane auth token
2
3Retrieves a token for a remote repo
4
5```
6crane auth token REPO [flags]
7```
8
9### Examples
10
11```
12# If you wanted to mount a blob from debian to ubuntu.
13$ curl -H "$(crane auth token -H --push --mount debian ubuntu)" ...
14
15# To get the raw list tags response
16$ curl -H "$(crane auth token -H ubuntu)" https://index.docker.io/v2/library/ubuntu/tags/list
17
18```
19
20### Options
21
22```
23 -H, --header Output in header format
24 -h, --help help for token
25 -m, --mount strings Scopes to mount from
26 --push Request push scopes
27```
28
29### Options inherited from parent commands
30
31```
32 --allow-nondistributable-artifacts Allow pushing non-distributable (foreign) layers
33 --insecure Allow image references to be fetched without TLS
34 --platform platform Specifies the platform in the form os/arch[/variant][:osversion] (e.g. linux/amd64). (default all)
35 -v, --verbose Enable debug logs
36```
37
38### SEE ALSO
39
40* [crane auth](crane_auth.md) - Log in or access credentials
41
View as plain text