cli → zoo → auth

zoo auth login

Authenticate with an Zoo host.

Options

--with-token
Read token from standard input
Default value: false
-H/--host
The host of the Zoo instance to authenticate with. By default this is api.zoo.dev. This assumes the instance is an https:// url, if not otherwise specified as http://
-w/--web
Open a browser to authenticate
Default value: false
-d/--debug
Print debug info
Default value: false
-h/--help
Print help (see a summary with '-h')

About

Alternatively, pass in a token on standard input by using --with-token.

# start interactive setup
$ zoo auth login

# authenticate against a specific Zoo instance by reading the token from a file
$ zoo auth login --with-token --host zoo.internal < mytoken.txt

# authenticate with a specific Zoo instance
$ zoo auth login --host zoo.internal

# authenticate with an insecure Zoo instance (not recommended)
$ zoo auth login --host http://zoo.internal

See also