- Docs
- Server & runtime
- Server commands & updates
Server commands & updates
cipi status, self-update and shell completion.
The everyday commands for the server itself.
$ cipi status $ cipi self-update --check $ cipi self-update
| Command | Shows or does |
|---|---|
cipi status | CPU, RAM, disk, services, PHP versions, apps, pending items |
cipi disk | Disk usage of the server and each app (Disk usage) |
cipi pending | What needs a human (Stack upgrades) |
cipi version | Installed Cipi version |
cipi help [topic] | Every command, grouped |
Credentials#
cipi credentials # root, MariaDB, PostgreSQL, Valkey, Meilisearch, backup key cipi credentials export > cipi.csv # CSV for any password manager cipi reset root-password cipi reset db-password [--engine=pgsql] cipi reset valkey-password # restarts the shared Valkey
Run the export from your laptop (ssh cipi@server sudo cipi credentials export > cipi.csv) so no copy stays on the server. Every show or export is logged and notified (credentials_show). Secrets are stored encrypted (Vault).
Updating Cipi#
cipi self-update --check cipi self-update
cipi self-update downloads the new version of Cipi from GitHub.
The current installation is copied to /opt/cipi.bak.<timestamp>, so you can go back.
The CLI's scripts and libraries are replaced.
Migrations bring older servers up to date, in order. Each is safe to run twice.
Your apps keep running throughout: no deploy, no restart of your code.
Updates never deploy your apps or touch their code and data. Migrations bring existing servers in line with new defaults (a security setting, a new hook); each one is written to be safe to re-run and to degrade to a warning instead of breaking the update. A nightly job (03:50) applies updates automatically; run it yourself first if you'd rather watch. What changed in each release: What's new and the changelog on GitHub.
Tab completion#
Installed for you for bash and zsh, for root and the cipi user, in login and non-login shells (su, tmux), including after sudo:
sudo cipi dep<Tab> # → deploy sudo cipi deploy sh<Tab> # → shop shop-stg (your apps) cipi completion zsh --print # the script, for another user or rc file
It completes commands, sub-commands, flags, help topics and app names.