Usage
Options
string
Auth reference name. Must match an existing entry in the profiles file. Also accepted as a positional argument (
cloudstic auth login google-main). If omitted, you’re prompted to pick one; in a non-interactive shell the command exits with an error instead.string
Path to the profiles YAML file.
Examples
Output
On success, the command reports the account it authenticated as, followed by the source type (gdrive or onedrive):
Credential Resolution
auth login resolves credentials in this order:
- Credentials stored in the auth entry (e.g.,
google_credentialspath) - Environment variables (
GOOGLE_APPLICATION_CREDENTIALS,ONEDRIVE_CLIENT_ID) - Built-in OAuth credentials (default)
See Also
- cloudstic auth new: Create an auth entry
- cloudstic auth list: List auth entries
- Custom OAuth Clients: Use your own OAuth credentials
- Using Profiles: Complete profiles guide