The basemodo CLI
Every command of basemodo, the program that deploys and shares your Apps from a terminal, a script or an agent, with how it signs in and how it prints.
Install and check
basemodo is a single program, installed with one line and nothing installed before it. On macOS and Linux:
curl -fsSL https://basemodo.com/install | shOn Windows, in PowerShell:
irm https://basemodo.com/install.ps1 | iexIt installs basemodo for you alone, never with administrator rights: in ~/.basemodo/bin on macOS and Linux, in your local programs folder on Windows. It adds that folder to your PATH when it is not there, and says when you must open a new terminal for basemodo to be found. Running the line again upgrades to the latest version. Then it runs basemodo setup, which asks where your agents should know Basemodo, sets them up and signs you in. With no terminal to ask in (CI, a server), it leaves setup out and says to run it. An agent that runs the line for you leaves setup out itself (BASEMODO_NO_SETUP=1, below), runs basemodo setup --user, and asks you to run basemodo login: the questions and the sign-in are yours.
To install a given version or into another folder, pass them to the script: curl -fsSL https://basemodo.com/install | sh -s -- 0.2.0 --dir ~/bin, or set BASEMODO_VERSION and BASEMODO_INSTALL_DIR. To install it without running setup, as on a server, add --no-setup (-NoSetup on Windows) or set BASEMODO_NO_SETUP=1.
Check it works:
basemodo --versionEvery command explains itself with --help (basemodo deploy --help), with examples; this page and the page of each command say the same, because they are written from the same source.
Signing in
basemodo loginOpens your browser to approve this computer, and keeps the sign-in for 30 days. Over SSH, or with --device, it shows a short code to type at basemodo.com/device from any device instead, where you see where and when the sign-in started before you approve it. The sign-in is kept in credentials.json, readable only by you, in $BASEMODO_CONFIG_DIR, else $XDG_CONFIG_HOME/basemodo, else ~/.config/basemodo (%APPDATA%\basemodo on Windows). The local MCP uses the same sign-in. You can see and revoke it on the Devices page of basemodo.com.
Which App
Commands that act on an App take --app NAME. Without it they use the App named after the folder you are in, the way basemodo deploy names it (the folder's name, or name in basemodo.toml). So inside the App's folder you rarely type its name.
Output, for people and for programs
- Without
--json, a command prints text for people on stdout, and messages along the way (progress, a build log) on stderr. - With
--json, stdout holds exactly one JSON document, the result; each command's page says its shape. A command that takes a while also writes its progress to stderr as one JSON object per line:{"event": "progress", "stage": "build", "message": "..."}. - An error exits with a non-zero code. With
--jsonit is{"error": {"code", "message", "fix", "docs"}}on stdout; without, the message on stderr with itsfix:(the exact command orbasemodo.tomlline to change) anddocs:(the page explaining it). Every code is explained on the errors page. basemodo runexits with the exit code of the command it ran.
Scripts and agents should always pass --json, and act on error.code and error.fix.
Global options
Every command takes these, before or after its own arguments.
--json: Print the result as JSON on stdout, for agents and scripts.--api-url <API_URL>: The Basemodo API to talk to. Also read fromBASEMODO_API_URL. Default:https://api.basemodo.com.
Commands
| Command | What it does | From an agent |
|---|---|---|
basemodo account delete | Erase your account for good: type its email to confirm | tool account_delete |
basemodo backup | Take a Backup of an App's data now: its database and every file on its volume | tool backup |
basemodo backups | List an App's Backups, newest first, to choose one to restore | tool backups |
basemodo callers list | List the App's Callers, with who named each and when, and the paths it exposes to them | tool callers_list |
basemodo callers add | Let another App of the same Owner call this one: name it a Caller | tool callers_add |
basemodo callers remove | Take a Caller off: its next call is refused | tool callers_remove |
basemodo change | Change an App's code: write, edit or delete files, deployed as one Deploy | tool change |
basemodo db | Run SQL against an App's SQLite database (/data/app.db) and print the rows | tool db |
basemodo deploy | Deploy a folder and print its URL once it is live | tool deploy |
basemodo deploys | List an App's Deploys, newest first, each with who made it and what it changed | tool deploys |
basemodo diff | Show what a Deploy changed in its App's code, file by file | tool diff |
basemodo docs | Read the documentation of basemodo.com/docs: every page, or one topic | tool docs |
basemodo domains add | Claim a hostname of yours for the App, and print the DNS records to add | tool domains_add |
basemodo domains verify | Look for a custom domain's DNS records now; once found, the App answers there | tool domains_verify |
basemodo domains list | List the App's custom domains, each with its status and DNS records | tool domains_list |
basemodo domains remove | Stop the App answering at a custom domain, and forget its certificate | tool domains_remove |
basemodo download | Download an App's data as it is now: one .tar.gz file of everything on its disk | tool download |
basemodo egress | Give an App an outgoing address of its own (dedicated), give it back (shared), or say where its traffic leaves from | tool egress |
basemodo env set | Set Secrets: NAME=value ..., or one NAME alone to read its value from stdin. The App gets them the next time it starts: basemodo restart | tool env_set |
basemodo env list | List the App's Secrets by name, with who set each and when. Never values | tool env_list |
basemodo env unset | Remove Secrets by name (all or none). The App loses them the next time it starts: basemodo restart | tool env_unset |
basemodo feedback | Tell Basemodo what is wrong or missing, as the signed-in Person | tool feedback |
basemodo files | List or read an App's code, one of its Deploys', or a Template's | tool files |
basemodo indexing | Let search engines index a Public App (on), keep them out (off), or say which | tool indexing |
basemodo logs | Follow an App's Logs live, or print its last lines with --lines | tool logs |
basemodo login | Sign this CLI in from your browser | terminal only |
basemodo logout | Sign this CLI out: end its Session on Basemodo and forget its token here | terminal only |
basemodo pull | Bring an App's latest code into a folder: a new one, or one that came from it | tool pull |
basemodo recognize | Have a Public App ask visitors already signed in to Basemodo to continue as themselves (on), let them in as Guests again (off), or say which | tool recognize |
basemodo rename | Rename an App; its old address redirects to the new one for 30 days | tool rename |
basemodo mcp | Serve the local MCP over stdio, for an agent on this machine | terminal only |
basemodo plan | Show your Plan and your next Invoice | tool plan |
basemodo plan change | Switch your Plan to another, on the payment provider's page | terminal only |
basemodo plan reserve | See or change a Workspace's Seats, Additional Apps and Always On Apps reserved ahead, for its Admins | tool plan_reserve |
basemodo restore | Put an App's data back as a Backup holds it | tool restore |
basemodo open | Open an App's URL in your browser | tool open |
basemodo preview | Make a Preview Link: an App opened in a browser of your own (an agent's Playwright), signed in as you, for minutes | tool preview |
basemodo restart | Restart an App: its Machine starts again on its live Deploy | tool restart |
basemodo rollback | Make an earlier Deploy live again, as a new Deploy | tool rollback |
basemodo run | Run a one-off command inside an App's Machine (a migration, a script) | tool run |
basemodo runs | Follow a command an agent's run left running: what it printed and how it ended | tool runs |
basemodo screenshot | See a page of an App as you see it: rendered in a browser, on this computer or on the App's own server, and answered as a PNG | tool screenshot |
basemodo share | Share an App: invite Members and Editors by email, remove them, answer Access Requests, or change its Visibility | tool share |
basemodo setup | Teach the agents on this computer to use Basemodo, by writing its Skills where they read them | terminal only |
basemodo status | Say whether an App is awake, asleep, starting or paused, and its latest Deploy | tool status |
basemodo toolbar | Turn off the Toolbar on an App's pages (off), turn it back on (on), or say which | tool toolbar |
basemodo transfers list | List the pending Transfers you asked for or may answer, with each App's Editors | tool transfers_list |
basemodo transfers accept | Accept a Transfer: the App becomes yours, or your Workspace's, at the same URL | tool transfers_accept |
basemodo transfers decline | Decline a Transfer: the App stays where it is | tool transfers_decline |
basemodo update | Update this CLI: replace this basemodo with the latest release, or the version named | terminal only |
basemodo upload | Get a one-time link to send an App's folder to from your own shell, for deploy to deploy | tool upload |
basemodo version | Print the version of this CLI | terminal only |
basemodo whoami | Print who this CLI is signed in as | tool whoami |