Brand logo
phis.dev
  • Accueil
  • Documentation
  • Télécharger
  • À propos de nous
CLI
A terminal full of lines, one of them highlighted

The phis command

Sites, Modules, Add-ons, operators and the database: everything an installation is run with, one command at a time.
On this page
In short
How it fits
What matters
Example
Brand logo
phis.dev
Liens rapides
Privacy
Télécharger
Installation
Documentation
Architecture
À propos de nous
GitHub
Support
Conditions générales
Contact
S’inscrire
© 2026 phis.dev. Tous droits réservés.

In short

phis is the operator command line of the Core. It edits the configuration files of one phis root, writes to the PostgreSQL database that root names, scaffolds and builds Site repositories, and manages Add-ons and Modules. It is for operators and for anyone scripting a deployment.

How it fits

The CLI is installed with the Core. The Debian package provides /usr/bin/phis, which operates on the stage /srv/phis/stages/prod. The CLI reads and writes the files under config/ and connects to PostgreSQL. It also scaffolds and updates the Next.js Site that renders with @phis/ui and its Modules. Add-ons are installed into the Core through it.

What matters

  • Root selection. The root is --root or -r, else PHIS_ROOT, else the current directory. With the Debian package the default is the prod stage.
  • Output. --json or -j prints one JSON document. A failure prints the message to stderr and exits with 1.
  • Strict flags. Each command accepts a fixed list of flags. A flag the command does not read is refused.
  • Two database roles. Most commands use database.uri, the serving role. schema drop --force, addon migrate and addon purge need database.migrationUri, and there is no fallback between them.
  • Restart after changes. Commands that change phis-runtime.json, such as operator add and site add, do not reach a running server for up to four hours. Restart it.
  • Version stamp. A CLI older than the stamp in config/phis-instance.json is refused. PHIS_SKIP_VERSION_CHECK=1 overrides this.

Example

  • phis config validate checks the merged configuration.
  • phis schema apply creates or updates the Core schema.
  • phis site add --key <site key> ... creates a Site.
  • phis init <site key> --api-base-url <url> scaffolds the Site application.
  • phis update <site key> installs, builds and copies a release of the Site.
  • phis module add --site <site key> --package <@scope/name> adds a Module to a Site.
  • phis addon install --artifact <path> installs an Add-on.