Before logging in, gtasks needs Google OAuth2 credentials. Set them via environment variables or a config file:
# Option A — environment variables
export GTASKS_CLIENT_ID="your-client-id.apps.googleusercontent.com"
export GTASKS_CLIENT_SECRET="your-client-secret"
# Option B — ~/.config/gtasks/config.toml (or ~/.gtasks/config.toml for legacy installs)
[credentials]
client_id = "your-client-id.apps.googleusercontent.com"
client_secret = "your-client-secret"
See the Configuration page for details on obtaining credentials.
gtasks login
gtasks logout
Removes the stored token from the keyring (and token file if present).