appcrane_create_app
Register a new app in AppCrane from a GitHub repository. Allocates ports, creates data directories, configures Caddy routing, and starts health checks. Use after user confirms onboarding.
Instructions
Register a new app in AppCrane from a GitHub repository. Use this only after the user has explicitly confirmed they want to onboard a new app and provided a real github URL. Allocates ports, creates the data directories, configures Caddy routing, and starts health checks. After this returns, call appcrane_set_secret to set any required secrets, then appcrane_deploy to ship the first build. Requires the create-apps permission (global admins, or any role a platform admin granted at Settings → Roles).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Display name (shown in dashboard) | |
| slug | Yes | URL-safe identifier — lowercase letters, digits, dashes; must start with a letter or digit. Lives at /<slug>/. | |
| branch | No | Branch to track. Default: main | main |
| domain | No | Optional custom domain. If omitted, the app lives under CRANE_DOMAIN/<slug>/. | |
| github_url | Yes | GitHub repo URL, e.g. https://github.com/me/mysite | |
| max_ram_mb | No | Per-container memory cap. Default: 512. | |
| description | No | ||
| github_token | No | GitHub PAT for private repos. Stored encrypted; only used to clone. | |
| max_cpu_percent | No | Per-container CPU cap. Default: 50. |