ControlSlide itBlock 18 of 44

Run commands in a sandbox

--sandbox lets commands write only inside the project, with no network. Flip the switch in this block to turn it on.

Sandbox on

Slide the block above. --sandbox: commands write only inside the project, with no network.

How it works in Omi CLI

  1. 01

    On macOS it uses the built-in sandbox-exec.

  2. 02

    On Linux it uses bubblewrap, so bwrap must be installed.

  3. 03

    --sandbox-net keeps the sandbox but allows the network.

  4. 04

    If neither tool is there, Omi stops and tells you instead of running unsandboxed.

Try it in your terminal

  • omi --sandbox

    Commands write only inside the project, offline.

  • omi --sandbox-net

    Sandbox with network allowed.

Try it on your own code.

Free to start, no card. One install, then omi login.

Slide to start free
Slide to start free
install
$ npm install -g @builditomi/cli

Goes well with