CloudNexus CLI Reference
Command-line interface for managing your cloud infrastructure. Fast, intuitive, and fully scriptable.
Overview
The nx CLI provides a unified interface to interact with the CloudNexus platform. It supports resource provisioning, monitoring, billing queries, and infrastructure-as-code workflows.
nx help or nx --help for a quick overview of all available commands.Installation
Install the CLI via package managers or download the binary directly.
macOS (Homebrew)
npm / yarn
Linux (APT)
Authentication
Authenticate using API keys or OAuth tokens. Credentials are stored securely in your system keychain.
| Command | Description |
|---|---|
nx auth login | Interactive login via API key or OAuth |
nx auth use-profile <name> | Switch to an existing auth profile |
nx auth logout | Clear stored credentials |
Compute
Manage virtual machines, containers, and serverless functions.
nx compute create
Provision a new compute instance.
| Flag | Description | Default |
|---|---|---|
--region | Deployment region | us-east-1 |
--type | Instance flavor | c-standard-2 |
--image | OS image ID or slug | debian-11 |
--tags | Comma-separated tags | cli-provisioned |
nx compute list / scale / destroy
Network & DNS
Configure firewalls, load balancers, and DNS records.
nx network dns set
Create or update a DNS record.
nx network firewall allow
Object Storage
Manage S3-compatible buckets and files.
Global Flags
These flags can be used with any nx command.
| Flag | Type | Description |
|---|---|---|
--json | boolean | Output results in JSON format (machine-readable) |
--verbose | boolean | Enable debug logging |
--timeout | integer | Request timeout in seconds (default: 30) |
--no-prompt | boolean | Disable interactive prompts (for CI/CD) |
Environment Variables
Configure the CLI behavior without flags.
| Variable | Description |
|---|---|
NX_API_KEY | Authentication API key |
NX_REGION | Default deployment region |
NX_OUTPUT | Default output format (table, json, yaml) |
NX_CONFIG_DIR | Custom config directory path |