What is the configuration file?
The configuration file is a file that contains your application’s parameters, such as the main file, memory, version and other settings. This file is used to configure and deploy your application on the Square Cloud platform.squarecloud.app
Creating the configuration file
Creating the configuration file is very simple: just create a file namedsquarecloud.app
or squarecloud.config
and add the configuration parameters inside it.
1
Choose extension
The configuration file can have two extensions: .app or .config. You can use
squarecloud.app
or squarecloud.config
, whichever you prefer. Tip: use .app to help promote Square Cloud. 🥰😂
On macOS, we recommend using the .config extension.
Note: .app or .config refers to the file extension, not the file name.
2
Create file
Create a file with the selected extension and add the configuration parameters inside it.
Configuration parameters
Below you can see all the configuration parameters available for your configuration file.Parameter | Type | Editable | Limit | Usage |
---|---|---|---|---|
MAIN* | String | ❌ | 32 chars | Defines the main application file. Ex.: index.js , main.py , etc. |
VERSION* | String | ❌ | - | Language version (Ex.: recommended ). |
MEMORY* | Integer | ✅ | - | Amount of memory in megabytes. |
DISPLAY_NAME* | String | ✅ | 32 chars | Display name of the application. |
DESCRIPTION | String | ✅ | 280 chars | Description/metadata of the application. |
AUTORESTART | Boolean | ✅ | - | Auto-restart (true or false ). |
START | String | ✅ | 256 chars | Custom start command. |
SUBDOMAIN | String | ✅ | 63 chars | Website subdomain (if applicable). |
Editable parameters (✅) can be modified in the dashboard after deployment. Non-editable (❌) parameters require a full reupload of the application to make changes.
Detailing the configuration parameters
Below you can see the configuration parameters you can use in your configuration file.MAIN [*]
Type: String | Editable: ❌ | Limit: 32 charsDefines the main application file.
This setting is IGNORED if you use the START parameter.
MEMORY [*]
Type: Integer | Editable: ✅ | Limit: Minimum 256MB (bot), 512MB (site)Defines the amount of memory your application will use.
The value must be specified in megabytes (MB).
VERSION [*]
Type: String | Editable: ❌ | Values: Defines the language version for your application.
recommended
, latest
or specific version
We recommend using
recommended
for optimal stability.Language | recommended | latest |
---|---|---|
JavaScript [Node.js] | 22.18.0 | 24.5.0 |
Python | 3.13.6 | 3.13.6 |
Java | JDK 23 | JDK 25 |
Elixir | 1.18.4 | 1.18.4 |
Rust | 1.89.0 | 1.89.0 |
PHP | 8.4.11 | 8.4.11 |
Go | 1.24.6 | 1.24.6 |
C# | 9.0.1 | 9.0.1 |
DISPLAY_NAME [*]
Type: String | Editable: ✅ | Limit: 32 charsDefines the display name of your application.
DESCRIPTION
Type: String | Editable: ✅ | Limit: 280 charsDefines the description of your application.
AUTORESTART
Type: Boolean | Editable: ✅ | Values:
true
, false
| Default: false
Defines whether the application should automatically restart on failure.SUBDOMAIN
Type: String | Editable: ✅ | Limit: 63 chars | Default:
undefined
Defines the subdomain for your site (web applications only).The final URL will be:
mysite.squareweb.app
START
Type: String | Editable: ✅ | Limit: 256 chars | Default:
undefined
Defines a custom start command.This parameter overrides the default MAIN behavior.
Configuration examples for bots
Here are some examples of configuration for bots:Configuration examples for sites
Here are some examples of configuration for websites:The site URL will be:
mysite.squareweb.app
next.config.js
as MAIN is only used to let the system recognize the project as a JavaScript or TypeScript project (another .ts/.tsx file)