Prerequisites
Before you deploy, make sure you have the following:- Node.js and npm installed locally. Download them from the official Node.js website.
- A Virtus Cloud account — sign up at virtuscloud.app/login using your email or Discord.
- An active paid plan on your account. Browse plans at virtuscloud.app/plans.
Create your config file
Every Virtus Cloud deployment requires avirtuscloud.app configuration file at the root of your project. Create this file and populate it with your application’s settings.
Config File Reference
Learn every available parameter — MAIN, MEMORY, VERSION, DISPLAY_NAME, SUBDOMAIN, START, and more.
virtuscloud.app
Startup behavior
Virtus Cloud determines how to start your application based on whether theSTART field is set in your config file.
- JavaScript
- TypeScript
If
START is not set, Virtus Cloud runs node with performance optimizations and the file specified in MAIN.If START is set, the platform executes the START command directly, bypassing the default behavior.Using a custom start command
If your project does not include a
node_modules folder, Virtus Cloud automatically runs npm install --no-package-lock --no-audit --no-fund and clears the .npm cache before starting your application.Required files
Your ZIP archive must include these three files:| File | Purpose |
|---|---|
virtuscloud.app or virtuscloud.config | Platform configuration |
index.js / index.ts (or your MAIN file) | Application entry point |
package.json | Dependency manifest |
Files to exclude from your upload
Remove these files and folders before creating your ZIP:| File / Folder | Reason to exclude |
|---|---|
node_modules/ | Virtus Cloud installs dependencies fresh from package.json, ensuring a clean, reproducible build. |
package-lock.json | Not used by the production installer. Removing it also reduces upload size. |
Upload your project
Once your files are ready, package them into a.zip archive and upload using your preferred method.
- CLI upload
- Dashboard upload
Install the CLI
If you do not have the Virtus Cloud CLI installed, run the appropriate command for your system:To update an existing installation:
Authenticate
Retrieve your API key from virtuscloud.app/account by clicking Request API Key, then run:
Troubleshooting
The main file is invalid or corrupted
The main file is invalid or corrupted
This error appears when the file path in your
MAIN parameter does not match an actual file in your project. Double-check that the filename and path are correct. If your entry point is inside a subfolder, use the relative path — for example, MAIN=src/index.js.Bad Memory
Bad Memory
The minimum RAM for a bot is 256 MB and for a website or API is 512 MB. If your application is crashing due to memory pressure, increase the
MEMORY value in your config file. See the LACK_OF_RAM troubleshooting guide for more details.Module not found errors
Module not found errors
If your application logs show
Cannot find module errors, a dependency is missing from your package.json. Add it under dependencies (not devDependencies) and re-upload your project. See the MODULE_NOT_FOUND guide for further help.