Now open - put your site online for 99¢ a month. Get started
Command line npx lemonade-host

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
Command line · npx lemonade-host deployPrints the live address
npx
nothing to install
1 site
per token, nothing else
4
commands to learn
Exit 0
on success, for CI
99¢
a month per site

How it works

Log in once. Then it's one command.

Full guide
01

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.

terminal
# once per machine
npx lemonade-host login
02

Build as usual

It publishes static files and never runs a build. Build locally or in CI, and it finds the output folder for you.

my-site/
src/
package.json
dist/ picked up on its own
index.html
assets/
03

Deploy

It zips the folder, uploads it and prints the live address before it exits.

terminal
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.

CommandWhat it does
lemonade deploy [dir]npx lemonade-host deployPublishes a folder. Defaults to the current folder, and uses dist/, build/, out/ or public/ when one is there.
lemonade statusShows your last few deploys.
lemonade loginConnects this machine to one site with a code you approve in the browser. --token lets you paste one instead.
lemonade whoamiShows 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_modules and .git.
install once, if you like
npm i -g lemonade-host
lemonade deploy

In CI

The same command, running unattended

  1. Make a token in the dashboard under Developers > Tokens.
  2. Save it in your CI provider as the secret LEMONADE_TOKEN.
  3. Add the step. --yes skips the confirmation, and a non-zero exit fails the job.
.github/workflows/deploy.yml (step)
- 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.

256 MBper upload
25 MBper file
20,000files per deploy
1 GBonce extracted

On every site

Everything a deploy lands on

What every site includes

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.

Questions

What people ask about the CLI

The using the CLI guide covers every step in more detail.

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.

Deploy my site