For developers
Approve in your browser - sign in the CLI or an AI assistant without pasting a token
Publishing from a terminal or an AI assistant used to mean making a token and pasting it somewhere. Now you approve the device once, in your browser. Nothing is copied by hand.
How it works
- Start it. Run
npx lemonade-host login. At a terminal, your firstlemonade deploydoes the same when you are not signed in. An AI assistant runslemonade loginfirst and shows you what it printed. - Read the code. The terminal prints a short code such as
BDKM-QTRSand the page to open,/portal/clion your Lemonade Host dashboard. - Approve. On that page, sign in, then type the code yourself. Check Is this you?: the device name, where it asked from beside where you are, and what it will be able to do. Pick the one site it may publish to. We email you a six-digit code to confirm it is you, and the approval completes when you type it.
- It picks up by itself. The terminal waits for your approval and receives its access once. You do not copy anything.
Type the code, do not follow a link
The approve page never fills the code in from a link. Only type a code your own terminal or assistant just showed you. If someone sent you a code or a link to approve, do not: that is how an attacker gets access to your site.
The device names itself, and anyone can type any name. Trust the place it asked from and whether you started it.
If we cannot compare where the request came from with where you are, the page warns you.
What it can do
What you approve can publish to that one site and read what is live. It cannot roll back, delete, see billing or the account, or reach any other site. It is saved on your computer where only you can read it.
How long it lasts
- The code expires after 10 minutes and works once.
- The access stops working after 90 days unused.
- You can remove it any time on the Tokens tab of Developers, where it appears as a token.
CI and scripts
Never wait for a browser in CI. Make a token in Developers, then set LEMONADE_TOKEN. See Publishing from the command line and Deploy tokens.
For tool authors
The flow is the device authorization flow: POST /api/cli/device returns a device code you keep and a short user code to show, then you poll POST /api/cli/token at the interval given. Polling faster than that answers slow_down and raises the interval. The user code is never accepted from a URL, only typed by the person.
If it does not work
- That code doesn't match a waiting device: it expired or was mistyped. Run
lemonade loginagain. - You don't own a site yet: make one first, then approve.
- Nothing was approved: you did not enter the emailed code.