Already Built It? Ship It in one line.
Run npx lemonade-host deploy in your project folder. It zips your built files, uploads them and prints the live address. Same command on your laptop and in CI.
- Nothing to install
- Same command in CI
- 99¢ a month
How it works
Log in once. Then it's one command.
Log in once
It shows a short code and a page to open. Approve it for one site in your browser, and the terminal picks it up by itself. No token to copy.
# once per machine
npx lemonade-host loginBuild as usual
It publishes static files and never runs a build. Build locally or in CI, and it finds the output folder for you.
Deploy
It zips the folder, uploads it and prints the live address before it exits.
npx lemonade-host deploy Uploading 42 files ✓ Live at petloop.lemonhosted.com
Reference
Four commands, five flags
Installed globally the command is lemonade. Through npx it's npx lemonade-host, with the same commands after it.
| Command | What it does |
|---|---|
lemonade deploy [dir]npx lemonade-host deploy | Publishes a folder. Defaults to the current folder, and uses dist/, build/, out/ or public/ when one is there. |
lemonade status | Shows your last few deploys. |
lemonade login | Connects this machine to one site with a code you approve in the browser. --token lets you paste one instead. |
lemonade whoami | Shows which site the token points at. Add --json to see its permissions. |
--dirThe folder to publish, same as the[dir]argument.--tokenUse this token instead of the saved login.--yesSkip the confirmation. Use it in CI.--jsonOutput as JSON, for scripts.--include-hiddenAlso upload dotfiles,node_modulesand.git.
npm i -g lemonade-host lemonade deploy
In CI
The same command, running unattended
- Make a token in the dashboard under Developers > Tokens.
- Save it in your CI provider as the secret
LEMONADE_TOKEN. - Add the step.
--yesskips the confirmation, and a non-zero exit fails the job.
- run: npx lemonade-host deploy ./dist --yes env: LEMONADE_TOKEN: ${{ secrets.LEMONADE_TOKEN }}
Token scope
A token for one site, never your wallet
Tokens start with lm_ and each one reaches a single site. Your saved login lives in ~/.lemonade, readable only by you, and stops working after 90 days unused. Revoke any token under Developers > Tokens.
Every token can
- Read what is live on its one site
- Publish a new version of that site
- Tell you which site it points at
Only if you tick it
- Roll back to an earlier version
- Move the site to the trash
No token can
- Spend money
- Change an address
- See another site
Limits
Room for a real site
Dotfiles, node_modules and .git are skipped unless you pass --include-hidden.
On every site
Everything a deploy lands on
One account, every route
Every route lands in one account
Deploy hand-built sites from the command line, let an assistant publish the next one, or start from a template in the editor. Same account, same dashboard, and the Lemonade Apps when a site needs more.
Do I need to install anything?
No. npx lemonade-host deploy fetches the tool for that one run. If you deploy often, install it once with npm i -g lemonade-host and the command becomes lemonade deploy.
How do I log in without copying a token?
Run npx lemonade-host login. It shows a short code and a page to open. Sign in, check the code matches, pick your site and press Approve, then confirm with the 6-digit code we email you. The terminal picks it up by itself. Your first deploy at a terminal does the same if you are not logged in yet.
Can I run it in CI?
Yes. Make a token under Developers > Tokens, save it as the LEMONADE_TOKEN secret, and run npx lemonade-host deploy ./dist --yes. It exits 0 on success and non-zero otherwise, so a failed deploy fails the job.
Does it build my site?
No. It publishes static files and never runs a build. Build locally or in CI, then point it at the output folder. With no folder given it uses dist/, build/, out/ or public/ when one is there, otherwise the current folder.
What can the token do?
Read what is live and publish, for one site. Rolling back and moving the site to the trash stay off unless you tick them. A token cannot spend money, change an address or see another site, and you can revoke it any time under Developers > Tokens.
How big can a deploy be?
Up to 256 MB per upload, 25 MB per file, 20,000 files and 1 GB once extracted. Dotfiles, node_modules and .git are skipped unless you add --include-hidden.
Run one command and you're live
SSL, daily backups and version history on every site, for 99¢ a month. Cancel any time.