Command Line Interface

Dalang CLI

Manage your cloud infrastructure from the terminal. Fast, scriptable, and developer-friendly.

Linux / macOS / Termux:

curl -fsSL https://dalang.io/install.sh | bash

Windows (PowerShell):

irm https://dalang.io/install.ps1 | iex
~ dalang
$ dalang service list
Your Services (3 total)
───────────────────────────────────────────────────────────────────────────
TYPE       NAME                 STATUS       EXPIRES         DETAILS
───────────────────────────────────────────────────────────────────────────
vps        my-webapp            RUNNING      2026-09-15      2C/2048MB/20GB
vps        database-server      RUNNING      2026-10-01      4C/4096MB/50GB
container  n8n-automation       RUNNING                      n8n/starter
$ dalang shell my-webapp
my-webapp — Resource Usage
  Uptime: 12d 4h 37m
  CPU:    ░░░░░░░░░░░░░░░░░░░░ 3% (load 0.06, 0.02, 0.00 over 2 vCPU)
  Memory: ████░░░░░░░░░░░░░░░░ 21% (430 MB / 2.0 GB)
  Disk:   ██░░░░░░░░░░░░░░░░░░ 14% (2.8 GB / 20.0 GB)
→ Connecting to my-webapp (shell mode)...
✓ Connected.
root@my-webapp:~# █

Features

Shell & Exec

Interactive shell over a persistent session, or run one-off commands with exec. No SSH keys or firewall config needed.

JSON Output

Use --json flag for scriptable output. Perfect for automation.

Fast & Lightweight

Single binary ~6MB. No dependencies. Works offline after auth.

Cross Platform

Linux, macOS, Windows, and Android/Termux. Intel and ARM architectures supported.

File Transfer

Move files with scp-style syntax — multi-source, recursive (-r), with progress bars.

Secure Auth

OAuth device flow. Tokens stored with user-only permissions.

Command Reference

dalang auth Login to your Dalang account
dalang service list List all your services
dalang service create Create a new VPS
dalang service upgrade <name> Scale up CPU / RAM / storage
dalang shell <name> Interactive shell to a VM
dalang exec <name> "cmd" Run a command, return its output
dalang scp <src> <dst> Copy files to/from a VM (scp-style)
dalang price --cpu 2 --ram 2G Estimate monthly price
dalang credit add 100 Top up 100K IDR credits
dalang domain add <vps> <domain> Add a custom domain
dalang start/stop/delete <name> VM power management
dalang update Update the CLI to the latest version
Run dalang help for full list | Use --json for machine output
AUTONOMOUS AI READY

Built for AI Agents

Enable autonomous AI agents to provision infrastructure, self-replicate, and manage their own VMs. Perfect for AI systems like OpenClaw that need to spawn and control compute resources independently.

Self-replication
JSON output
No human needed

Downloads

PlatformArchitectureDownload
Linuxx86_64 (amd64)dalang-linux-amd64
LinuxARM64dalang-linux-arm64
LinuxARM 32-bit (armv7)dalang-linux-arm
macOSIntel (amd64)dalang-darwin-amd64
macOSApple Silicon (arm64)dalang-darwin-arm64
Windowsx86_64 (amd64)dalang-windows-amd64.exe
Android (Termux)ARM64 (64-bit)dalang-android-arm64
Android (Termux)ARM 32-bit (older phones)dalang-linux-arm

Quick Start

1

Install

# Linux/macOS
chmod +x dalang-* && sudo mv dalang-* /usr/local/bin/dalang
2

Authenticate

dalang auth
3

Use

dalang service list # List services
dalang shell my-vm # Connect to VM

Ready to get started?

Download the CLI and manage your cloud from the terminal.

常见问题

什么是 Dalang CLI?

Dalang CLI 是用于从终端管理受支持 Dalang 服务的跨平台命令行工具。它可创建和检查 VPS 服务、执行生命周期操作、打开 shell、远程执行命令、传输文件、估算价格、管理额度和域名,并为自动化返回 JSON。

如何安装 Dalang CLI?

Linux、macOS 或 Termux 用户可运行 CLI 页面所示安装命令;Windows 用户可使用 PowerShell 命令或下载发布二进制文件。安装后运行 dalang auth,再使用 dalang service list 或 dalang service create。

Dalang CLI 免费吗?

CLI 提供 Linux、macOS、Windows 以及 Android 或 Termux 版本,并包含 Intel 与 ARM 构建。网站没有列出单独的 CLI 费用;通过 CLI 使用的云资源或额度仍按正常标准计费。

AI 智能体可以使用 Dalang CLI 吗?

可以。CLI 提供机器可读的 JSON 输出和非交互式 -y 参数,因此经授权的自动化进程可在无提示情况下创建和检查服务。自我复制或自我修复逻辑仍需由客户自己的脚本或智能体实现并做好安全控制。