8.2 KiB
OVHcloud CLI (ovhcloud) Documentation
Overview
ovhcloud is a single, unified command‑line interface for managing the full range of OVHcloud products and account resources directly from your terminal. Whether you need to automate provisioning, perform quick look‑ups, or integrate OVHcloud operations into CI/CD pipelines, ovhcloud offers fine‑grained commands and consistent output formats (table, JSON, YAML, or custom gval expressions).
Quick Start
# Display the top‑level help
ovhcloud --help
# Log in and create API credentials (interactive)
ovhcloud login
# List your VPS instances as JSON
ohvcloud vps list --json
Check out the authentication page for further information about the authentication means.
Generate Shell Completion
# Bash
eval "$(./ovhcloud completion bash)"
# Zsh
eval "$(./ovhcloud completion zsh)"
# Fish
./ovhcloud completion fish | source
# PowerShell
./ovhcloud completion powershell | Out-String | Invoke-Expression
Add the appropriate line to your shell’s startup file (~/.bashrc, ~/.zshrc, etc.) to enable persistent autocompletion.
Global Usage
ovhcloud [command] [flags]
Global Flags
| Flag | Description |
|---|---|
--debug |
Activate debug mode (logs all HTTP‑request details). |
--ignore-errors |
Ignore errors of API calls made when listing items. |
--format <expr> |
Format output with a gval expression. |
--filter <expr> |
Filter lists output with a gval expression. |
-h, --help |
Display help for ovhcloud or a specific command. |
--interactive |
Produce interactive (prompt‑based) output. |
--json |
Output data in JSON format. |
--yaml |
Output data in YAML format. |
Filtering examples
- Strict string equality:
--filter 'name=="something"' - String regexp comparison:
--filter 'name=~"something"' - Number comparison:
--filter 'bootId > 1'
Formatting example
- Extract only one field:
--format 'ip' - Extract an object:
--format '{name: ip}'
Command Reference
Below is the full list of primary sub‑commands available at the time of writing. Each can be explored in depth with ovhcloud <command> --help.
- ovhcloud account - Manage your account
- ovhcloud alldom - Retrieve information and manage your AllDom services
- ovhcloud baremetal - Retrieve information and manage your Bare Metal services
- ovhcloud cdn-dedicated - Retrieve information and manage your dedicated CDN services
- ovhcloud cloud - Manage your projects and services in the Public Cloud universe (MKS, MPR, MRS, Object Storage...)
- ovhcloud config - Manage your CLI configuration
- ovhcloud dedicated-ceph - Retrieve information and manage your Dedicated Ceph services
- ovhcloud dedicated-cloud - Retrieve information and manage your DedicatedCloud services
- ovhcloud dedicated-cluster - Retrieve information and manage your DedicatedCluster services
- ovhcloud dedicated-nasha - Retrieve information and manage your Dedicated NasHA services
- ovhcloud domain-name - Retrieve information and manage your domain names
- ovhcloud domain-zone - Retrieve information and manage your domain zones
- ovhcloud email-domain - Retrieve information and manage your Email Domain services
- ovhcloud email-mxplan - Retrieve information and manage your Email MXPlan services
- ovhcloud email-pro - Retrieve information and manage your EmailPro services
- ovhcloud hosting-private-database - Retrieve information and manage your HostingPrivateDatabase services
- ovhcloud iam - Manage IAM resources, permissions and policies
- ovhcloud ip - Retrieve information and manage your IP services
- ovhcloud iploadbalancing - Retrieve information and manage your IP LoadBalancing services
- ovhcloud ldp - Retrieve information and manage your LDP (Logs Data Platform) services
- ovhcloud location - Retrieve information and manage your Location services
- ovhcloud login - Login to your OVHcloud account to create API credentials
- ovhcloud nutanix - Retrieve information and manage your Nutanix services
- ovhcloud okms - Retrieve information and manage your OKMS (Key Management Services)
- ovhcloud overthebox - Retrieve information and manage your OverTheBox services
- ovhcloud ovhcloudconnect - Retrieve information and manage your OVHcloud Connect services
- ovhcloud pack-xdsl - Retrieve information and manage your PackXDSL services
- ovhcloud sms - Retrieve information and manage your SMS services
- ovhcloud ssl - Retrieve information and manage your SSL services
- ovhcloud ssl-gateway - Retrieve information and manage your SSL Gateway services
- ovhcloud storage-netapp - Retrieve information and manage your Storage NetApp services
- ovhcloud support-tickets - Retrieve information and manage your support tickets
- ovhcloud telephony - Retrieve information and manage your Telephony services
- ovhcloud veeamcloudconnect - Retrieve information and manage your VeeamCloudConnect services
- ovhcloud veeamenterprise - Retrieve information and manage your VeeamEnterprise services
- ovhcloud version - Get OVHcloud CLI version
- ovhcloud vmwareclouddirector-backup - Retrieve information and manage your VMware Cloud Director Backup services
- ovhcloud vmwareclouddirector-organization - Retrieve information and manage your VMware Cloud Director Organizations
- ovhcloud vps - Retrieve information and manage your VPS services
- ovhcloud vrack - Retrieve information and manage your vRack services
- ovhcloud vrackservices - Retrieve information and manage your vRackServices services
- ovhcloud webhosting - Retrieve information and manage your WebHosting services
- ovhcloud xdsl - Retrieve information and manage your XDSL services
Tip Use
--json,--yaml, or--formatwith a gval expression to integrateovhcloudinto scripts and automation pipelines.
Examples
| Task | Command |
|---|---|
| Log in and save credentials | ovhcloud login |
| List VPS instances (tabular) | ovhcloud vps list |
| Fetch details of a single VPS in JSON | ovhcloud vps get <service_id> --json |
| Reinstall a baremetal interactively | ovhcloud baremetal reinstall <id> --editor |
Troubleshooting
- Verbose output — Use
--debugto inspect raw API calls and responses. - Authentication issues — Run
ovhcloud loginagain to regenerate valid API keys. - Rate limits — OVHcloud APIs impose rate limits; plan retries or exponential backoff in scripts.
Further Reading
- OVHcloud API reference: https://eu.api.ovh.com/console
- OVHcloud community guides and tutorials.