Skip to content

Deploy and promote Vite apps and edge workers on Cargo, with deployment, env var, and domain management.

CCM score
70 of 100
skills.sh installs
11.8K
GitHub stars
27
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers scaffolding, creating, deploying, promoting, and removing hosted apps and serverless workers via the cargo-ai hosting CLI
  • Includes Vite SPA apps on *.app.getcargo.run and edge HTTP handlers with OpenAPI docs at /openapi.json and /docs
  • Enforces that a deployment is not live until promoted, with status polling before each promote step
  • Designed for teams that need a shareable URL for a dashboard, webhook endpoint, or internal UI without committed workspace code

Install

$ npx -y skills add getcargohq/cargo-skills --skill cargo-hosting -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Cargo CLI — Hosting

Cargo Hosting runs two kinds of workspace-scoped resources, plus the deployments that ship them:

  • App — a static front end (a Vite single-page app by default; Astro, Gatsby, Create React App, Parcel and Webpack are detected too, and Next.js, SvelteKit or Nuxt work through their own build script, see App builds) served on its own subdomain (see URLs). The templates are built on @cargo-ai/app-sdk (Vite + refine + shadcn primitives, with getCargoEnv() / useCargoApi() wired to the workspace).
  • Worker — a serverless HTTP handler that runs on the edge (fetch(request, env)), built on @cargo-ai/worker-sdk (auto OpenAPI 3.1 spec at /openapi.json, Swagger UI at /docs).
  • Deployment — one build+upload of a local source directory to an app or worker. A deployment is not live until it's promoted.

For organizing apps/workers into folders, use cargo-workspace-management (folder …). The --folder-uuid flags here consume those folder UUIDs.

Details

Repository
github.com/getcargohq/cargo-skills
Categories
DevOps & Cloud, Frontend & UI Code
First seen
Jul 14, 2026

Questions

What does the cargo-hosting skill do?

The cargo-hosting skill builds, deploys and manages Cargo Hosting apps and workers with the Cargo CLI. It covers Vite single-page apps served on cargo.app subdomains and serverless edge HTTP handlers, plus the deployments that ship and promote them.

How do I install the cargo-hosting skill?

Run npx -y skills add getcargohq/cargo-skills --skill cargo-hosting -y in your project. Once installed, the agent can scaffold, deploy, promote and manage a hosted app or worker on Cargo.

What do I need before using cargo-hosting?

The skill requires the @cargo-ai/cli npm package and a Cargo account. You sign in with cargo-ai login --email using an emailed code, with --oauth, or with an API token.

How do I get a live URL for a hosted app with cargo-hosting?

Create the app slot with a name and slug, then deploy a local source directory and promote the deployment. A deployment is not live until it is promoted, and the URL comes from the create or get response.

More from getcargohq/cargo-skills

All 12

Similar to Cargo Hosting

More DevOps & Cloud