Quick Start Guide
Contents
Install & Configure CLI
CloudNexus CLI is the fastest way to manage your infrastructure. Install it globally via npm or download the binary for your OS.
- Node.js 18+ or Python 3.9+
- CloudNexus account (free tier available)
- API key with
admin:deploypermissions
Terminal# Install globally via npm npm install -g @cloudnexus/cli # Authenticate with your API key cnx auth login --key your_api_key_here
Verify the installation by checking your profile and available regions:
Terminalcnx whoami cnx regions list
Create Your First Project
Projects isolate your resources, budgets, and access policies. Initialize a new project in your working directory:
Terminalcnx init --project my-app-prod --region us-east-1 # This generates: # ├── cnx.yaml # Infrastructure config # ├── .cnxignore # Files to exclude # └── scripts/ # Deployment hooks
Use --region auto to let CloudNexus route your workloads to the lowest-latency edge based on your user base.
Deploy a Compute Instance
Define your first server in cnx.yaml. CloudNexus supports Docker images, raw OS templates, and pre-built frameworks.
cnx.yamlcompute: instances: - name: web-server image: nginx:latest plan: standard-2vcpu port_mappings: - 80:80 - 443:443 auto_backup: true region: us-east-1
Apply the configuration to provision your instance:
Terminalcnx deploy # Waiting for provisioning... # ✓ Instance web-server created (ID: i-8f2a9b1c) # ✓ IP assigned: 203.0.113.45 # ✓ Health check passed
Configure Networking & Security
Lock down your instance with firewall rules and attach a global CDN for content delivery:
cnx.yaml (Networking)networking: firewall: - name: web-traffic ingress: - port: 80 protocol: tcp source: 0.0.0.0/0 - port: 443 protocol: tcp source: 0.0.0.0/0 cdn: enabled: true cache_policy: aggressive ssl: auto-redirect
Apply the network configuration:
Terminalcnx network apply
Monitor & Scale
CloudNexus provides built-in observability. View real-time metrics and set up auto-scaling policies:
Terminal# View live metrics cnx monitor web-server --metrics cpu,memory,network # Set auto-scaling rules cnx scaling set --instance web-server \\ --min 1 --max 10 \\ --cpu-threshold 75 \\ --cooldown 120s
- Explore Managed Databases for PostgreSQL/Redis
- Configure CI/CD Integration with GitHub Actions
- Read the API Reference for programmatic control