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 1What 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.
| Rule | Behavior |
|---|---|
| Always excluded | node_modules, .git, .env files, .modvc, .DS_Store, dist, .cache, coverage, package-lock.json |
| Additional patterns | .gitignore entries and modvc.json.ignore entries |
| Symbolic links | Skipped 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--runtimeselects a runtime identifier.--buildand--startoverride the corresponding commands.--envincludes the configured environment file; when no path is supplied, the CLI uses its configured default or.env.--yesskips 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.