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.
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.
$ npx shedcloud deploy my-app
$ npm i -g shedcloud
$ shed deploy my-appSigning 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 address | Your email. Asked for if you leave it out, with the address from git config offered as the default. |
--no-wait | Send 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. |
--resend | Send a new email instead of resuming one already waiting. |
--server URL | A 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.
$ 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.
$ 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/pricingshed logout
Forgets the saved sign-in on this computer.
$ 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.
$ shed init my-app
Wrote my-app/index.html. Deploy it with: npx shedcloud deploy my-appshed 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 app | The 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.
$ 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.comshed ls
The apps you can open: name, live version, your role and address.
$ 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.
$ 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 fileshed 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 email | Take away someone's direct access. Repeatable. |
--invite | Email 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 role | none, 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 role | none, viewer or editor, for anyone who signs in with their email and has the link. |
--domain example.com | Limit --signed-in access to addresses at that domain. --domain "" removes the limit. |
--public role | none, 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.
$ 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 noneshed 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.
$ shed data tracker people --csv > people.csvshed 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.
$ 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.
$ 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.
$ shed rollback my-app v1
my-app now serves v1 (was v2). Data is unchanged.
Undo with: npx shedcloud rollback my-app 2shed 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.
$ shed rm my-app --yesTeams
Cloud Team commands. Your teams are switched on by Shed; reach out for one.
| Command | Does |
|---|---|
shed team ls | Your 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.com | Shed 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|editor | What 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.
$ shed feedback "Let me deploy from a GitHub repo"
$ shed feedback "Deploy hangs at 90% on a 40 MB folder" --kind problemAgents 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.
$ claude mcp add shed -- npx shedcloud mcpshed serve
Runs a Shed server. See Self-host for every setting and how to run it in production.
| Option | |
|---|---|
--port | Port to listen on (8080). |
--data | Data folder (./shed-data). |
--base-url | Public address, such as https://shed.example.com. |
--org-domain | Your company's email domain. |
--allow | Who may publish: emails and @domains, comma-separated. |
--max-deploy-mb | Largest deploy (50). |
--dev | Show sign-in links on screen instead of emailing them. Local use only. |
$ npx shedcloud serve --devConfiguration
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_CONFIG | Keep the config file somewhere else. |
SHED_SERVER | Use this server, overriding the config file. |
SHED_TOKEN | Use this token, overriding the config file. Useful in CI. |
{
"server": "https://shed.example.com",
"token": "…",
"email": "you@example.com"
}