Before you begin
Square Cloud is a paid platform: an active plan is required to deploy, so your project runs on production-grade infrastructure from day one. Create your account, then select the plan that’s right for you (see what each plan includes).Sign Up
Log in
Create the project
Create a folder with these three files.Write the app
index.js answers every request with a short message. It reads the port and host from the PORT and HOST environment variables, which Square Cloud sets to 80 and 0.0.0.0:List the dependencies
package.json: Square Cloud installs the packages it lists before starting your app. This example has none, but the file must exist and can’t be empty.Add the configuration file
squarecloud.app tells Square Cloud which file to run, how much memory to reserve and which runtime version to use. SUBDOMAIN publishes the app as a website at https://<subdomain>.squareweb.app, so pick a name nobody has taken yet.Zip the project
Deploying with the CLI? Skip this section:squarecloud upload zips the folder for you.
Select the files, not the folder
squarecloud.app must sit at the top level of the zip: if you compress the folder itself, the files end up inside a subfolder and the deploy fails with MISSING_CONFIG.Create the zip
- Windows
- macOS
- Linux
Check the size
node_modules, virtual environments and build caches: dependencies are installed on the server, and those folders are deleted on deploy anyway.Deploy
Upload the zip in the dashboard, or deploy with one command from the CLI.Via dashboard
Access the Upload Page
Configure Your Environment
If you are uploading a web project, make sure to select “Web Publication” and set a subdomain to your project.
Deploy Your Project
After deployment, you can monitor your project’s status and logs from the dashboard.

Confirm Your App Is Live
If you deployed a website or API, open
https://<your-subdomain>.squareweb.app in your browser: you should see your application responding. If you deployed a bot, send it a command to confirm it is online.
Via CLI
To use this method, your project needs a configuration file namedsquarecloud.app at its root. It tells Square Cloud how to run your application.
Configuration file guide
squarecloud.app configuration file that defines your application’s environment.Install the CLI
Log In
Upload Your Project
squarecloud.ignore lists, and uploads it:--file:Confirm Your App Is Live
https://<your-subdomain>.squareweb.app in your browser: you should see your application responding. If you deployed a bot, send it a command to confirm it is online.
https://hello-square-yourname.squareweb.app (with your subdomain) answers Hello from Square Cloud!.
Next steps
Configuration file
squarecloud.app field: memory, start command, subdomain and automatic restarts.
