Toupas
Docs menu

The toupas command

toupas makes the app in a folder on your computer live, and looks after it once it is. It's one file, with no Node.js or Python needed, for macOS, Linux and Windows.

Install

curl -fsSL https://toupas.com/install.sh | sh

On Windows, in PowerShell: irm https://toupas.com/install.ps1 | iex. Run the same line again to update it.

Make an app live

In your app's folder:

toupas live

The first time, it signs you in (in your browser), works out how the app is built and started, writes toupas.json, and asks anything only you can answer, such as whether the live app starts with a copy of your local data. Apps with their own server are prepared in Docker on your computer: toupas doctor checks it's ready, and toupas setup docker installs it.

Run toupas live again to update the live app. Only changed files are sent, and the new version replaces the old one only once it has started and answers.

Every command works on the app in the folder you run it in. --dir <folder> picks another folder, and --json prints one JSON result for scripts and coding agents.

Your app

CommandWhat it does
toupas liveMake the app live, or update it
toupas statusWhether the app is live, and how its latest version went
toupas logsWhat the live app printed. --follow keeps watching, --since 1h, --grep text
toupas versionsThe app's recent versions. toupas versions use <number> --yes goes back to one; settings and saved data stay as they are
toupas stop --yesTake the app offline. Its data is kept
toupas startBring a stopped app back online
toupas rename <name>Give the app a new name. Its link stays the same
toupas projectsYour apps and their links
toupas code get <app>An app made in a chat, as code in a folder of your own. Once you run toupas live there, chats can't update it any more

Settings and secrets

CommandWhat it does
toupas env listThe app's settings. Secrets show as hidden
toupas env set NAME=valueAdd or change settings. --secret for passwords and keys: they can't be shown again. --build-time also passes it while the app is prepared
toupas env unset NAMERemove a setting
toupas env import [.env]Save the settings in a .env file, as secrets

A change restarts the live app with the new settings. If the app doesn't start with them, it keeps running with the previous ones. .env files are never uploaded, so keep keys in toupas env, not in the code.

Toupas sets PORT, TOUPAS_URL and the database and storage settings itself; How apps run lists them all.

Data and files

CommandWhat it does
toupas dbThe live app's Postgres database: Database
toupas storageThe live app's files: File storage
toupas dev dbA database on your computer that matches the live one
toupas dev storageFile storage on your computer, like the live one
CommandWhat it does
toupas linksThe app's links. links main <link> picks the main one
toupas subdomain set <name>A custom name on toupas.app
toupas domains add <domain>Your own domain

More in Links and domains.

Account and plans

CommandWhat it does
toupas usageWhat your account uses: RAM and storage
toupas billingYour plan, add-ons and payments. billing open pays in your browser
toupas activateMove this app from its free trial to your plan
toupas freeMake this website your free website, online with no plan
toupas showcase addList the app on toupas.com/showcase (Toupas checks it first)
toupas login, toupas logout, toupas whoamiSign in, sign out, and who you're signed in as

This computer and your agents

CommandWhat it does
toupas doctorCheck this computer is ready to make apps live
toupas setup dockerInstall Docker Desktop, which apps with their own server need
toupas init --agentsLet Claude Code, Codex and Cursor use Toupas: Coding agents
toupas mcpThe Toupas tools for coding agents. Agents start it themselves
toupas runtimesThe languages Toupas runs apps in

Options for toupas live

OptionWhat it does
--prebuilt <folder>Make this folder live as it is, without preparing the app (static sites)
--no-buildSkip the build and use the existing output folder (static sites)
--copy-local-dataThe first time: the live database starts with a copy of your local data
--start-emptyThe first time: the live database starts empty
--use-toupas-storageThe app has its own S3 storage: use Toupas file storage instead
--keep-own-storageThe app has its own S3 storage: keep using it
--allow-local-filesGo live even though the app saves files next to its code (they'll be lost)
--no-browserDon't open the browser to sign in

Tools that take things offline or change live data ask first: add --yes when you're sure. toupas help lists every command, and Error codes explains every error.