deploy
Original:🇺🇸 English
Translated
Deploys and manages services on GuaraCloud — creating projects and services, triggering deployments, rollbacks, scaling, custom domains, and environment variables. Use when the user wants to deploy an app, manage services, configure domains, set env vars, or scale.
6installs
Sourceguaracloud/agent-skills
Added on
NPX Install
npx skill4agent add guaracloud/agent-skills deployTags
Translated version includes tags in frontmatterSKILL.md Content
View Translation Comparison →Deploying on GuaraCloud
Build Methods
| Method | When to use | What happens |
|---|---|---|
| Project has a Dockerfile | Builds using the Dockerfile in the repo |
| No Dockerfile, or prefer auto-detection | Heroku-style buildpacks detect language and build automatically |
For monorepos, use , , and to specify the subdirectory and custom commands.
--root-dir--build-cmd--start-cmdCreate a Project
bash
guara projects create --name my-appCreate a Service
bash
# With Dockerfile
guara services create --name api --build-method dockerfile --repo https://github.com/user/repo --port 3000
# With buildpack
guara services create --name api --build-method buildpack --repo https://github.com/user/repo --port 8080
# Monorepo (buildpack)
guara services create --name web --build-method buildpack \
--repo https://github.com/user/monorepo \
--root-dir ./apps/web \
--build-cmd "pnpm --filter web build" \
--start-cmd "pnpm --filter web start" \
--port 3000
# Interactive (no flags)
guara services createCreating a service does NOT trigger a build. Deploy separately after creation.
Requires: GitHub App installed. If not installed, the CLI will prompt with a link.
Deploy
bash
guara deploy # Deploy default branch
guara deploy --branch develop # Deploy specific branch
guara deploy --commit abc123f # Deploy specific commitThe CLI polls deployment status and shows a spinner. Terminal statuses:
- healthy — deployment succeeded, service is live
- failed — build or deploy error occurred
- rolled_back — deployment was replaced by a rollback
- superseded — a newer deployment replaced this one
Rollback
bash
guara rollback # Interactive: pick from healthy deployments
guara rollback --deployment <id> # Direct rollback to specific deploymentOnly deployments with status and a valid image are available for rollback.
healthyService Lifecycle
bash
guara services stop # Scale to zero replicas
guara services start # Restore to configured replicas
guara services restart # Rolling restart (zero downtime)
guara services delete # Permanent deletionAutoscaling
bash
guara scale --autoscaling on # Enable autoscaling
guara scale --autoscaling off # Disable, use fixed replicasCustom Domains
bash
# Add domain
guara domains add --domain api.myapp.com
# The CLI returns a CNAME target. User must add this DNS record:
# api.myapp.com CNAME <cname-target>
# Verify status
guara domains list
# Remove
guara domains remove --domain api.myapp.comDomain status progresses: → once DNS propagates and verification succeeds.
pendingactiveEnvironment Variables
bash
guara env set DATABASE_URL=postgres://...
guara env set KEY1=val1 KEY2=val2
guara env list
guara env unset KEYImportant: Setting or unsetting env vars triggers a rolling restart of the service.
To make a variable available during Docker builds (as a build arg):
bash
guara env set NPM_TOKEN=xxx --buildDeployment Status Check
After deploying, verify the service is healthy:
bash
guara services infoCheck deployment history:
bash
guara deployments listFor step-by-step deployment scenarios, see references/workflows.md.
For tier limits and pricing, see guaracloud.com/docs.