shed
Reference / CLI reference
Reference

CLI reference

Every command and option of the shedcloud CLI, which deploys, shares and manages apps from your terminal. It needs Node 22.13 or later.

View Markdown

Running it

npx shedcloud <command>

Run any command with npx, which fetches the CLI the first time. To type shed instead, install it globally. Both are the same program; this page writes shed for short.

shed help lists every command.

Terminal
$ npx shedcloud deploy my-app
$ npm i -g shedcloud
$ shed deploy my-app

Signing in

shed login

Signs you in and saves the sign-in on this computer. Shed emails you a link; open it, check the page shows the same code as your terminal, and approve. The terminal finishes on its own. You rarely need this command: your first shed deploy signs you in.

Option
--email addressYour email. Asked for if you leave it out, with the address from git config offered as the default.
--no-waitSend the email and return straight away. The next shed command finishes the sign-in once it's approved. Use it from agents, whose commands time out.
--resendSend a new email instead of resuming one already waiting.
--server URLA self-hosted Shed's address. Leave it out for Shed Cloud (https://shedcloud.dev). Remembered after the first time.

If the terminal is stopped while it waits, nothing is lost: the request is saved, and running shed login again with the same address resumes it instead of sending another email.

Terminal
$ shed login --email you@example.com
Sent a sign-in link to you@example.com. Open the email "Sign in to Shed" and click the link.
Approve the terminal only if the page shows this code:  WQKL-U9UN
Waiting… (if this stops, any later shed command finishes the sign-in)
Signed in to https://shedcloud.dev as you@example.com.

shed whoami

Who you're signed in as, to which Shed, and on Shed Cloud your plan and how much of it you've used.

Terminal
$ shed whoami
you@example.com on https://shedcloud.dev
  plan: Cloud Free, 2 of 3 apps · 5 MB per deploy · 10 MB data per app
  more: https://shedcloud.dev/pricing

shed logout

Forgets the saved sign-in on this computer.

Terminal
$ shed logout
Signed out.

Apps

shed init [folder]

Writes a starter app into folder (the current folder if you leave it out): a shared notes list that uses sign-in, roles, data and live updates. It won't overwrite an existing index.html.

Terminal
$ shed init my-app
Wrote my-app/index.html. Deploy it with: npx shedcloud deploy my-app

shed deploy [folder]

Uploads a folder with an index.html as a new version of an app, and prints its address. The first deploy creates the app and makes you its owner. Only owners can deploy to an existing app.

Option
--name appThe app's name. Defaults to the folder's name; saved in shed.json for next time.

Dotfiles, node_modules and version-control folders are skipped. See Deploys and versions.

Terminal
$ shed deploy my-app
Deployed my-app v1 (1 file)
  https://my-app.shed.example.com/
  Access: people you add
  Share it: npx shedcloud share my-app --add teammate@example.com

shed ls

The apps you can open: name, live version, your role and address.

Terminal
$ shed ls
my-app                   v1    owner   https://my-app.shed.example.com/
standup                  v7    editor  https://standup.shed.example.com/

shed info <app>

An app's owner, your role, record count, who has access and every version. Anyone who can open the app can run it.

Terminal
$ shed info my-app
my-app (my-app)  https://my-app.shed.example.com/
  owner: you@example.com   your role: owner   records: 12
  access: people you add, your org can view
  member: sam@example.com (viewer)
  v2* 2026-12-03T05:47:31.957Z by you@example.com, 1 file
  v1  2026-12-02T18:20:04.110Z by you@example.com, 1 file

shed share <app>

Changes who can open an app. Combine any options in one command. Only owners can share.

Option
--add email[:role]Give someone viewer (the default), editor or owner. Repeat it to add several people.
--remove emailTake away someone's direct access. Repeatable.
--inviteEmail the people you --add a link that signs them in and opens the app. Without it, the command prints a message for you to send.
--org rolenone, viewer or editor, for everyone at your company's email domain. On Shed Cloud, that's the domain of the app creator's address.
--signed-in rolenone, viewer or editor, for anyone who signs in with their email and has the link.
--domain example.comLimit --signed-in access to addresses at that domain. --domain "" removes the limit.
--public rolenone, viewer or editor, for anyone with the link, signed in or not.

An option the command doesn't know is an error, and nothing changes. See Sharing and roles.

Terminal
$ shed share my-app --add sam@example.com --invite
$ shed share my-app --add lee@example.com:editor --org viewer
$ shed share my-app --signed-in editor --domain example.com
$ shed share my-app --remove sam@example.com
$ shed share my-app --public none

shed data <app> [collection]

What people entered in an app, one JSON entry per line, grouped by collection. Add --csv with a collection name for a spreadsheet. You see what you could see in the app itself: private entries show only your own unless you own the app.

Terminal
$ shed data tracker people --csv > people.csv

shed data add <app> <collection> <file>

Adds entries as if they were typed into the page, from a JSON list, one JSON object per line, or a CSV file with a header row (- reads standard input). Use the collection and field names the page uses. An entry with an id that already exists is replaced. It follows the app's rules: editors and owners can add, the author rule still protects other people's entries, and collections with the anonymous rule can't be added to.

Terminal
$ shed data add tracker people people.csv
Added 11 to "people" in tracker.

shed data update <app> <collection> <id> '<json>'

Changes some fields of one entry and keeps the rest.

Terminal
$ shed data update tracker people rama '{"stage":"Messaged"}'

shed data rm <app> <collection> <id...>

Removes entries. Only owners can.

shed rollback <app> <version>

Serves an earlier version, such as v2 or 2. Data is unchanged. Only owners can roll back.

Terminal
$ shed rollback my-app v1
my-app now serves v1 (was v2). Data is unchanged.
Undo with: npx shedcloud rollback my-app 2

shed rm <app> --yes

Deletes an app, every version and all of its data, and frees its name. Only the app's creator (or, for a team app, a team admin) can, and there's no undo, so --yes is required. You can also delete from the dashboard: open Manage next to the app, choose Delete… at the bottom and type its name.

Terminal
$ shed rm my-app --yes

Teams

Cloud Team commands. Your teams are switched on by Shed; reach out for one.

CommandDoes
shed team lsYour teams, their addresses and how many of their apps are used.
shed team info <team>Members and apps.
shed team add <team> <email>[:admin] … [--invite]Add people (team admins only). --invite emails each a sign-in link.
shed team remove <team> <email> …Take people off the team.
shed team move <app> <team>Move an app you made into a team; --personal moves it back.
shed team create <team> --name "Acme" --admin lead@acme.comShed admins only: switch a team on.
shed deploy <folder> --team <team>Deploy into a team. The team is remembered in shed.json.
shed share <app> --team none|viewer|editorWhat the team can do on one of its apps (default editor).

Feedback

shed feedback "<message>" [--kind idea|problem|other]

Ask for a feature, report a problem, or say anything else to the people who run your Shed. It's sent as you, so they can reply. The default kind is idea. On the web, the same form is at /feedback, linked from every page's footer.

Terminal
$ shed feedback "Let me deploy from a GitHub repo"
$ shed feedback "Deploy hangs at 90% on a 40 MB folder" --kind problem

Agents and servers

shed mcp

Runs an MCP server over stdio, so agents like Claude Code and Cursor can deploy and share. It uses your saved sign-in. See Use it from your agent.

Terminal
$ claude mcp add shed -- npx shedcloud mcp

shed serve

Runs a Shed server. See Self-host for every setting and how to run it in production.

Option
--portPort to listen on (8080).
--dataData folder (./shed-data).
--base-urlPublic address, such as https://shed.example.com.
--org-domainYour company's email domain.
--allowWho may publish: emails and @domains, comma-separated.
--max-deploy-mbLargest deploy (50).
--devShow sign-in links on screen instead of emailing them. Local use only.
Terminal
$ npx shedcloud serve --dev

Configuration

Where the sign-in is kept

shed login saves your server and a token in ~/.shed/config.json, readable only by you. The token lasts a year, or until you run shed logout.

Variable
SHED_CONFIGKeep the config file somewhere else.
SHED_SERVERUse this server, overriding the config file.
SHED_TOKENUse this token, overriding the config file. Useful in CI.
~/.shed/config.json
{
  "server": "https://shed.example.com",
  "token": "…",
  "email": "you@example.com"
}

↑↓ to move, Enter to open