omg Docs

Deploy with omg deploy

Publish the current folder to https://<slug>.omgs.app from your terminal. No omg.dev install and no dashboard needed.

~/my-app
$ omg deploy
✓ installing
✓ building
✓ ready
→ https://my-app.omgs.app
~20 s
my-app.omgs.app
Party quizLive
Angel joined
Ben joined
Kai answered first

1. Install

npm i -g @omg-dev/cli

The CLI needs Bun. Do not use npx omg: the npm package omg is not part of omg.dev.

2. Sign in

omg login

This opens the omg.dev sign-in page in your browser.

3. Deploy

cd my-app
omg deploy

The 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 deploy

Commit .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 setup first": the CLI is too old. Run npm i -g @omg-dev/cli@latest.
  • Unauthorized: run omg login.
  • Authentication required in the app: the collection is private. See Schema reference.