v2.4.1 Stable Release

Install CloudNexus Agent

Deploy the CloudNexus CLI and infrastructure agent to manage clusters, automate scaling, and monitor deployments from your terminal.

📋 Prerequisites

Ensure your environment meets the minimum requirements before proceeding.

Linux / macOS

glibc 2.28+ or macOS 12+

Windows

Windows 10/11 or WSL2

Network

Outbound access to api.cloudnexus.io:443

Permissions

Root/Admin privileges for system integration

🚀 Installation

Select your operating system or deployment method below.

Debian / Ubuntu (apt)

# Add CloudNexus repository
curl -fsSL https://repo.cloudnexus.io/gpg.key | sudo gpg --dearmor -o /usr/share/keyrings/cloudnexus.gpg
echo "deb [signed-by=/usr/share/keyrings/cloudnexus.gpg] https://repo.cloudnexus.io/apt stable main" | sudo tee /etc/apt/sources.list.d/cloudnexus.list

# Install the agent
sudo apt update
sudo apt install -y cloudnexus-agent

RHEL / CentOS / Fedora (yum/dnf)

sudo rpm --import https://repo.cloudnexus.io/gpg.key
sudo tee /etc/yum.repos.d/cloudnexus.repo <<-'EOF'
[cloudnexus]
name=CloudNexus Official Repository
baseurl=https://repo.cloudnexus.io/yum
enabled=1
gpgcheck=1
gpgkey=https://repo.cloudnexus.io/gpg.key
EOF

sudo dnf install -y cloudnexus-agent

Using Homebrew (Recommended)

brew tap cloudnexus/tap
brew install cloudnexus-agent

Manual Binary

curl -L https://dl.cloudnexus.io/cli/latest/cloudnexus-darwin-arm64.tar.gz -o cnx.tar.gz
tar -xzf cnx.tar.gz
sudo mv cloudnexus-agent /usr/local/bin/
sudo chmod +x /usr/local/bin/cloudnexus-agent

Using Winget or Scoop

# Winget
winget install CloudNexus.Agent

# Scoop
scoop bucket add cloudnexus https://github.com/cloudnexus/scoop-bucket.git
scoop install cloudnexus-agent

Manual MSI Installer

# Download and run
https://dl.cloudnexus.io/cli/latest/cloudnexus-agent-x64.msi

Run as a Docker Container

docker run -d \
  --name cloudnexus-agent \
  --restart unless-stopped \
  -e CNX_API_KEY="$CNX_API_KEY" \
  -e CNX_CLUSTER_ID="$CNX_CLUSTER_ID" \
  -v /var/run/docker.sock:/var/run/docker.sock \
  cloudnexus/agent:latest

Helm Chart Installation

helm repo add cloudnexus https://charts.cloudnexus.io
helm repo update

helm install cnx-agent cloudnexus/cloudnexus-agent \
  --namespace cloudnexus-system --create-namespace \
  --set apiKey="$CNX_API_KEY" \
  --set clusterId="$CNX_CLUSTER_ID"

✅ Verify Installation

Run the following command to confirm the agent is running and connected:

$ cnx-agent status
CloudNexus Agent v2.4.1
Cluster: us-east-1-production
Status: Connected & Syncing...
Last heartbeat: 2s ago

If you see Connected & Syncing..., your installation is successful.

⚡ Quick Start

  1. 1
    Authenticate

    Log in with your account token:

    cnx auth login --token $CNX_API_KEY
  2. 2
    Initialize Project

    Scaffold a new deployment configuration:

    cnx init my-app --template node-express
  3. 3
    Deploy

    Push your infrastructure to CloudNexus:

    cd my-app && cnx deploy --region us-east-1

🔧 Troubleshooting

Connection timeout to api.cloudnexus.io

Ensure outbound port 443 is open. If behind a proxy, set HTTP_PROXY and HTTPS_PROXY environment variables before running the installer.

Permission denied on Linux

Run installation commands with sudo or ensure your user is in the docker and cnx-agent groups.

Agent stuck in "Syncing" state

Restart the service: sudo systemctl restart cnx-agent. Verify cluster ID matches your dashboard.

Unsupported architecture

CloudNexus supports amd64 and arm64. For other architectures, compile from source or use the Docker container.