For the complete documentation index, see llms.txt. This page is also available as Markdown.

Usage Examples

Examples and use cases for the discloud.app NPM library, covering application management, monitoring, team operations, and more.

Important: To obtain your API Token required in the examples below, see here.

Setup Required: Make sure you've completed the Getting Started guide before using these examples.


👤 User Management

📄 Fetching User Information

const { discloud } = require("discloud.app");

try {
  const user = await discloud.user.fetch();

  console.log("User information:", user);
} catch (error) {
  console.error("Failed to fetch user:", error.message);
}

📱 Application Management

🚀 Uploading a New Application

Before uploading: Ensure your ZIP file contains the discloud.config file and follows the preparation guidelines for your language.

🔄 Updating (Committing) an Application

📱 Fetching Application Information

🗑️ Deleting Applications


⚡ Application Control

🟢 Starting Applications

🔴 Stopping Applications

🔄 Restarting Applications


📊 Monitoring & Diagnostics

📈 Checking Application Status

📋 Viewing Application Logs

💻 Sending Terminal Commands

💾 Backup Operations

📦 Creating Backups


👥 Team Management

👨‍💼 Managing Application Moderators


⚙️ System Management

🔧 Managing RAM Allocation

RAM Requirements

🎨 Updating Application Profile

Profile Update Details

  • name: Optional. New name for your application (maximum 30 characters).

  • avatarURL: Optional. URL of the new avatar image. Supported formats: GIF, JPG, JPEG, PNG.

📦 APT Package Management

📥 Installing APT Packages

🗑️ Uninstalling APT Packages

Last updated