Quickstart Guide

Deploy your first application on CloudNexus in under 5 minutes. This guide walks you through installing the CLI, setting up your account, and running your first deployment.

Last updated: December 15, 2025 ยท ~5 min read

0 Overview

CloudNexus provides a complete cloud infrastructure platform with global reach, enterprise-grade security, and developer-friendly tooling. In this quickstart, you'll learn how to:

  • Install the CloudNexus CLI on your machine
  • Authenticate your account with API keys
  • Create a project and configure it for your app
  • Deploy a sample application to a live server
  • Set up monitoring and access your deployment dashboard
๐Ÿ’ก
Tip

Already familiar with the CLI? Skip ahead to deploying your app or check out the configuration reference.

0 Prerequisites

Before getting started, make sure you have the following:

  • A CloudNexus account (sign up for free to get $200 in credits)
  • Node.js 18+ or Python 3.9+ installed locally
  • A terminal or command-line interface
  • Git installed for version control workflows
  • Basic familiarity with command-line operations
โ„น๏ธ
Platform Support

The CloudNexus CLI is available for macOS (Intel & Apple Silicon), Linux (x86_64, ARM64), and Windows (via WSL2 recommended). See the supported platforms page for details.

1 Install the CloudNexus CLI

The CloudNexus CLI (cnx) is your primary interface for managing projects, deploying applications, and monitoring infrastructure.

Install via Package Manager

npm
$ npm install -g @cloudnexus/cli
brew
$ brew tap cloudnexus/tap
$ brew install cnx
apt
$ curl -fsSL https://apt.cloudnexus.com/key.gpg | sudo gpg --dearmor -o /usr/share/keyrings/cloudnexus-archive-keyring.gpg
$ echo "deb [signed-by=/usr/share/keyrings/cloudnexus-archive-keyring.gpg] https://apt.cloudnexus.com stable main" | sudo tee /etc/apt/sources.list.d/cloudnexus.list
$ sudo apt update && sudo apt install cnx
curl
$ curl -fsSL https://get.cloudnexus.com/install | bash

Verify Installation

bash
$ cnx --version
cnx v3.2.1 (CloudNexus CLI)
https://cloudnexus.com/docs/cli

2 Authenticate Your Account

Log in to your CloudNexus account using your API key. You can generate one from the CloudNexus Dashboard โ†’ API Keys.

bash
$ cnx auth login
Enter your API key (from dashboard):  cnx_โ€ขโ€ขโ€ขโ€ขโ€ขโ€ขโ€ขโ€ขโ€ขโ€ขโ€ขโ€ขโ€ขโ€ขโ€ขโ€ข
โœ“ Authenticated as: alex@example.com
โœ“ Default region: us-east-1

Environment Variable Authentication

For CI/CD pipelines, set your API key as an environment variable instead:

bash
export CNX_API_KEY="cnx_live_abc123def456..."
export CNX_DEFAULT_REGION="us-east-1"

# Verify authentication
$ cnx auth whoami
โœ“ alex@example.com (Team: acme-corp)
โš ๏ธ
Security Warning

Never commit your API keys to version control. Use .env files or secret management tools. Add .env to your .gitignore.

Key Types

Key Prefix Description Use Case
cnx_live_... Production API key Live deployments, production infrastructure
cnx_test_... Staging API key Testing, staging environments
cnx_dev_... Development key Local development, sandbox

3 Create Your First Project

Projects are the top-level organization unit in CloudNexus. Each project can contain multiple deployments, services, and databases.

Interactive Project Creation

bash
$ cnx project create
? Project name: myapp
? Region: us-east-1 (Virginia)
? Team: acme-corp
? Plan: free

โœ“ Project created: myapp
Project ID: proj_8x7k2m4n9p
Dashboard: https://dashboard.cloudnexus.com/proj_8x7k2m4n9p
DNS: myapp.cloudnexus.app

Using the CLI Non-Interactively

bash
$ cnx project create --name "myapp" --region us-east-1 --json
{"id": "proj_8x7k2m4n9p", "name": "myapp", "region": "us-east-1"}

4 Configure Your Application

Create a cnx.config.js file in your project root. This file tells CloudNexus how to build and deploy your application.

cnx.config.js
export default {
  name: "myapp",
  project: "proj_8x7k2m4n9p",
  region: "us-east-1",
  framework: "node",
  build: {
    command: "npm run build",
    output: "./dist",
    nodeVersion: "18",
  },
  deploy: {
    instances: 2,
    cpu: "1",
    memory: "2Gi",
    port: 3000,
    autoScale: {
      min: 2,
      max: 10,
      targetCPU: 70,
    },
  },
  env: {
    NODE_ENV: "production",
    DATABASE_URL: { secret: "cnx_db_url" },
  },
  healthcheck: {
    path: "/health",
    interval: "30s",
  },
};
cnx.config.py
from cnx_sdk import Config, Deployment, Scaling

config = Config(
    name="myapp",
    framework="python",
    python_version="3.11",
    build="pip install -r requirements.txt",
    start="gunicorn app:app --bind 0.0.0.0:8000",
)

deploy = Deployment(
    instances=2,
    cpu="1",
    memory="2Gi",
    scaling=Scaling(min=2, max=10),
)
cnx.config.js
export default {
  name: "myapp",
  project: "proj_8x7k2m4n9p",
  builder: "docker",
  dockerfile: "./Dockerfile",
  deploy: {
    instances: 3,
    cpu: "2",
    memory: "4Gi",
  },
  healthcheck: {
    command: "curl -f http://localhost:8080/health || exit 1",
  },
};

Configuration Reference

Field Type Default Description
name string โ€” Display name for your application
region string us-east-1 Deployment region (50+ available)
instances number 1 Number of running instances
cpu string "0.5" CPU allocation per instance
memory string "1Gi" RAM allocation per instance
port number 8080 Internal app listening port
โ„น๏ธ
Environment Variables

Use cnx env set to manage secrets and environment variables. Secrets are encrypted at rest and injected at runtime โ€” they never appear in your config file.

5 Deploy Your Application

With your configuration in place, deploy with a single command. CloudNexus handles building, containerizing, and provisioning infrastructure automatically.

bash
$ cnx deploy
โ ‹ Reading configuration...
โ ‹ Building project (Node.js 18)...
โ ‹ Installing dependencies...
โ ‹ Running build command: npm run build
โ ‹ Optimizing assets...
โœ“ Build completed in 12.4s

โ ‹ Pushing image to cnx-registry.us-east-1...
โœ“ Image pushed (sha256:a3f8...c912)

โ ‹ Provisioning 2 instances...
โ ‹ Running health checks...
โœ“ Instance 1: healthy (23ms)
โœ“ Instance 2: healthy (19ms)

โœ“ Deployed successfully!
URL: https://myapp.cloudnexus.app
Region: us-east-1
Deploy: #42 โ€” abc1234
Duration: 18.7s
Dashboard: https://dashboard.cloudnexus.com/proj_8x7k2m4n9p/deployments/42

Deploy Options

  1. Standard deploy โ€” cnx deploy pushes the latest code and builds from source.
  2. Preview deploy โ€” cnx deploy --preview creates an isolated environment linked to your PR/branch for review.
  3. Canary deploy โ€” cnx deploy --canary 20% routes 20% of traffic to the new version for gradual rollout.
  4. Rollback โ€” cnx deploy --rollback quickly reverts to the previous stable deployment.
๐Ÿ’ก
Zero-Downtime Deploys

All deployments use rolling updates by default. CloudNexus starts new instances, runs health checks, then gracefully drains old ones โ€” your users never see downtime.

6 Monitor Your Application

Once deployed, CloudNexus provides real-time monitoring, logs, and performance metrics out of the box.

View Live Logs

bash
$ cnx logs --follow
[instance-1] 2025-12-15 14:32:01 INFO  Server started on port 3000
[instance-1] 2025-12-15 14:32:05 INFO Connected to database
[instance-2] 2025-12-15 14:32:06 INFO Server started on port 3000
[instance-1] 2025-12-15 14:33:12 GET /api/users 200 23ms
[instance-2] 2025-12-15 14:33:15 GET /api/products 200 18ms
[instance-1] 2025-12-15 14:33:22 POST /api/orders 201 142ms

Check Resource Usage

bash
$ cnx status
โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚ myapp โ€” proj_8x7k2m4n9p โ”‚
โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค
โ”‚ Status: โ— Online โ”‚
โ”‚ Region: us-east-1 โ”‚
โ”‚ Instances: 2/2 healthy โ”‚
โ”‚ CPU: 34% avg (1-58% range) โ”‚
โ”‚ Memory: 1.2Gi / 2Gi (62%) โ”‚
โ”‚ Requests: 1,247/min avg โ”‚
โ”‚ Latency: p50=12ms p99=89ms โ”‚
โ”‚ Uptime: 14d 6h 23m โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

Scaling Commands

bash
# Scale to 5 instances manually
$ cnx scale --instances 5

# Enable auto-scaling based on CPU
$ cnx autoscale enable --min 2 --max 20 --target-cpu 65

# View auto-scaling metrics
$ cnx autoscale status
โœ“ Auto-scaling: enabled
Current: 3 instances | Min: 2 | Max: 20
Avg CPU: 42% (scaling down in 5 min)
๐Ÿšจ
Production Readiness

Before going live, enable monitoring alerts (email, Slack, PagerDuty) and configure automated backups. See the production checklist for a full guide.

Next Steps

Congratulations! ๐ŸŽ‰ You've deployed your first application on CloudNexus. Here are some recommended next steps:

  1. Set up a custom domain โ€” Bind a custom domain with automatic SSL provisioning.
  2. Connect a managed database โ€” Deploy PostgreSQL or MySQL with one command.
  3. Configure CI/CD โ€” Integrate with GitHub Actions or GitLab CI for automated deployments.
  4. Explore Kubernetes โ€” Deploy containerized workloads with managed Kubernetes clusters.