Ovhcloud Cli
☀ Official Command Line Interface to manage your OVHcloud services ☁
#OVHcloud official CLI
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).
#Table of Contents
- Installation
- Usage
- Interactive browser (TUI)
- Available products
- Generate Shell Completion
- Contributing
- Related links
#Installation
#Installation command
To install the OVHcloud CLI, you can use the following command:
curl -fsSL https://raw.githubusercontent.com/ovh/ovhcloud-cli/main/install.sh | sh
#Binary download
- Download latest release
- Untar / unzip the archive
- Add the containing folder to your
PATHenvironment variable
#Run with Docker
You can also run the CLI using Docker:
docker run -it --rm -v ovhcloud-cli-config-files:/config ovhcom/ovhcloud-cli login
#Install using Homebrew
brew install --cask ovh/tap/ovhcloud-cli
#Install from the source
Requires Go to be installed on your system.
go install github.com/ovh/ovhcloud-cli/cmd/ovhcloud@latest
#Usage
$ ovhcloud [command] {subcommands} {parameters/flags}
Checkout the full documentation.
Available commands:
account Manage your account alldom Retrieve information and manage your AllDom services baremetal Retrieve information and manage your Bare Metal services browser Launch a TUI for the OVHcloud Manager - Public Cloud universe only [EXPERIMENTAL] cdn-dedicated Retrieve information and manage your dedicated CDN services cloud Manage your projects and services in the Public Cloud universe (MKS, MPR, MRS, Object Storage...) completion Generate the autocompletion script for the specified shell config Manage your CLI configuration dedicated-ceph Retrieve information and manage your Dedicated Ceph services dedicated-cloud Retrieve information and manage your DedicatedCloud services dedicated-cluster Retrieve information and manage your DedicatedCluster services dedicated-nasha Retrieve information and manage your Dedicated NasHA services domain-name Retrieve information and manage your domain names domain-zone Retrieve information and manage your domain zones email-domain Retrieve information and manage your Email Domain services email-mxplan Retrieve information and manage your Email MXPlan services email-pro Retrieve information and manage your EmailPro services help Help about any command hosting-private-database Retrieve information and manage your HostingPrivateDatabase services iam Manage IAM resources, permissions and policies ip Retrieve information and manage your IP services iploadbalancing Retrieve information and manage your IP LoadBalancing services ldp Retrieve information and manage your LDP (Logs Data Platform) services location Retrieve information and manage your Location services login Login to your OVHcloud account to create API credentials nutanix Retrieve information and manage your Nutanix services okms Retrieve information and manage your OKMS services overthebox Retrieve information and manage your OverTheBox services ovhcloudconnect Retrieve information and manage your OVHcloud Connect services pack-xdsl Retrieve information and manage your PackXDSL services sms Retrieve information and manage your SMS services ssl Retrieve information and manage your SSL services ssl-gateway Retrieve information and manage your SSL Gateway services storage-netapp Retrieve information and manage your Storage NetApp services support-tickets Retrieve information and manage your support tickets telephony Retrieve information and manage your Telephony services veeamcloudconnect Retrieve information and manage your VeeamCloudConnect services veeamenterprise Retrieve information and manage your VeeamEnterprise services version Get OVHcloud CLI version vmwareclouddirector-backup Retrieve information and manage your VMware Cloud Director Backup services vmwareclouddirector-organization Retrieve information and manage your VMware Cloud Director Organizations vps Retrieve information and manage your VPS services vrack Retrieve information and manage your vRack services vrackservices Retrieve information and manage your vRackServices services webhosting Retrieve information and manage your WebHosting services xdsl Retrieve information and manage your XDSL services
Global options:
-d, --debug Activate debug mode (will log all HTTP requests details) -h, --help help for ovhcloud -e, --ignore-errors Ignore errors in API calls when it is not fatal to the execution -o, --output Output in JSON, YAML, interactive or custom format (expression using gval format)
#Authenticating the CLI
OVHcloud CLI requires authentication to be able to make API calls. There are several ways to define your credentials.
Check out the authentication page for further information about the configuration and the authentication means.
You can also manage multiple OVHcloud accounts using profiles. Profiles let you store credentials for several accounts in a single configuration file and switch between them with ovhcloud config profile switch <name> or the --profile flag.
- Interactive login:
# Log in and create API credentials (interactive)
ovhcloud login
- Using a configuration file:
Default settings can be set using a configuration file named .ovh.conf and located in your ${HOME} directory.
Example of configuration file:
[default] endpoint = ovh-eu [ovh-eu] client_id = <OAuth 2.0 client ID> client_secret = <OAuth 2.0 client secret> [ovh-cli] default_cloud_project = <public cloud project ID>
- Using environment variables:
OVH_ENDPOINT=ovh-eu OVH_APPLICATION_KEY=xxx OVH_APPLICATION_SECRET=xxx OVH_CONSUMER_KEY=xxx OVH_CLOUD_PROJECT_SERVICE=<public cloud project ID>
- Using a custom endpoint that requires extra HTTP headers (e.g. an internal routing header), see the
authentication page for
ovhcloud config set-header.
#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> -o json |
| Reinstall a baremetal interactively | ovhcloud baremetal reinstall <id> --editor |
| List instances and filter on GRA9 region | ovhcloud cloud instance list --filter 'region=="GRA9"' |
| Get only the ID of a given MKS node pool | NP_ID=$(ovhcloud cloud managed-kubernetes nodepool list xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx --filter 'name=="my-np-autoscale"' -o 'id' | xargs) |
#Interactive browser (TUI)
⚠️ Experimental feature — this navigation is experimental and may contain bugs. Please report any issue at https://github.com/ovh/ovhcloud-cli/issues.
Prefer a visual, keyboard-driven interface over typing commands? Launch the built-in Terminal User Interface that mirrors the OVHcloud Manager — Public Cloud universe only:
ovhcloud browser
It makes direct API calls to display your real data, and lets you navigate your Public Cloud services (instances, Kubernetes, managed databases, analytics, storage, networks...) without leaving your terminal.
Navigate using:
↑/↓: move through menus and tables←/→: switch tabsEnter: select an item or view detailsEsc: go backd: toggle the debug panel (show API requests and request IDs)q: quit
Guided flows let you create resources step by step:
...and rich views expose live data such as managed database metrics:
#Available products
| Category | Command | Covered |
|---|---|---|
| Backup | veeamcloudconnect | Partially |
| veeamenterprise | Partially | |
| Communication | sms | Partially |
| telephony | Partially | |
| Compute / Dedicated / VPS | baremetal | Yes |
| vps | Yes | |
| Connectivity | pack-xdsl | Partially |
| xdsl | Partially | |
| Domains / DNS | alldom | Partially |
| domain-name | Partially | |
| domain-zone | Partially | |
| email-domain | Partially | |
| email-mxplan | Partially | |
| email-pro | Partially | |
| Hybrid Cloud | nutanix | Partially |
| Hosting | webhosting | Partially |
| hosting-private-database | Partially | |
| Identity / Account / Access | account | Partially |
| iam | Yes | |
| login | Partially | |
| Infra Meta | location | Partially |
| Network | ip | Partially |
| ip firewall | Yes | |
| overthebox | Partially | |
| vrack | Partially | |
| vrackservices | Partially | |
| Network / Acceleration | cdn-dedicated | Partially |
| Network / Connectivity | ovhcloudconnect | Partially |
| Network / Load Balancing | iploadbalancing | Partially |
| Observability | ldp | Partially |
| Private Cloud | dedicated-cloud | Partially |
| dedicated-cluster | Partially | |
| Public Cloud / Access | cloud ssh-key | Yes |
| Public Cloud / Compute | cloud instance | Yes |
| Public Cloud / Container Registry | cloud managed-registry | Yes |
| Public Cloud / Containers | cloud managed-kubernetes | Yes |
| Public Cloud / Orchestration | cloud managed-rancher | Yes |
| Public Cloud / Databases | cloud database-service | Yes |
| Public Cloud / Governance | cloud quota | Yes |
| Public Cloud / Meta | cloud reference | Yes |
| cloud region | Yes | |
| Public Cloud / Network | cloud loadbalancer | Yes |
| cloud network | Yes | |
| Public Cloud / Object Storage | cloud storage object | Yes |
| cloud storage-swift | Yes | |
| Public Cloud / Ops | cloud operation | Yes |
| Public Cloud / Project | cloud project | Yes |
| Public Cloud / Storage | cloud storage block | Yes |
| Public Cloud / Identity | cloud user | Yes |
| Security | ssl | Partially |
| okms | Partially | |
| Security / Edge | ssl-gateway | Partially |
| Storage | dedicated-ceph | Partially |
| dedicated-nasha | Partially | |
| storage-netapp | Partially | |
| Support | support-tickets | Partially |
| VMware | vmwareclouddirector-organization | Partially |
| vmwareclouddirector-backup | Partially | |
| --------------------------------------- | --------------------------------- | ------------ |
#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.
#Contributing
You've developed a new cool feature? Fixed an annoying bug? We'd be happy to hear from you, there are no small contributions!
Have a look in CONTRIBUTING.md
#Build
# Build the OVHcloud cli make all # Cross-compile for other targets in ./dist make release-snapshot # Optionally, you can compile a WASM binary make wasm
#Run the tests
make test
#Our awesome contributors
#Related links
- Report bugs: https://github.com/ovh/ovhcloud-cli/issues
- Get latest version: https://github.com/ovh/ovhcloud-cli/releases/latest