github cipi-sh/cipi 5.24.0
Version 5.24

5 hours ago

[5.24.0] — 2026-12-02

A domain for the server itself. A wildcard record that points at the server — *.example.com, or a level down, *.cipi.example.com — with no app on it: cipi server domain set '*.example.com'. Cipi makes names under it for what belongs to the server and not to one app's domain.

cipi/agent is optional. With a server domain the Git webhook of every app is https://webhooks.<domain>/<app>, answered by Cipi itself: a Laravel app deploys on push without the agent in its project. Where the agent is, its own webhook comes first.

Previews of a branch. cipi preview create <app> <branch> (or cipi app feature-branch <app> <branch>): a copy of the app on another branch, on <app>-<branch>-<random>.<domain>, with a database and a certificate of its own — removed when the branch is deleted from the repository.

Each type of app runs and logs what is its own. cipi app run takes WP-CLI and Symfony's console and suggests commands per type; cipi app logs follows Laravel's log for a Laravel app, Symfony's for a Symfony one, WordPress's, a Node process's.

Added

  • cipi server domain (lib/server-domain.sh) — set <*.example.com> [--no-ssl] [--skip-dns-check], remove [--yes], status [--json], sync.
    • The record is checked before anything is written: webhooks.<domain> has to reach this server, and a name nobody made has to resolve too — a record for one name is not a wildcard, and previews need any name.
    • Saved in server.json as its base (server_domain), next to what is there. The installer asks for it (optional), after the Git token; cipi api without a domain suggests api.<domain> — asked at a terminal, taken where there is nobody to ask.
    • remove is refused while previews live under the domain.
  • The webhook on the server's domain. One vhost (cipi-webhooks), one certificate, one location per app in /etc/nginx/cipi-webhooks/<app>.conf: POST /<app> goes to Cipi's receiver in that app's own PHP-FPM pool. It runs as the app user, verifies the provider's signature and drops ~/.deploy-trigger, as on the app's domain — nothing new can be done through it.
    • A Laravel app's pool may read the receiver (open_basedir; pools already written get the folder when the domain is set). An Octane app has no pool of its own: it gets one for the receiver alone — on demand, two children, no exec.
    • Where the agent is, the agent comes first (app_webhook_url, lib/common.sh — the one place that decides): a Laravel app whose live release has vendor/cipi/agent keeps https://<its domain>/cipi/webhook. Otherwise the server's domain when there is one, otherwise the app's own, as before.
    • The provider's webhook follows (webhook_reconcile): when the domain is set or removed, at cipi git refresh, and after a cipi deploy that brought the agent in or took it out. A webhook Cipi registered is moved; one made by hand is named with its new URL. What was registered is recorded (webhook_url).
  • cipi app webhook show <app> [--json] — where a push goes, who answers it, the secret, whether it deploys, what the provider has, and what is still missing (the agent, a certificate). cipi deploy <app> --webhook says the same.
  • cipi app webhook auto <app> on|off — a push deploys by itself (the default), or is ignored. Cipi's receiver answers 202 without queueing; a push that reaches cipi/agent is held by the deploy wrapper, which reads the same switch (auto in ~/.cipi/webhook.json). What is not a push — cipi deploy, the panel, the agent's MCP deploy tool — still deploys.
  • cipi app webhook rotate <app> — a new secret for every type of app, with or without a provider token: written where each receiver reads it, registered on the provider when Cipi can, and otherwise said with the URL it belongs to. (recreate --rotate-secret needs a token, as before.)
  • A public repository that is not yours: cipi app create … --public, cipi app edit <app> [--repository=] --public (--no-public to take the mark off). Read over https, checked before anything is created (it has to be readable by anybody: asked as nobody, with no key, no saved credentials and no prompt). No deploy key and no webhook are asked of the provider — nobody but the owner can add a webhook — and the summary, cipi app show and cipi app webhook show say that deploys are by hand.
    • Found out without the flag too: a repository the saved token could put no key on, and that anybody can read, is read over https from then on — its first deploy failed at the key — and marked.
  • cipi preview (lib/preview.sh) — create <app> <branch> [--db=empty|copy|none] [--no-deploy] [--no-ssl] [--keep], list [app] [--json], keep <preview> on|off, delete <preview> (or <app> <branch>) [--yes], sweep. cipi app feature-branch <app> <branch> is the same command (--delete removes).
    • A preview is an app of its own, made like the one it comes from — type, PHP, repository, build, engine — for Laravel (FPM and Octane), WordPress, Symfony, Node and Laravel Rust apps. Its host is <app>-<branch>-<random>.<domain>; its name — the Linux user, and the database — is the same three parts without what neither can have in a name (shop-new-cart-7asfy.example.com → shopnewcart7asfy).
    • The .env is the app's, without what is the app's own: keys and salts, database, URLs, Valkey, Reverb, search. --db=copy fills the database with the app's.
    • cipi.yml: a preview's environment is preview, so a cipi-preview.yml in the repository is read before cipi.yml; it is applied after each deploy when the app has that on.
    • It gets its certificate and its first deploy at once; a push to the branch deploys it (its own webhook, on the server's domain).
    • It goes when the branch goes. The preview's receiver notes the deletion; cipi preview sweep — every five minutes, /etc/cron.d/cipi-preview, written when the domain is set — asks the repository itself and removes the preview only when the repository answers and has no such branch. A preview without a webhook is asked about every half hour. The database made with it is dropped with it (an app keeps its linked databases; a preview takes its own).
  • cipi app run: wp (WP-CLI, cipi package install wp-cli; no shell, edit, --prompt, db cli) and Symfony's console as php bin/console …. cipi app run --commands <app> [--json] lists what is worth running in that app — WP-CLI for WordPress, the console for Symfony, npm for Node, Composer and npm for Laravel. Each suggestion is written for where it runs — the live release for everything deployed in releases (an archive: no .git, and nothing of the home above it), htdocs for a custom app.
  • cipi app logs <app> --type=app — the application's own log, whatever the app is: Laravel's storage/logs, Symfony's var/log, WordPress's debug.log (of the live release; Bedrock's web/app) and ~/logs/wordpress*.log, a Node app's process, a Laravel Rust app's process and storage/logs. Each is also a type by its name (laravel, symfony, wordpress, node, rust); --types [--json] lists the ones an app has. all reads the app's own log with the server's.
    • A new WordPress app can name the file of its debug log (WP_DEBUG_LOG=/home/<app>/logs/wordpress.log), so it outlives a deploy.
  • The panel (www-data sudoers): server domain status|set|remove|sync, app webhook show|auto|rotate, preview list|create|keep|delete. apps-public.json says preview_of, git_public and webhook_auto.

Fixed

  • cipi app run <app> … on a WordPress or Symfony app ran in ~, where composer install and php bin/console found nothing: it runs in the live release, as for a Laravel app.
  • php in cipi app run was the server's PHP: it is the app's, as in the app's own shell — php bin/console of an app on 8.4 no longer runs on 8.6.
  • cipi git refresh and cipi git check left out the webhook of a WordPress or Symfony app (they asked whether the app was Laravel or Node, not whether it had a webhook), and cipi git refresh --rotate-secret wrote a Node app's new secret to an .env its receiver does not read.
  • A push that deleted the app's branch queued a deploy of a commit that was not there (fatal: not a valid object name): it is acknowledged and ignored.
  • cipi app logs <app> --type=laravel is still the app's own log on an app that is not Laravel — it was the name that log had before each kind got one, and it is what a panel or a script that was not updated asks for: a Symfony app answers with var/log, as it did; a WordPress or a Node app with its own log, where it got the whole of ~/logs. Only the new names are strict: --type=symfony on a WordPress site is refused, with the types the app has.

Notes

  • Nothing changes on a server without a domain of its own: webhooks are where they were, a Laravel app still needs cipi/agent for them, and cipi preview says what it needs. No migration.
  • Existing webhooks keep working when the domain is set: the location on the app's own domain stays (Node, WordPress, Symfony), and a webhook Cipi registered is moved to the new URL then and there. One made by hand keeps its old URL until it is changed — cipi app webhook show <app> names both.
  • A preview has a deploy key of its own, registered by the saved provider token like any app's. It does not share the app's: that key also opens the app's own user to Deployer, and a branch under review is not the place for it. Without a token the key is added by hand before the first deploy (the summary says so), or the repository is public.
  • Behind Cloudflare's tunnel or a mesh lock (cipi zt) ports 80 and 443 are closed to the world: webhooks.<domain> and the previews have to be published the way the apps are. Not done by this release.
  • cipi/agent still gives what it gave — health, MCP, the anonymizer — and its webhook. It reads the auto switch itself from its next version; on the ones before, the deploy wrapper holds the push.
  • Not run on a real server. tests/verify-5.24.0.sh (186 checks) runs the receiver for real under php -S (auto off, a deleted branch for GitHub, GitLab, Bitbucket and Azure DevOps, a preview), the deploy wrapper over trigger files, the sweep and the public check against repositories made with this machine's git, and the endpoint (vhost, locations, pools) in a folder of its own. cipi server domain set end to end — certbot, nginx, a real DNS — and cipi preview create past cipi app create are not: their order is read from the source and their steps run one by one. tests/verify-5.23.0.sh follows the Laravel pool to its new open_basedir.

Don't miss a new cipi release

NewReleases is sending notifications on new releases.