đ Getting Started
Welcome to CloudNexus. This guide will walk you through provisioning your first cloud infrastructure, configuring networking, and deploying an application in under 5 minutes.
đ Prerequisites
Before you begin, ensure you have the following ready:
- â CloudNexus account
- â Verified email & 2FA
- â Terminal / CLI access
- â SSH key pair (optional)
Overview
CloudNexus provides a unified control plane for compute, networking, storage, and security. You can manage resources via the web dashboard, REST API, or the official cnx-cli tool. This guide uses the CLI for speed and reproducibility.
1. Create & Verify Your Account
Sign up at dashboard.cloudnexus.io and complete email verification. Enable two-factor authentication for enhanced security and API access.
Once logged in, navigate to Settings â API Keys and generate a new personal access token with admin scope. Copy and store it securely.
2. Install & Configure CLI
The CloudNexus CLI abstracts complex API calls into simple commands. Install it via npm, Homebrew, or direct binary:
# macOS / Linux
curl -fsSL https://cli.cloudnexus.io/install.sh | sh
# macOS (Homebrew)
brew tap cloudnexus/cli && brew install cnx-cli
# Windows (PowerShell)
iwr -useb https://cli.cloudnexus.io/install.ps1 | iex
Initialize the CLI with your API token:
cnx-cli init --token YOUR_API_KEY --region us-east-1
3. Provision Your First Instance
Let's create a high-performance virtual machine optimized for developer workloads:
cnx-cli create instance \
--name my-first-server \
--type t3.medium \
--image ubuntu-22.04-lts \
--region us-east-1 \
--ssh-key ~/.ssh/id_ed25519.pub \
--auto-scaling false
The command returns a JSON payload with your instance ID, public IP, and initial SSH credentials. This typically completes in under 30 seconds thanks to our NVMe-backed provisioning pipeline.
4. Configure Networking & Security
By default, new instances have a firewall rule that only allows SSH (port 22). To expose a web application, create a security group rule:
cnx-cli create firewall-rule \
--instance-id i-8f3a2b1c \
--port 443 \
--protocol tcp \
--source 0.0.0.0/0 \
--description "Allow HTTPS traffic"
5. Connect & Deploy
SSH into your new instance using the provided public IP:
ssh -i ~/.ssh/id_ed25519 ubuntu@203.0.113.42
Once connected, pull your application code, install dependencies, and start your service. CloudNexus automatically handles IP routing and load balancing if you scale horizontally later.
git clone https://github.com/your-org/app.git
cd app
npm install
npm start
Visit https://203.0.113.42 in your browser. Your infrastructure is now live! đ
CLI Cheatsheet
Quick reference for common CloudNexus operations:
| Command | Description |
|---|---|
| cnx-cli instances list | View all running VMs & status |
| cnx-cli scale --count 3 | Horizontal auto-scaling trigger |
| cnx-cli backups create --auto | Schedule automated snapshots |
| cnx-cli logs stream --service api | Real-time log aggregation |
| cnx-cli destroy --force | Terminate resources & clean up |
Stuck or need help?
đŦ Join Community Discord