Browser login
To sign in through your browser:s2 login --no-open to print the URL. The browser must still be able to reach the loopback callback on the machine running the CLI.
The CLI does not silently fall back to plaintext if the keyring is unavailable. To explicitly store the browser-login credentials in a private plaintext file, run s2 login --insecure-storage.
Check your authentication
Log out
S2 access tokens
Generate an access token from the dashboard, then store it with:Environment override
SetS2_ACCESS_TOKEN to use a token without storing it:
Standard input
To persist a token supplied by a secret manager or script, pass it through standard input explicitly:Private file storage
The CLI does not silently fall back to plaintext when an OS credential store is unavailable. To explicitly use a private local file, add--insecure-storage:
Migrate an existing token
Access tokens previously saved asaccess_token in config.toml remain readable but are deprecated. Move one into the OS credential store with:
Remove a stored token
s2 revoke-access-token when the token must stop working everywhere.

