CLI
Learn how to host your applications quickly and easily using one of our CLIs.
The Discloud CLI allows you to deploy and manage your applications directly from the command line, providing a fast and efficient way to interact with your app.
🔑 Windows Execution Policy (Only for Windows Users)
🛠️ What is Execution Policy?
The Execution Policy protects your system by limiting the execution of unsigned scripts. The RemoteSigned mode allows local scripts to run without signatures but requires a signature for scripts downloaded from the internet.
❓ How to Enable Script Execution
Open PowerShell as Administrator.
Run the following command.
Set-ExecutionPolicy RemoteSigned -Scope CurrentUser
Confirm the change by typing Y
and pressing Enter.
Restart PowerShell and try running Discloud CLI commands again.
🔧 Installing the Discloud CLI
Prerequisite.
Ensure you have NodeJS installed on your system.
Install the CLI.
npm install -g discloud.app
Reopen the terminal to apply the changes.
Login.
To access CLI functionalities, you need to log in with your Discloud credentials. Run the following command and paste your Discloud API Token:
discloud --login
Official CLI Repository
The NodeJS CLI is an open-source project. You can contribute, report bugs, and suggest improvements in the official repository.
🚀 Deploying Your Application
Once installed and configured, you can deploy your application in just a few steps.
Preparing your project.
Ensure your project contains all required files:
discloud.config
(configuration file).Necessary dependencies for your programming language (e.g.,
package.json
for Node.js,requirements.txt
for Python).
Check the Languages Guide to make sure your project is properly structured.
📌 Tips & Tricks
✨ Using discloud init
to Auto-Generate Configuration
discloud init
to Auto-Generate ConfigurationInstead of manually creating the discloud.config
file, you can generate it automatically using:
discloud init
This command prompts you to enter basic configuration details (e.g., name, main file, RAM, etc).
It then generates the
discloud.config
file for you, making deployment easier.
📂 Using .discloudignore
to Exclude Files
.discloudignore
to Exclude FilesIf you want to exclude certain files or directories from being uploaded, you can create a .discloudignore
file in the root of your project.
❓ Still need help?
Check the FAQ Section or join our Discord Server for support.
Last updated