OVHcloud official CLI

May 7, 2026 · View on GitHub

License GitHub release (latest by date) Homebrew Release Date Download Count Discord

Packaging status

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

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

  1. Download latest release
  2. Untar / unzip the archive
  3. Add the containing folder to your PATH environment 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
  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> 

Examples

TaskCommand
Log in and save credentialsovhcloud login
List VPS instances (tabular)ovhcloud vps list
Fetch details of a single VPS in JSONovhcloud vps get <service_id> -o json
Reinstall a baremetal interactivelyovhcloud baremetal reinstall <id> --editor
List instances and filter on GRA9 regionovhcloud cloud instance list --filter 'region=="GRA9"'
Get only the ID of a given MKS node poolNP_ID=$(ovhcloud cloud managed-kubernetes nodepool list xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx --filter 'name=="my-np-autoscale"' -o 'id' | xargs)

Available products

CategoryCommandCovered
BackupveeamcloudconnectPartially
veeamenterprisePartially
CommunicationsmsPartially
telephonyPartially
Compute / Dedicated / VPSbaremetalYes
vpsYes
Connectivitypack-xdslPartially
xdslPartially
Domains / DNSalldomPartially
domain-namePartially
domain-zonePartially
Emailemail-domainPartially
email-mxplanPartially
email-proPartially
Hybrid CloudnutanixPartially
HostingwebhostingPartially
hosting-private-databasePartially
Identity / Account / AccessaccountPartially
iamYes
loginPartially
Infra MetalocationPartially
NetworkipPartially
ip firewallYes
overtheboxPartially
vrackPartially
vrackservicesPartially
Network / Accelerationcdn-dedicatedPartially
Network / ConnectivityovhcloudconnectPartially
Network / Load BalancingiploadbalancingPartially
ObservabilityldpPartially
Private Clouddedicated-cloudPartially
dedicated-clusterPartially
Public Cloud / Accesscloud ssh-keyYes
Public Cloud / Computecloud instanceYes
Public Cloud / Container Registrycloud managed-registryYes
Public Cloud / Containerscloud managed-kubernetesYes
Public Cloud / Orchestrationcloud managed-rancherYes
Public Cloud / Databasescloud database-serviceYes
Public Cloud / Governancecloud quotaYes
Public Cloud / Metacloud referenceYes
cloud regionYes
Public Cloud / Networkcloud loadbalancerYes
cloud networkYes
Public Cloud / Object Storagecloud storage objectYes
cloud storage-swiftYes
Public Cloud / Opscloud operationYes
Public Cloud / Projectcloud projectYes
Public Cloud / Storagecloud storage blockYes
Public Cloud / Identitycloud userYes
SecuritysslPartially
okmsPartially
Security / Edgessl-gatewayPartially
Storagededicated-cephPartially
dedicated-nashaPartially
storage-netappPartially
Supportsupport-ticketsPartially
VMwarevmwareclouddirector-organizationPartially
vmwareclouddirector-backupPartially
------------------------------------------------------------------------------------

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