Skip to content
[ 03 ]Commands

copia-cli auth token

copia-cli auth token [flags]

Print the authentication token for an account on a Copia host, followed by a newline. Without --host the host is COPIA_HOST, then the default host. Without --user it prints the token the other commands use: --token, then COPIA_TOKEN when COPIA_HOST or --host names the host, then the stored token of the host's active account. With --user it prints the stored token of that account only, from the config file or the OS keyring.

Options

-u, --user <string>
The account to output the token for

Options inherited from parent commands

--host <string>
Target Copia host
-R, --repo <string>
Select repository (owner/repo)
--token <string>
Authentication token

Examples

$ copia-cli auth token
$ copia-cli auth token --host app.copia.io --user john

See also