This guide walks you through the complete deployment workflow: initializing a project, deploying it, and checking that everything is running. By the end you’ll have a live app managed by Compartment.Documentation Index
Fetch the complete documentation index at: https://docs.compartment.dev/llms.txt
Use this file to discover all available pages before exploring further.
You must be logged in before running any of these commands. If you haven’t authenticated yet, run
compartment login and follow the prompts.Initialize your project
Navigate to your repository root and run Pass This minimal descriptor tells Compartment to deploy one service named
init to create a compartment.yml descriptor:--name a lowercase, hyphen-separated slug that uniquely identifies your project. If you omit the flag in an interactive terminal, the CLI will prompt you with a suggested name derived from the current directory.The command creates compartment.yml at the repository root:web from the repository root. The service name, build path, and additional options can all be expanded — run compartment descriptor schema to see the full schema.Deploy your app
From the same directory, run:Compartment reads To target a specific environment other than the default
compartment.yml, builds your service, runs readiness checks, and promotes the new build to live traffic. The CLI streams progress as the deployment moves through each stage.If you have multiple projects and want to be explicit, pass --project:production, use --env:Check deployment status
Once the deploy command completes, confirm the project is live:The output shows each service, its current promotion stage, health status, and the URL where it is reachable. A healthy deployment reports
active as the promotion stage.Next steps
- Add a second service or configure routing — see Multi-service apps.
- Learn how the build-to-active promotion lifecycle works — see Promote and rollback.
- Expand your
compartment.ymlwith build commands, environment variables, and readiness checks — see Configuration reference.