Deploy with omg deploy
Publish the current folder to https://<slug>.omgs.app from your terminal. No omg.dev install and no dashboard needed.
$ omg deploy✓ installing✓ building✓ ready→ https://my-app.omgs.app
1. Install
npm i -g @omg-dev/cliThe CLI needs Bun. Do not use npx omg: the npm package
omg is not part of omg.dev.
2. Sign in
omg loginThis opens the omg.dev sign-in page in your browser.
3. Deploy
cd my-app
omg deployThe CLI prints the live link. omg.dev installs the dependencies and runs the build on its servers.
Run omg deploy again in the same folder to update the same app. The link to
the app is saved in .omg/project.json, so keep that file.
To add a database and live updates, see Realtime apps.
Deploy from CI
npm i -g @omg-dev/cli
omg login --api-key "$OMG_API_KEY"
omg deployCommit .omg/project.json so every run updates the same app.
Other commands
omg apps lists your apps. omg env set <slug> KEY=VALUE sets an environment
variable. omg visibility <slug> public makes an app public. Run omg help
for the full list.
If something fails
- "Run
omg computer setupfirst": the CLI is too old. Runnpm i -g @omg-dev/cli@latest. Unauthorized: runomg login.Authentication requiredin the app: the collection is private. See Schema reference.