auth
Log in, inspect or remove the session for a profile
wallapop auth
Log in, inspect or remove the session for a profile
wallapop auth login
Import a browser session for the active profile
wallapop auth login [flags]Import a browser session for the active profile.
Wallapop keeps the durable login in an HttpOnly cookie, so the CLI needs a cookie export from a browser where you are logged in:
- Install a cookie export extension (Cookie-Editor works) and open es.wallapop.com.
- Export cookies as Netscape/text and save the file, or copy the value of the cookie named __Secure-next-auth.session-token.
- Run this command and paste the file path or the value when asked, or pass --cookies FILE / --cookies-stdin.
The CLI mints short-lived access tokens from that cookie exactly as the web does. Nothing else from the export is kept. Google, Apple and Facebook accounts work the same way, since the cookie is what the browser holds after any login method.
wallapop auth login
wallapop auth login --cookies ~/Downloads/es.wallapop.com_cookies.txt --profile work
cat cookies.txt | wallapop auth login --cookies-stdin| Flag | Type | Default | Description |
|---|---|---|---|
--cookies | string | - | path to a Netscape cookie export |
--cookies-stdin | bool | false | read the cookie export from stdin |
wallapop auth logout
Forget the active profile's session (keeps watches and config)
wallapop auth logout [flags]| Flag | Type | Default | Description |
|---|---|---|---|
--yes | bool | false | accepted for symmetry; logout never prompts |
wallapop auth refresh
Mint once to extend the session and show its new expiry
wallapop auth refreshMint once to extend the session and show its new expiry.
Wallapop re-issues the session cookie with a fresh 30-day expiry on every mint,
so any authenticated command keeps the session alive. watch check does this
on its own; this command is for people who schedule with cron instead of
watch service, or who want to see how long the session has left.
wallapop auth status
Show the active profile's session
wallapop auth status [flags]| Flag | Type | Default | Description |
|---|---|---|---|
--check | bool | false | mint a token to verify the session still works |