The dropshelf CLI
Install the dropshelf command, publish a folder as a drop, answer feedback, share drops and script it.
The dropshelf CLI is the dashboard in a terminal: the same drops, versions, comments and sharing,
for you and for any agent that can run commands. This guide walks through the everyday tasks. Every
command and flag is listed in the CLI reference.
Prerequisites
- You can sign in to your dropshelf instance.
- macOS, Linux or Windows, with
curlon macOS and Linux.
Install and sign in
The quickest way is to let your agent do it:
-
Select Connect at the top of the dashboard, then Your agent if a menu opens.
-
Select the CLI tab.
-
Copy the line it shows and paste it into Claude Code, Codex or any agent with a terminal:
Set me up on dropshelf: curl https://drop.example.com/start.md and follow it.
The instance serves start.md itself. It tells the agent to download the CLI release that matches
the instance, check it against its checksum, install it and sign you in. You approve the sign-in in
your browser, so no token passes through the chat.
To install by hand on macOS or Linux, run:
curl -fsSL https://drop.example.com/install.sh | shOn Windows, run this in PowerShell. Inside WSL, use the macOS and Linux line.
irm https://drop.example.com/install.ps1 | iexEach line installs the release for your instance, checks it and signs you in. If the CLI is already installed, sign in with:
dropshelf login https://drop.example.comYour browser opens on the instance's consent page. Approve it and return to the terminal. If the browser does not open, the CLI prints the address to visit.
On a machine with no browser, or an instance without browser sign-in, use a personal access token. Create one on the Connections page, then run the command below and paste the token when it asks. The token is not shown as you type.
dropshelf login https://drop.example.com --tokenThe CLI and the server share one version number. When the CLI is a minor version or more away from
its instance, it says so after a command, and dropshelf upgrade installs the matching release.
Push and publish a folder
A folder on your machine is a drop's working copy. The first push creates the drop, links the folder to it and goes live:
dropshelf push --type site --slug team-lunch --note "First version"v1 of team-lunch is live at https://team-lunch.drop.example.com.
It is Public: every member can open it. dropshelf share changes that.The second line says who can open the new drop. The instance decides that unless the push names it
with --visibility.
After that, dropshelf push sends only the files that changed, as a new version. The version is a
draft until you publish it, with a preview address of its own:
dropshelf push --note "Thursday instead of Friday"v2 of team-lunch is a draft; preview at https://v2--team-lunch.drop.example.com. dropshelf publish makes it live.
The preview reads and writes the drop's live data: what you save or delete there, visitors see.To make it live, run dropshelf publish. It publishes the folder's last push, and
dropshelf publish 4 publishes any kept version. dropshelf push --publish pushes and publishes in
one step.
To see where the folder stands, run dropshelf status. It lists what the folder changed since its
base, and what was published since. To work on a drop that already exists, run
dropshelf link <slug> in its folder. The CLI reference lists the other
commands for versions and files.
Work on one drop with someone else
When someone published after your folder's base, publishing stops and says who published what. This way nobody replaces a colleague's work by accident.
To bring their work in:
- Run
dropshelf pull. It takes their changes and lists every file you both changed. - Settle each of those files with
--theirs <path>or--mine <path>, in one moredropshelf pull. - Look at the result, then run
dropshelf push --publish.
To replace what was published instead, run dropshelf publish --force.
What a push leaves out
A push never sends:
.gitandnode_modules.- Dotfiles and dot folders.
.well-knownat the top of the folder is kept. - System files such as
.DS_StoreandThumbs.db. - Anything a
.dropshelfignorefile in the folder matches, in.gitignoresyntax.
To see what would be sent and what is left out, without sending anything, run:
dropshelf push --dry-runAnswer feedback by number
Every top-level comment on a drop has a number for life, such as #4. The dashboard shows the same
number beside the comment and on its pin. Numbers are never reused, so a deleted comment leaves a gap.
After push and status, the CLI says when there is feedback waiting:
2 open change requests on team-lunch: dropshelf comments shows them.After a push that names no change requests, the line also says that --resolve answers them.
To list the open change requests, newest first, with each pin in words, run:
dropshelf comments#6 Mia Hansen, 2h ago, on v5, change request
on /, the heading "Team lunch"
Can we do this on Thursday instead?
#4 Ola Berg, 1d ago, on v4, change request
Add the vegetarian option to the menu.
2 open change requests on team-lunch.dropshelf comments --all adds conversation and resolved comments.
To reply to one and resolve it in the same step, run:
dropshelf comments reply 6 "Moved to Thursday." --resolveTo resolve several at once, run dropshelf comments resolve 4,5. --reopen undoes it.
To leave feedback yourself, write a comment. With --change-request it asks for a fix and stays open
until someone resolves it; without, it is conversation:
dropshelf comments add "The footer overlaps the sign-up form." --change-requestTo pin the comment to an element of the live page, name the element with a CSS selector:
dropshelf comments add "The title is too small." --change-request --on '#title'--page /about names another page. The CLI reads the page as the drop serves it and posts the
comment when the selector finds one element. It runs no JavaScript, so for an element the page's
script draws, add --tag with the element's tag name, such as --tag li: the pin is then posted
unchecked and shows once the page has drawn the element. A pin placed this way sits in the
element's top right corner. To pin a spot inside an element, write the comment in the dashboard.
You can also say what a version fixes when you push it. The change requests are answered and resolved once that version is published, so a draft never closes feedback:
dropshelf push --resolve 4,6 --note "Thursday, and the vegetarian option"v6 of team-lunch is a draft; preview at https://v6--team-lunch.drop.example.com. dropshelf publish makes it live.
The preview reads and writes the drop's live data: what you save or delete there, visitors see.
#4, #6 will be resolved when v6 goes live.To name them when you publish instead, once you have looked at the draft's preview, run:
dropshelf publish --resolve 4,6Each one is answered "Fixed in v6" with the version's note, and resolved.
To give each change request its own answer, write the answer after the number. --resolve may be
repeated, on push and on publish:
dropshelf publish --resolve '4=Moved to Thursday' --resolve '6=Added the vegetarian option'A number alone is answered with the version's note. --resolve '4,6=One fix for both' gives two the
same answer.
Only change requests can be resolved. If a number in the list is not an open change request on the drop, nothing changes and the CLI says which number.
Check a drop from the terminal
To read a page as the drop serves it, without a browser, run:
dropshelf fetch /dropshelf fetch requests a path on the drop's own address, signed in as you. A plain curl to that
address answers 401, because it carries no sign-in. Add --version 3 to read a draft's preview.
The same command calls the routes a page's script calls. To see who the page sees, and to create a document as the page would, run:
dropshelf fetch /_dropshelf/me
dropshelf fetch /_dropshelf/db/votes --data '{"place":"Pho"}'-X sets the method, such as -X PATCH, -X PUT or -X DELETE, and --file photo.png sends a
file, which is how /_dropshelf/assets takes an upload. -i prints the answer's status line and
headers before its body. fetch runs no JavaScript, so it shows what the page is
sent, not what it draws. What it writes is the drop's live data, on a preview too.
Share a drop
dropshelf share shows and changes who can open a drop, like the dashboard's sharing panel:
dropshelf share --visibility restricted mia@example.comteam-lunch is Restricted: only the people below, and admins, can open it.
Kari Nordmann (you) Owner
Mia Hansen Can viewVisibility is private, restricted or public. A person you add gets Can view, or Can
edit on a public drop, unless --can view or --can edit says otherwise. Sharing with someone again
never lowers their role. To stop sharing, run dropshelf share --remove ola@example.com.
Only the owner or an admin changes who has access. Share a drop explains what each visibility and role allows.
Use JSON in scripts
With --json, every command prints one JSON document on stdout. Notes meant for people go to stderr,
so stdout always parses. A failure prints one document too:
{
"error": {
"code": "sign_in",
"exit": 3,
"message": "not signed in: run dropshelf login <instance>, or set DROPSHELF_TOKEN"
}
}The exit code tells a script what went wrong, such as 4 when someone published first. The codes are
listed in Exit codes.
Commands that delete, such as dropshelf rm <slug>, need --yes. dropshelf db import asks first at
a terminal and needs --yes elsewhere.
dropshelf db and dropshelf assets read, export and delete a drop's stored documents and uploaded
files. See db and assets in the reference.
Publish from CI
In CI, set DROPSHELF_URL and DROPSHELF_TOKEN instead of signing in, and nothing is stored on the
runner. The CLI sends the token only to the instance DROPSHELF_URL names. In the build folder, run
dropshelf link <slug>, then dropshelf push --publish. Publish from CI has
complete workflows.
Give your agent the CLI skill
The CLI carries a skill, dropshelf-cli, that teaches an agent these commands. dropshelf login
offers to install it. To install it later for Claude Code, Codex, Cursor and OpenCode, run:
dropshelf skills installThe skill carries one reference beside it, the platform patterns: a short start for a page that knows
its visitor, stores data or takes uploads. An agent opens it when a task needs it. To read it yourself,
run dropshelf skills show platform-patterns. The same text is served by the instance at
/docs/platform-patterns.md.
dropshelf upgrade keeps the installed skill current. An agent that cannot run commands connects over
MCP instead: see Connect an agent.
Next steps
Last updated .
Connect an agent
Connect Claude Code, Codex, Cursor, OpenCode or any other MCP client to dropshelf, with one line in a terminal, an OAuth sign-in or a personal access token.
Publish from CI
Publish a build to a dropshelf drop from GitHub Actions or GitLab CI with the dropshelf CLI and a personal access token.