Auth Commands
Included commands:
wolt auth statuswolt profile status(alias)
Shared/global flags are documented in cli-overview.
First Step: Configure a Profile
Before using authenticated commands, configure a profile first.
wolt configure --profile-name default --wtoken "<token>" --wrtoken "<refresh-token>" --overwrite
If the profile already exists and you only want to rotate credentials:
wolt configure --profile-name default --wtoken "<token>" --wrtoken "<refresh-token>"
Cookie-based setup is also supported:
wolt configure --profile-name default --cookie "__wtoken=<token>" --cookie "__wrtoken=<refresh-token>"
Profile-Based Auth
Profiles are the default place to keep reusable auth settings.
When --profile is not passed, the CLI uses the default profile.
Stored profile fields used by auth-enabled commands:
wtokenwrefresh_tokencookies[]
Security:
- profile config can include sensitive auth values; keep it local only
- do not commit local profiles or config snapshots to git
Auth Inputs
Authenticated commands accept:
--wtoken <token>: bearer token sent asAuthorization: Bearer <token>--wrtoken <token>: refresh token used for automatic bearer token rotation--cookie <name=value>: repeatable cookie forwarding
If --wtoken is omitted and a --cookie __wtoken=<token> cookie is provided,
the token is also reused as bearer auth.
--wtoken parsing accepts common copy-paste formats:
- raw JWT
Bearer <jwt>- JSON payload containing
accessToken - URL-encoded JSON payload containing
accessToken - query-style payload containing
accessToken
Cookie fallback extraction also supports:
__wtoken=<jwt>- cookie headers containing
__wtoken=<jwt> - cookie headers containing
__wrtoken=<refresh-token>
Automatic Token Rotation
For authenticated commands, if the access token is expired or upstream returns 401, the CLI:
- calls
POST https://authentication.wolt.com/v1/wauth2/access_tokenwithgrant_type=refresh_token - retries the original request once with the rotated access token
- persists
wtokenandwrefresh_tokento the selected profile in local config
Refresh token discovery order:
--wrtoken- refresh token embedded in
--wtokenpayload __wrtokenin--cookievaluesprofile.wrefresh_token- refresh token embedded in
profile.wtokenpayload __wrtokeninprofile.cookies
Most reliable source from Chrome:
Application -> Cookies -> __wrtoken- or
refresh_tokenfromPOST https://authentication.wolt.com/v1/wauth2/access_token
wolt auth status
wolt auth status [global flags]
Behavior:
- with credentials: calls
GET https://restaurant-api.wolt.com/v1/user/me - includes
wolt_plus_subscriberflag when account membership signal is present - without credentials: returns
authenticated=falsewith a warning - with
--verbose: includes token preview/cookie count, upstream HTTP request trace, and detailed upstream error diagnostics
wolt profile status is an alias with the same behavior and output schema.