Sign in
On this page

Deploy a project

Package and deploy a project with the modcloud CLI.

Deploy from a project directory

Run the command from the directory you want to package. The optional slot argument selects the target; without one, the CLI checks --app,modvc.json, the saved project link, then defaults to slot 1.

Code
modvc deploy 1

What goes into the archive

The CLI builds a ZIP from regular files in the current directory. It applies the default exclusions below, then adds patterns from .gitignore andmodvc.json.ignore.

RuleBehavior
Always excludednode_modules, .git, .env files, .modvc, .DS_Store, dist, .cache, coverage, package-lock.json
Additional patterns.gitignore entries and modvc.json.ignore entries
Symbolic linksSkipped by the CLI ZIP collector

Deployment options

Code
modvc deploy 1 --runtime node
modvc deploy 1 --build "npm run build" --start "node dist/index.js"
modvc deploy 1 --env
  • --runtime selects a runtime identifier.
  • --build and --start override the corresponding commands.
  • --env includes the configured environment file; when no path is supplied, the CLI uses its configured default or .env.
  • --yes skips confirmation prompts.

Archive and upload limits

The CLI ZIP writer rejects more than 65,535 files and files or archive structures that exceed standard ZIP size fields. The API deployment upload is limited to 300 MB.