Usage Examples
Examples and use cases for the discloud.app NPM library, covering application management, monitoring, team operations, and more.
👤 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
🔄 Updating (Committing) an Application
📱 Fetching Application Information
🗑️ Deleting Applications
Warning: Deleting an application is permanent and cannot be undone. Make sure to backup your data before deletion.
⚡ 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
Bot applications: minimum 100MB
Website applications: minimum 512MB
Check your plan limits before increasing RAM
🎨 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