dstack login¶
This command authorizes the CLI using Single Sign-On and automatically configures your projects.
It provides an alternative to dstack project add.
Usage¶
$ dstack login --help
Usage: dstack login [-h] --url URL [-p PROVIDER] [-y] [-n]
Options:
-h, --help Show this help message and exit
--url URL The server URL, e.g. https://sky.dstack.ai
-p, --provider PROVIDER
The SSO provider name. Selected automatically if the
server supports only one provider.
-y, --yes Don't ask for confirmation (e.g. set first project as
default)
-n, --no Don't ask for confirmation (e.g. do not change default
project)