# Vultr CLI
> Manage Vultr cloud infrastructure from the command line

## Summary
Official Vultr CLI for managing cloud instances, Kubernetes clusters, databases, object storage, DNS, and networking from the terminal.

## Capabilities
- Create and manage cloud compute instances
- Manage Vultr Kubernetes Engine (VKE) clusters
- Provision managed databases (MySQL, PostgreSQL, Redis)
- Manage DNS domains and records
- Handle snapshots, backups, and ISO management
- Manage object storage and block storage

## When to Use
- Managing Vultr cloud resources from the terminal
- Scripting Vultr infrastructure provisioning
- Need quick instance creation and management without the web UI
- Automating Vultr operations in deployment scripts

## When NOT to Use
- Not using Vultr as your cloud provider
- Need multi-cloud management across providers
- Want infrastructure as code with state management (use Pulumi or Terraform)

## Key Flags
- `instance create`: Create a new compute instance
- `instance list`: List all compute instances
- `kubernetes create`: Create a Vultr Kubernetes cluster
- `database create`: Create a managed database
- `dns domain create`: Create a DNS domain

## Usage Patterns
### Create a compute instance
```
vultr-cli instance create --region ewr --plan vc2-1c-1gb --os 387 --label my-server
```
Creates a 1 vCPU/1GB instance in New Jersey with Ubuntu

### List all instances
```
vultr-cli instance list
```
Shows all active compute instances with their details

### Create a Kubernetes cluster
```
vultr-cli kubernetes create --region ewr --label my-cluster --version v1.29 --node-pools 'quantity:2,plan:vc2-2c-4gb,label:workers'
```
Creates a Kubernetes cluster with a 2-node worker pool

## Input / Output
- **stdin**: Minimal stdin usage; parameters passed as flags
- **stdout**: Resource listings and operation results in table format
- **stderr**: Error messages and API errors

## Installation
- **homebrew**: `brew install vultr-cli`

## Related Tools
- [hcloud](/tools/hcloud) (alternative): Hetzner Cloud CLI manages a competing cloud provider
- [linode-cli](/tools/linode-cli) (alternative): Linode CLI manages Akamai/Linode cloud as an alternative provider
- [kubectl](/tools/kubectl) (complementary): kubectl manages workloads on Kubernetes clusters provisioned by Vultr

---
Source: https://littlescripts.sh/tools/vultr-cli
