CI pipelines
A token with only deploy-manage deploys from GitHub Actions or GitLab CI over HTTPS, no SSH key on the runner.
One command adds a REST API to a Cipi server. Create apps, deploy, issue certificates, back up databases and apply cipi.yml from CI, scripts, your own dashboard or an AI assistant. Scoped tokens, an IP allowlist and nothing hosted by anyone else.
cipi api api.example.com$ curl -X POST https://api.example.com/api/apps/shop/deploy \ -H "Authorization: Bearer $CIPI_TOKEN" {"job_id":"9f1c2a…","status":"pending"} $ curl https://api.example.com/api/jobs/9f1c2a… \ -H "Authorization: Bearer $CIPI_TOKEN" {"status":"completed","type":"app-deploy", "result":{"release":134,"duration":"58s"}} # or from PHP $cipi->wait($cipi->deploys()->start('shop'));
Reads answer immediately. Writes become jobs you poll, with the CLI's output and a structured result.
GET/api/appsPOST/api/appsPUT/api/apps/{name}/envPOST/api/apps/{name}/artisanPOST/api/apps/{name}/deployPOST…/deploy/rollbackGET…/deploy/statusGET…/deploy/auditGET/api/apps/{name}/ymlPOST…/yml/applyPOST…/yml/auto/enablePOST…/aliases/{alias}POST/api/apps/{name}/sslPOST…/redirectsPOST…/proxiesPOST/api/dbsPOST/api/dbs/{name}/backupPOST/api/dbs/{name}/restorePOST/api/dbs/uploadsGET/api/backupsPOST/api/backups/runPOST/api/backups/verifyGET/api/statusGET/api/diskPOST/api/php/installPOST/api/services/{name}/restartGET/api/jobs/{id}status, output and parsed result: credentials, release, backup pathOfficial clients for the places people automate servers.
A single Go binary for Linux and macOS. One profile per server, so a fleet is one command away, with no SSH.
cipi-cli prod deploy shop--json everywhere for scripts$ cipi-cli api token add prod $ cipi-cli status $ cipi-cli staging deploy myapp
composer require cipi/sdk, then call the API from Laravel, Symfony or a script. It waits on jobs, throws typed exceptions and never leaks the token.
use Cipi\Sdk\Laravel\Facades\Cipi; // a staging copy of every pull request Cipi::wait(Cipi::apps()->create([ 'user' => "pr{$number}", 'domain' => "pr{$number}.preview.acme.app", 'repository' => 'git@github.com:acme/shop.git', 'branch' => $branch, 'env' => 'preview', ])); Cipi::wait(Cipi::deploys()->start("pr{$number}"));
A token with only deploy-manage deploys from GitHub Actions or GitLab CI over HTTPS, no SSH key on the runner.
Sell Laravel and PHP hosting: orders create apps, suspensions show a 503 page, terminations remove them.
Docs: WHMCS moduleThe same API exposes an MCP server at /mcp for Claude, Cursor and VS Code.
The API runs as www-data and can only call an explicit allowlist of cipi commands through sudo. Credentials stay in Cipi's vault, never in PHP.
| Scoped tokens | cipi api token create --name=ci --abilities=deploy-manage --expires=2027-06-30 |
|---|---|
| IP allowlist | cipi api ip-whitelist set --ips=203.0.113.0/24; your own IP is kept when you tighten it. |
| Jobs are private | A job is readable only with the ability it was created under, so one token can't read another's credentials. |
| Off-limits by design | Installing software, dropping databases, removing PHP, Zero Trust changes, S3 secret keys. |
| Kept current | The API package updates itself nightly; cipi api upgrade rebuilds with automatic rollback. |
No. Each server runs its own API on a subdomain you choose (cipi api api.example.com). Nothing goes through a third party.
Only if you create it with --full-access. Otherwise it gets the abilities you list, for example deploy-manage only for a CI job, and an optional expiry date.
On purpose: install software, drop databases, remove PHP versions or change Zero Trust. Those stay on the CLI, so a leaked token can't do them.
Yes. Swagger UI is served at /docs on the API's domain, generated from the OpenAPI document.
Only for automation: the web panel, cipi-cli, the PHP SDK, CI pipelines, WHMCS and the server MCP use it. The CLI on the server works without it.
sudo cipi api api.example.com on the server, with that hostname pointing at it. It issues its own certificate and runs as www-data. See API docs.
Each token has abilities (for example apps-view, deploy, ssl-manage, mcp-access). Give each client only what it needs, and revoke with cipi api token revoke.
Yes, with an IP allowlist in /etc/cipi/api-ip-whitelist, and by putting it behind Cloudflare Zero Trust.
No. Deploys, SSL and backups return a job id you poll; the panel and SDK do it for you.