Skip to content

varitykit app deploy command

Varity Team Core Contributors Updated June 2026

Deploy your application to Varity’s secure infrastructure.

Terminal window
varitykit app deploy [OPTIONS]

Deploy static websites and single-page applications:

Terminal window
varitykit app deploy

Best for:

  • Marketing websites
  • Documentation sites
  • Single-page applications
  • Landing pages

Features:

  • Global CDN distribution
  • Permanent deployment URLs
  • Automatic SSL
  • First 3 static sites free, then $1/month per site, for verified accounts; 1 GB of pinned assets

Deploy full-stack applications with compute resources:

Terminal window
varitykit app deploy --hosting dynamic

Best for:

  • APIs and backends
  • Server-side rendering
  • Database applications
  • Full-stack apps

Features:

  • Container hosting
  • Persistent storage
  • Up to a fixed monthly maximum per app, prorated by running time. An unchanged profile does not cost more as traffic grows
OptionDefaultDescription
--hostingautoHosting type: auto, static, or dynamic
--path.Project directory
--nameNoneCustom app name. Static apps live at https://varity.app/<name>/; dynamic apps live at https://<name>.varity.app/
--modeautoDeployment mode (advanced)
--targetNoneDeployment target
--tierNoneHardware tier to reserve: free, starter, growth, enterprise, or scale
--repo-urlNoneGitHub repo URL to build from. Auto-detected from .git/config; required for source deploys, since nothing is uploaded from your machine
--templateNoneDeploy a certified template by id (varitykit app templates). Mutually exclusive with --repo-url and --image
--env KEY=VALUENoneSet an environment variable on the deployment (repeatable)
--serviceNoneAttach an auto-wired service: postgres, redis, ollama, mongodb, mysql, or minio (repeatable)
--volume-size / --volume-pathNonePersistent volume in GB and its absolute mount path (both required together)
--command / --arg / --health-pathNoneAdvanced runtime overrides for image and Dockerfile deploys
--dockerfile-path / --docker-context-pathNoneAdvanced build overrides for repo deploys
--memory-mb / --cpu-units / --storage-mbNoneAdvanced reserved-resource overrides for image and prebuilt deploys
--skip-buildfalseSkip the build step (deploy prebuilt output)
--imageNoneDeploy a prebuilt OCI image instead of building from source
--image-registryNoneRegistry host for a private --image
--image-usernameNoneUsername for a private --image
--image-passwordNonePassword or secret value for a private --image
--port80Port your dynamic app listens on
--dry-runfalsePreview the deployment without shipping (not compatible with --image)
  1. Push your project to GitHub

    Varity builds from the repository in the cloud, so the code you want live must be pushed.

  2. Deploy from the checkout

    Terminal window
    varitykit app deploy

    Outside a Git checkout, pass --repo-url https://github.com/you/my-app, --image <ref>, or --template <id>.

  3. View your live app

    ✓ Build complete
    ✓ Deployed successfully
    ✓ Registered on Varity
    Your app is live at:
    https://varity.app/your-app/
    Deployment ID: deploy-1737492000

The CLI automatically detects your framework:

FrameworkDetectionBuild Command
Next.jsnext.config.*npm run build
React (Vite)vite.config.*npm run build
React (CRA)react-scriptsnpm run build
Vuevue.config.*npm run build
Custompackage.jsonnpm run build

Storage and service credentials are auto-provided by Varity. No manual credential setup is required. See Managed Credentials.

View all deployments:

Terminal window
varitykit app list

Output:

Name | Type | URL | Deployed
-----------|---------|------------------------------|-----------------
your-app | static | https://varity.app/your-app/ | 2026-09-06 12:00
my-api | dynamic | https://my-api.varity.app/ | 2026-09-05 18:30

Pass the global --json flag (varitykit --json app list) for machine-readable output.

Get detailed information about a specific deployment:

Terminal window
varitykit app info your-app

Remove a deployment:

Terminal window
varitykit app delete my-app --yes
  1. Verify your build works locally:

    Terminal window
    npm run build
  2. Check for missing dependencies:

    Terminal window
    npm install
  1. Verify network connectivity:

    Terminal window
    varitykit doctor
  2. Check your internet connection and try again

Advanced: Deployment Manifest

After deployment, a manifest file is created:

.varity/deploy-1737492000.json
{
"deployment_id": "deploy-1737492000",
"timestamp": "2026-01-28T12:00:00Z",
"hosting": "static",
"url": "https://varity.app/your-app/"
}