Create an app
The cipi app create wizard and its flags for Laravel, Node and custom apps.
One command creates a complete, isolated app: Linux user, PHP pool (or Octane), Nginx vhost, database, worker, scheduler, deploy key and a ready .env.
$ cipi app create
Pick the app type#
| Type | For | Flag |
|---|---|---|
| Laravel (default) | Laravel apps, on PHP-FPM or Octane | none, or --octane |
| Node | React, Vue, Svelte, Next.js, Nuxt, SvelteKit, Astro, Remix | --node=spa|static|ssr |
| Custom | WordPress, plain PHP, static files, SFTP-only sites | --custom |
Details per type: Laravel Octane, Node apps, Custom PHP & static sites.
Interactive#
cipi app create
The wizard asks, with the default pre-selected (Enter accepts it): app type, PHP-FPM or Octane, database engine, then name, domain, repository, branch, PHP version and an optional asset build. Before the summary it tests the deploy key against the repository; if it cannot read it, it offers to save a Git token and register the key for you.
With flags#
Any type flag skips the menus; without a terminal every default applies.
cipi app create --user=myapp --domain=myapp.com \
--repository=git@github.com:you/myapp.git --branch=main --php=8.6
# Octane, PostgreSQL, front-end build
cipi app create --user=api --domain=api.myapp.com \
--repository=git@github.com:you/api.git --octane --engine=pgsql \
--node-build='npm ci && npm run build'
# A staging copy of the same repository
cipi app create --user=myapp-stg --domain=staging.myapp.com \
--repository=git@github.com:you/myapp.git --branch=develop --env=staging| Flag | Meaning | Default |
|---|---|---|
--user | Linux user and app name: unique, lowercase, alphanumeric | asked |
--domain | Primary domain; sets the vhost and APP_URL | asked |
--repository | Git URL over SSH (git@…) | asked (required for Laravel) |
--branch | Branch to deploy | main |
--php | An installed PHP version (8.3–8.6) | server default |
--octane | Serve with Octane (FrankenPHP) instead of PHP-FPM | off |
--engine | mariadb or pgsql (after cipi db install pgsql) | mariadb |
--valkey | shared to use the server's Valkey instead of the app's own | own instance |
--node-build | Asset build run in every deploy (npm, npx, yarn, pnpm, bun, node) | none |
--env | Environment label: sets APP_ENV and picks cipi-<env>.yml | production |
After creation#
The summary shows the server IP for DNS, the deploy key, the database credentials with a mariadb+ssh:// URL for TablePlus or DBeaver, and the webhook URL and token. It is shown once.
The summary shows the database password, the deploy key, the webhook URL and token. It is shown once: copy it to your password manager now.
The deploy key must be added to the repository as a read-only deploy key. With a Git provider token saved (cipi git github-token …), Cipi did it already.
Create an A record for the domain pointing at the server's IP. Check with dig +short myapp.com.
cipi deploy myapp builds the first release: clone, Composer, migrations, swap. Then open http://myapp.com.
Once DNS points at the server, cipi ssl install myapp issues the certificate and switches APP_URL to https://.
With a Git provider token configured, the deploy key and the push webhook are added to the repository automatically. See Git providers & deploy keys.
In the web panel#
Create an app from the browser: the same wizard, with a server picker. The web panel is optional; everything here also works from the CLI.
Common problems#
| Problem | Fix |
|---|---|
--repository refused | Use the SSH form: git@github.com:you/app.git, not https:// |
| Name refused | Lowercase letters and numbers only, unique on the server |
--engine=pgsql refused | Install PostgreSQL first: cipi db install pgsql |
| Domain already used | Each hostname belongs to one app; remove it from the other app first |
Questions#
| Question | Answer |
|---|---|
| I lost the creation summary. | cipi app show myapp shows domain, deploy key and webhook; cipi db password myapp makes a new database password. |
| Laravel, custom or Node? | Laravel for Laravel apps, Node for front ends (Next, Nuxt, Vite…), custom for WordPress, plain PHP and static sites. |
| Can I change the PHP version later? | Yes: cipi app edit myapp --php=8.6, with zero downtime. |