Language SDKs

🐍
Stable
Python SDK
Full-featured Python client for managing compute, storage, networking, and monitoring resources.
pip install cloudnexus-sdk
Stable
Node.js SDK
Promises-based JavaScript/TypeScript client with auto-complete and typed responses.
npm install @cloudnexus/sdk
🐹
Stable
Go SDK
Native Go client optimized for high-concurrency infrastructure orchestration.
go get github.com/cloudnexus/go-sdk
Stable
Java SDK
Enterprise-ready Java client with Maven/Gradle support and reactive streams.
mvn install com.cloudnexus:java-sdk
💎
Beta
Ruby Gem
Idiomatic Ruby interface for CloudNexus resources with Rails integration.
gem install cloudnexus-ruby
🦀
Beta
Rust Crate
Zero-cost abstractions with async/await support and serde integration.
cargo add cloudnexus-sdk

CloudNexus CLI

Manage your entire infrastructure from the terminal. Authenticate, provision resources, and run commands securely.

⚙️

Auto-Complete & Context

Shell-aware autocomplete and project context switching for faster workflows.

🔐

Secure Authentication

Supports OIDC, SSH keys, and temporary credentials with automatic rotation.

📦

Plugin Ecosystem

Extend functionality with community plugins for Terraform, K8s, and CI/CD.

cloudnexus-cli v3.2.1
$ cnx auth login
✓ Authenticated as dev@example.com
$ cnx compute create --name web-prod --plan pro-8 --region us-east-1
Provisioning instance...
✓ Instance created (id: i-8x92k1)
IP: 192.168.44.12
Status: Running
$ cnx logs follow web-prod
Waiting for logs...
[INFO] Application started on port 8080
[INFO] Health check passed
curl -fsSL https://cli.cloudnexus.io/install.sh | sh

Code Examples

Deploy a VPS Instance

import cloudnexus

client = cloudnexus.Client(api_key="YOUR_KEY")

# Create a new compute instance
instance = client.compute.create(
    name="app-server",
    plan="pro-8",
    region="us-east-1",
    image="ubuntu-22.04",
    tags={"env": "production"}
)

print(f"Deployed: {instance.ip}")
print(f"Status: {instance.status}")

Deploy a VPS Instance

const { Client } = require('@cloudnexus/sdk');

const client = new Client({ apiKey: process.env.CNX_KEY });

async function deploy() {
  const instance = await client.compute.create({
    name: 'app-server',
    plan: 'pro-8',
    region: 'us-east-1',
    image: 'ubuntu-22.04',
    tags: { env: 'production' }
  });

  console.log(`Deployed: ${instance.ip}`);
}

deploy();

Deploy a VPS Instance

package main

import (
    "fmt"
    "github.com/cloudnexus/go-sdk"
)

func main() {
    client := cnx.NewClient(cnx.WithAPIKey(os.Getenv("CNX_KEY")))

    instance, err := client.Compute.Create(&cnx.InstanceInput{
        Name:   "app-server",
        Plan:   "pro-8",
        Region: "us-east-1",
        Image:  "ubuntu-22.04",
        Tags:   map[string]string{"env": "production"},
    })
    if err != nil {
        panic(err)
    }

    fmt.Printf("Deployed: %s\n", instance.IP)
}

Deploy a VPS Instance

# Authenticate first
$ cnx auth login

# Create instance with one command
$ cnx compute create \
    --name app-server \
    --plan pro-8 \
    --region us-east-1 \
    --image ubuntu-22.04 \
    --tag env=production

# Output:
# ✓ Instance created (id: i-8x92k1)
#   IP: 192.168.44.12
#   Status: Running

Community & Resources

📖

API Documentation

Complete reference for REST endpoints, webhooks, and authentication flows.

Browse Docs →
💻

GitHub Repositories

Source code, issues, feature requests, and contribution guidelines.

View Repos →
💬

Developer Discord

Real-time support, architecture advice, and community showcases.

Join Server →
🔄

Changelog

Track SDK updates, deprecations, and new feature releases.

View Updates →