The command line¶
TL;DR. The app's executable is overpressure's command line: started with words after it, it runs them with
the app's own Python and ends with their exit status; without words it opens the app. Everything the app does, the
command line does too. In a development checkout the same command line is uv run overpressure (Python 3.12 or
newer).
| To | Run |
|---|---|
| install, as an owner | the app: its installer for Windows, macOS or Linux from the releases (installing) |
download a headset's release into devices/, or its update |
overpressure headset add CODENAME [--channel beta\|preview \| --version V \| --branch NAME], headset update CODENAME |
| see what this computer lacks | overpressure doctor |
| install, upgrade or restore in a terminal | overpressure install, upgrade, restore |
| list, choose, export, import or delete the headset's backups | overpressure backup list\|use NAME\|export FILE\|import FILE\|delete NAME |
| save the logs for a bug report | the app's Save logs, or overpressure support-bundle FILE |
| run a build's Linux side | overpressure container run -- CMD |
| list a headset's steps and commands | overpressure steps, overpressure --help |
| work on overpressure itself | a checkout: uv run overpressure, uv run python -m unittest (setting up) |
Starting it¶
| System | The command |
|---|---|
| Windows | overpressure in any new terminal: the installer puts the console twin (engine\bin\overpressure.exe, app/src-tauri/cli) on the user's PATH and takes it off again when the app is removed (hooks.nsh), since a windowed program cannot hold a terminal (the app's own overpressure-app.exe runs the words too, but a terminal does not wait for it) |
| macOS | /Applications/overpressure.app/Contents/MacOS/overpressure-app, or an alias of it named overpressure |
| Linux | the AppImage itself (./overpressure-app-linux-x86_64.AppImage doctor), or an alias of it named overpressure |
| A development checkout | uv run overpressure, from the repository root |
The executable runs the words as overpressure WORDS in the engine beside it
(app/src-tauri/src/cli.rs), in the terminal it was started from.
Commands¶
overpressure [--device CODENAME] [--accept-disclaimer] COMMAND [ARGS...]
--version this overpressure: its version, channel and commit
carry-over [FOLDER] the settings, backup and installer records from the earlier overpressure folder
devices the headsets in devices/, and those this version cannot run
headset list | releases CODENAME | add CODENAME [--channel stable|beta|preview | --version V | --branch NAME]
headset update CODENAME
the headsets there are, their releases, one downloaded into devices/ (a branch: a preview
of it; one in development: branches only), its newer one
serve --json [--demo]
the engine as a server for the app: requests, answers and events as JSON lines
steps the headset's steps and their command lines
run STEP [NAME=VALUE...]
a step with parameters, as the app's Advanced mode runs it
ram-boot [IMAGE] boot an image from RAM with fastboot boot, where the bootloader allows it
install [--workflow KEY] [--json] [--plan] [--restart STAGE]
the installer: the headset's stages in order, resumable
upgrade | restore the installer's other workflows, where the headset has them
backup list | use NAME | export FILE [--name NAME] | import FILE | delete NAME [--yes] | compact
the headset's backups: listed, one made the way back after it is checked,
one as a checked file and back, one deleted for good (never the way back)
settle each headset's files from the shared backup/ and assets/ into its own folders
(as overpressure starts; in a development checkout only so)
support-bundle FILE the logs for a bug report in one zip: the installer's records of the headset
and its own files (Headset.support_files), the serial settings, what the headset
names (Headset.support_masks) and the home folder masked
doctor what this computer has and lacks for the headset, with fixes
tools [NAME...] fetch the pinned host tools (platform-tools, edl-ng)
container pull|run -- CMD|shell|binfmt
the build container
COMMAND [ARGS...] a command of the headset
The headset is --device, else OVERPRESSURE_DEVICE (environment or .env), else the only one in
devices/. Without arguments it lists the headset's commands; COMMAND --help shows a command's options. With
the PICO 4:
overpressure run recovery-ramdisk firmware=5.13.7-global-seko # a step, as Advanced mode runs it
overpressure build --firmware 5.13.7-global-seko # the same through its command
overpressure dev check
Headsets¶
overpressure headset list # every headset, what devices/ holds of it, its update
overpressure headset releases phoenix # its published releases, newest first
overpressure headset add phoenix # its newest stable release (never a beta: none until one is out)
overpressure headset add phoenix --channel beta # the newest, betas included
overpressure headset add phoenix --channel preview # its main: development state, untested
overpressure headset add phoenix --branch feat/x # another branch's newest commit, untested
overpressure headset add phoenix --version 2026.12.0b0 # a release by its version, older ones too
overpressure headset update phoenix # what its recorded channel offers now, when newer
How a release is downloaded and checked: headsets in devices/.
The installer and the backups¶
overpressure install # in a terminal: the stages as text, asks through the keyboard
overpressure install --json # the app's engine: events on stdout, answers on stdin
overpressure install --plan # the plan and what is done already; runs nothing
overpressure install --restart STAGE # forget what was done from STAGE on, then run
overpressure upgrade # install --workflow upgrade: a new system, the data kept
overpressure restore # install --workflow restore: back to the headset's own system
overpressure backup list # the headset's backups, the way back marked
overpressure backup use NAME # another of them checked whole, then the way back
overpressure backup export FILE # the way back (--name NAME: another) as one checked file
overpressure backup import FILE # such a file onto this computer, checked
overpressure backup delete NAME # one deleted for good: never the way back or the only one
overpressure backup compact # the backup's zero runs given back to the disk, content unchanged
upgrade and restore take --json, --plan and --restart too. How the engine runs a plan:
the installer's engine; its JSON events: the engine's
protocol.
The build container¶
overpressure container pull # the pinned build image, ghcr.io/overpressure/builder
overpressure container run -- CMD # CMD as root in the container (the image built first if missing)
overpressure container shell # an interactive shell there
overpressure container binfmt # register the aarch64 handler when the engine has none
overpressure container run -- make test # the host tests and every headset's shell tests, on Linux
What the container sees and how a build runs in it: Linux-root steps.
Output¶
Its output is UTF-8 on every host, also redirected to a file or a pipe, where Python on Windows would
write the system's code page and stop at a character it lacks (a build's →). A program whose lines a
command passes on (process.run_streamed) ends when handling a line fails, and the command raises that
error: it never waits on a program blocked on a full pipe.
Before anything touches the headset¶
A command that touches the headset shows the disclaimer and asks y or n
(overpressure/disclaimer.py): install, upgrade, restore, ram-boot,
run of a step that touches it, and the headset's own commands marked so (Command(headset=...); the PICO 4's
dev except its two builds, device probe, check-unlocked, backup, stage, unlock and restore-abl, hwtest,
cycle). The builds, --plan, --help, steps and backup do not ask. n does nothing (exit status 1), no
answer at the end of the input neither (2). --accept-disclaimer, anywhere on the command line, or
OVERPRESSURE_ACCEPT_DISCLAIMER=1 in the environment accepts it without asking, for unattended runs; the
acceptance holds for the programs the command starts.
The battery. The same commands refuse to start (exit status 1) on a computer that runs on its battery below
30 % (overpressure/power.py: Windows' GetSystemPowerStatus, Linux's
/sys/class/power_supply, macOS's pmset -g batt). On mains, without a battery, or when the state cannot be
read, they go on. The installer checks the battery again before each task that writes to the headset
(the installer's engine).
Awake to the end. The same commands keep the computer from sleeping from their start to their end (overpressure/awake.py), not only while they write: a sleep while the headset builds its system from this computer's downloads breaks the install too. The app's runs and steps are these commands, so they hold it as well.
| System | How |
|---|---|
| Windows | SetThreadExecutionState (system required) on the command's thread |
| macOS | caffeinate -i -w PID |
| Linux | logind's systemd-inhibit --mode=block for sleep, idle and the lid switch (sleep and idle alone where polkit refuses the lid), around tail --pid=PID, so the lock ends with the command however it ends |
The display may still turn off. Closing a laptop's lid still sleeps it on Windows and macOS: keep it open during a run. Without a way to hold it (Linux without systemd), the command says so once and goes on.
Never with administrator rights. Every command, and the app's engine, refuses to start (exit status 1)
with administrator rights: Run as administrator on Windows (an elevated token), sudo or root on Linux and
macOS (overpressure/elevated.py). The error says how to start it instead.
Nothing overpressure does needs those rights (the headset's USB access comes from drivers or udev rules,
doctor), and what it writes into its folder would belong to the administrator. It
runs where nobody starts it by hand: inside the build container, where its builds run as root, and on GitHub
Actions (GITHUB_ACTIONS=true), whose Windows runners always run as an administrator.
Exit statuses¶
| Command | 0 | 1 | 2 | 3 |
|---|---|---|---|---|
install, upgrade, restore |
finished | failed | a usage error, no installer, or a refused workflow | stopped |
ram-boot |
booted | failed | refused: the bootloader has no fastboot boot |
|
doctor |
nothing needed is missing | something needed is missing | ||
| a command that touches the headset | the disclaimer declined, the battery below 30 %, or administrator rights | no answer to the disclaimer at the end of the input |