Getting Started
Deploy scalable cloud infrastructure in minutes. This guide walks you through installing the CloudNexus CLI, authenticating your account, and launching your first production-ready instance.
Prerequisites
- Active CloudNexus account (Sign up free)
- API Key with
adminordeploypermissions - macOS, Linux, or Windows (WSL2) environment
- Node.js 18+ or Go 1.20+ (if using SDKs)
Generate your API key in the Dashboard → Settings → API Keys. Store it securely using environment variables or a secrets manager. Never commit keys to version control.
Step 1: Install the CloudNexus CLI
The official CLI provides fast provisioning, monitoring, and configuration management directly from your terminal.
curl -fsSL https://cli.cloudnexus.io/install.sh | bash
iwr -useb https://cli.cloudnexus.io/install.ps1 | iex
Verify the installation:
cnx version
# Output: CloudNexus CLI v2.4.1 (build 892a4c)
Step 2: Authenticate
Initialize the CLI with your API key. The configuration is stored securely in ~/.cloudnexus/config.yaml.
cnx auth login
# Paste your API key when prompted
# ✅ Successfully authenticated as: dev-team@cloudnexus.io
You can also authenticate headlessly for CI/CD pipelines by exporting CNX_API_KEY before running commands.
Step 3: Deploy Your First Instance
Create a production-ready VPS with a single command. CloudNexus automatically provisions networking, storage, and firewall rules.
cnx instance create \
--name web-server-01 \
--region us-east-1 \
--type pro-4 \
--image ubuntu-22.04 \
--ssh-key my-key
Output:
⠋ Provisioning instance...
✅ Instance 'web-server-01' created successfully
ID: inst_9x82k4m2
IP: 104.28.14.22
Status: booting (ready in ~30s)
Step 4: Verify & Monitor
Connect to your instance and verify metrics are flowing to the CloudNexus dashboard.
# Connect via SSH
cnx ssh web-server-01
# View real-time metrics locally
cnx monitor stream --instance web-server-01
# Open dashboard
cnx dashboard open --region us-east-1
By default, SSH (port 22) and HTTP/HTTPS (80/443) are open. Use cnx firewall create to restrict access to specific IPs for production workloads.
Next Steps
You're up and running! Continue with these recommended guides:
- Configure Load Balancers - Distribute traffic across multiple instances
- Setup Automated Backups - Schedule snapshots and cross-region replication
- Connect Managed Databases - Provision PostgreSQL or Redis clusters