Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
d2de4c3
fix(service-info): send only the renewal settings the operator asked …
Denis-hamon Aug 18, 2026
d44f8a2
refactor(service-info): register the renewal flags from the command l…
Denis-hamon Aug 19, 2026
313b504
feat(backup-services): the Veeam backup surface, reached from the mac…
Denis-hamon Aug 20, 2026
6ac1f38
feat(backup-services): list every agent, and say what the product costs
Denis-hamon Aug 20, 2026
29b3345
test(backup-services): stop using a real server address as a fixture
Denis-hamon Aug 20, 2026
a91829e
chore: no account data as test fixtures
Denis-hamon Aug 20, 2026
e2f969a
chore: bring in the parent branch of the stack
Denis-hamon Aug 20, 2026
fc83be3
chore: no account data as test fixtures (case variants)
Denis-hamon Aug 20, 2026
3e007ad
chore: bring in the parent branch of the stack
Denis-hamon Aug 20, 2026
ba9a3ec
chore: bring in the parent branch of the stack
Denis-hamon Aug 20, 2026
f038b2a
chore: bring in the parent branch of the stack
Denis-hamon Aug 20, 2026
06e7d79
fix(backup-services): --filter was accepted, documented, and ignored
Denis-hamon Aug 20, 2026
81d1054
chore: bring in the parent branch of the stack
Denis-hamon Aug 20, 2026
b6463f6
chore: bring in the parent branch of the stack
Denis-hamon Aug 20, 2026
8a50dc5
chore: bring in the parent branch of the stack
Denis-hamon Aug 20, 2026
b1c8646
chore: bring in the parent branch of the stack
Denis-hamon Aug 20, 2026
b7ec146
fix(baremetal): backup-agent refused with a flag it did not accept
Denis-hamon Aug 21, 2026
1ffeadf
chore: bring in the parent branch of the stack
Denis-hamon Aug 21, 2026
96b9034
chore: bring in the parent branch of the stack
Denis-hamon Aug 21, 2026
da0184e
chore: bring in the parent branch of the stack
Denis-hamon Aug 21, 2026
db0d674
fix(backup-services): three ways the backup surface reported success …
Denis-hamon Aug 21, 2026
b4840ca
chore: bring in the parent branch of the stack
Denis-hamon Aug 21, 2026
67206e8
chore: bring in the parent branch of the stack
Denis-hamon Aug 21, 2026
4747319
chore: bring in the service-info flag registration from #243
Denis-hamon Aug 23, 2026
1a1bda3
fix(dry-run): stop printing the payload twice
Denis-hamon Aug 24, 2026
c421ef4
test: move the dry-run log tests to their own file
Denis-hamon Aug 24, 2026
7cc7c6e
Merge remote-tracking branch 'origin/feat/baremetal-confirm-reinstall…
Denis-hamon Aug 24, 2026
9d575b9
chore(doc): regenerate after bringing in the parent branch
Denis-hamon Aug 24, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
126 changes: 24 additions & 102 deletions doc/ovhcloud.md
Original file line number Diff line number Diff line change
@@ -1,90 +1,37 @@
# OVHcloud CLI (`ovhcloud`) Documentation
## ovhcloud

---
CLI to manage your OVHcloud services

## Overview
### Options

`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

```bash
# 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 -o json
```

Check out the [authentication page](authentication.md) for further information about the authentication means.

You can manage multiple OVHcloud accounts using [profiles](profiles.md). Create a profile with `ovhcloud login --profile <name>`, switch between them with `ovhcloud config profile switch <name>`, or use `--profile <name>` on any command.

### Generate Shell Completion

```bash
# 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

```text
ovhcloud [command] [flags]
-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 string Output format: json, yaml, interactive, or a custom format expression (using https://github.com/PaesslerAG/gval syntax)
Examples:
--output json
--output yaml
--output interactive
--output 'id' (to extract a single field)
--output 'nested.field.subfield' (to extract a nested field)
--output '[id, "name"]' (to extract multiple fields as an array)
--output '{"newKey": oldKey, "otherKey": nested.field}' (to extract and rename fields in an object)
--output 'name+","+type' (to extract and concatenate fields in a string)
--output '(nbFieldA + nbFieldB) * 10' (to compute values from numeric fields)
--profile string Use a specific profile from the configuration file
```

### Global Flags

| Flag | Description |
| ------------------ | ---------------------------------------------------- |
| `--debug` | Activate debug mode (logs all HTTP‑request details). |
| `--ignore-errors` | Ignore errors of API calls made when listing items. |
| `--filter <expr>` | Filter lists output with a [gval] expression. |
| `-h`, `--help` | Display help for `ovhcloud` or a specific command. |
| `-o interactive` | Produce interactive (prompt‑based) output. |
| `-o json` | Output data in JSON format. |
| `-o yaml` | Output data in YAML format. |
| `-o <expr>` | Format output with a [gval] expression. |

[gval]: https://github.com/PaesslerAG/gval

#### 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: `-o 'ip'`
- Extract an object: `-o '{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`.
### SEE ALSO

* [ovhcloud account](ovhcloud_account.md) - Manage your account
* [ovhcloud alldom](ovhcloud_alldom.md) - Retrieve information and manage your AllDom services
* [ovhcloud backup-services](ovhcloud_backup-services.md) - Retrieve information and manage your Veeam Backup services
* [ovhcloud baremetal](ovhcloud_baremetal.md) - Retrieve information and manage your Bare Metal services
* [ovhcloud browser](ovhcloud_browser.md) - Launch a TUI for the OVHcloud Manager - Public Cloud universe only [EXPERIMENTAL]
* [ovhcloud cdn-dedicated](ovhcloud_cdn-dedicated.md) - Retrieve information and manage your dedicated CDN services
* [ovhcloud cloud](ovhcloud_cloud.md) - Manage your projects and services in the Public Cloud universe (MKS, MPR, MRS, Object Storage...)
* [ovhcloud completion](ovhcloud_completion.md) - Generate shell completion scripts
* [ovhcloud config](ovhcloud_config.md) - Manage your CLI configuration
* [ovhcloud dedicated-ceph](ovhcloud_dedicated-ceph.md) - Retrieve information and manage your Dedicated Ceph services
* [ovhcloud dedicated-cloud](ovhcloud_dedicated-cloud.md) - Retrieve information and manage your DedicatedCloud services
Expand All @@ -102,6 +49,7 @@ Below is the full list of primary sub‑commands available at the time of writin
* [ovhcloud ldp](ovhcloud_ldp.md) - Retrieve information and manage your LDP (Logs Data Platform) services
* [ovhcloud location](ovhcloud_location.md) - Retrieve information and manage your Location services
* [ovhcloud login](ovhcloud_login.md) - Login to your OVHcloud account to create API credentials
* [ovhcloud logout](ovhcloud_logout.md) - Revoke your API credentials and remove them from the configuration
* [ovhcloud nutanix](ovhcloud_nutanix.md) - Retrieve information and manage your Nutanix services
* [ovhcloud okms](ovhcloud_okms.md) - Retrieve information and manage your OKMS (Key Management Services)
* [ovhcloud overthebox](ovhcloud_overthebox.md) - Retrieve information and manage your OverTheBox services
Expand All @@ -113,6 +61,7 @@ Below is the full list of primary sub‑commands available at the time of writin
* [ovhcloud storage-netapp](ovhcloud_storage-netapp.md) - Retrieve information and manage your Storage NetApp services
* [ovhcloud support-tickets](ovhcloud_support-tickets.md) - Retrieve information and manage your support tickets
* [ovhcloud telephony](ovhcloud_telephony.md) - Retrieve information and manage your Telephony services
* [ovhcloud upgrade](ovhcloud_upgrade.md) - Upgrade OVHcloud CLI to the latest version
* [ovhcloud veeamcloudconnect](ovhcloud_veeamcloudconnect.md) - Retrieve information and manage your VeeamCloudConnect services
* [ovhcloud veeamenterprise](ovhcloud_veeamenterprise.md) - Retrieve information and manage your VeeamEnterprise services
* [ovhcloud version](ovhcloud_version.md) - Get OVHcloud CLI version
Expand All @@ -124,30 +73,3 @@ Below is the full list of primary sub‑commands available at the time of writin
* [ovhcloud webhosting](ovhcloud_webhosting.md) - Retrieve information and manage your WebHosting services
* [ovhcloud xdsl](ovhcloud_xdsl.md) - Retrieve information and manage your XDSL services

> **Tip**  Use `-o json`, `-o yaml`, or `-o <format>` with a gval expression to integrate `ovhcloud` into 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> -o json` |
| Reinstall a baremetal interactively | `ovhcloud baremetal reinstall <id> --editor` |

---

## Troubleshooting

* **Verbose output** — Use `--debug` to inspect raw API calls and responses.
* **Authentication issues** — Run `ovhcloud login` again 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](https://eu.api.ovh.com/console)
* OVHcloud community guides and tutorials.
51 changes: 51 additions & 0 deletions doc/ovhcloud_backup-services.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
## ovhcloud backup-services

Retrieve information and manage your Veeam Backup services

### Synopsis

Retrieve information and manage your Veeam Backup services.

A backup tenant holds storage vaults and a Veeam Service Provider Console tenant; the console tenant is what drives the agents installed on your machines. Both levels are resolved when the account has only one of them, so --tenant and --vspc are only needed when there is a choice to make.

The agents themselves are managed from the machine they protect: see `ovhcloud baremetal backup-agent`.

### Options

```
-h, --help help for backup-services
--tenant string Backup tenant to work on (default: the only one on the account)
--vspc string VSPC tenant to work on (default: the only one in the backup tenant)
```

### Options inherited from parent commands

```
-d, --debug Activate debug mode (will log all HTTP requests details)
-e, --ignore-errors Ignore errors in API calls when it is not fatal to the execution
-o, --output string Output format: json, yaml, interactive, or a custom format expression (using https://github.com/PaesslerAG/gval syntax)
Examples:
--output json
--output yaml
--output interactive
--output 'id' (to extract a single field)
--output 'nested.field.subfield' (to extract a nested field)
--output '[id, "name"]' (to extract multiple fields as an array)
--output '{"newKey": oldKey, "otherKey": nested.field}' (to extract and rename fields in an object)
--output 'name+","+type' (to extract and concatenate fields in a string)
--output '(nbFieldA + nbFieldB) * 10' (to compute values from numeric fields)
--profile string Use a specific profile from the configuration file
```

### SEE ALSO

* [ovhcloud](ovhcloud.md) - CLI to manage your OVHcloud services
* [ovhcloud backup-services agents](ovhcloud_backup-services_agents.md) - List every backup agent, and what each one protects
* [ovhcloud backup-services billing](ovhcloud_backup-services_billing.md) - Show what each part of the backup service costs, and what it has consumed
* [ovhcloud backup-services deploy-script](ovhcloud_backup-services_deploy-script.md) - Show the command that installs the backup agent on a machine
* [ovhcloud backup-services licenses](ovhcloud_backup-services_licenses.md) - Show the Veeam licences held by a VSPC tenant
* [ovhcloud backup-services policies](ovhcloud_backup-services_policies.md) - List the retention policies an agent can be put on
* [ovhcloud backup-services tenant](ovhcloud_backup-services_tenant.md) - Show the backup tenants of the account
* [ovhcloud backup-services vault](ovhcloud_backup-services_vault.md) - Show and rename the storage vaults of a backup tenant
* [ovhcloud backup-services vspc](ovhcloud_backup-services_vspc.md) - Show and rename the Veeam Service Provider Console tenants

46 changes: 46 additions & 0 deletions doc/ovhcloud_backup-services_agents.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
## ovhcloud backup-services agents

List every backup agent, and what each one protects

```
ovhcloud backup-services agents [flags]
```

### Options

```
--filter stringArray Filter results by any property using https://github.com/PaesslerAG/gval syntax
Examples:
--filter 'state=="running"'
--filter 'name=~"^my.*"'
--filter 'nested.property.subproperty>10'
--filter 'startDate>="2023-12-01"'
--filter 'name=~"something" && nbField>10'
-h, --help help for agents
```

### Options inherited from parent commands

```
-d, --debug Activate debug mode (will log all HTTP requests details)
-e, --ignore-errors Ignore errors in API calls when it is not fatal to the execution
-o, --output string Output format: json, yaml, interactive, or a custom format expression (using https://github.com/PaesslerAG/gval syntax)
Examples:
--output json
--output yaml
--output interactive
--output 'id' (to extract a single field)
--output 'nested.field.subfield' (to extract a nested field)
--output '[id, "name"]' (to extract multiple fields as an array)
--output '{"newKey": oldKey, "otherKey": nested.field}' (to extract and rename fields in an object)
--output 'name+","+type' (to extract and concatenate fields in a string)
--output '(nbFieldA + nbFieldB) * 10' (to compute values from numeric fields)
--profile string Use a specific profile from the configuration file
--tenant string Backup tenant to work on (default: the only one on the account)
--vspc string VSPC tenant to work on (default: the only one in the backup tenant)
```

### SEE ALSO

* [ovhcloud backup-services](ovhcloud_backup-services.md) - Retrieve information and manage your Veeam Backup services

52 changes: 52 additions & 0 deletions doc/ovhcloud_backup-services_billing.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
## ovhcloud backup-services billing

Show what each part of the backup service costs, and what it has consumed

### Synopsis

Show what each part of the backup service costs, and what it has consumed.

The backup API carries no price. The plan, the price, the period, the renewal mode and the next billing date come from the account's service router, matched to each backup resource by its identifier; the consumption comes from the account's current usage.

```
ovhcloud backup-services billing [flags]
```

### Options

```
--filter stringArray Filter results by any property using https://github.com/PaesslerAG/gval syntax
Examples:
--filter 'state=="running"'
--filter 'name=~"^my.*"'
--filter 'nested.property.subproperty>10'
--filter 'startDate>="2023-12-01"'
--filter 'name=~"something" && nbField>10'
-h, --help help for billing
```

### Options inherited from parent commands

```
-d, --debug Activate debug mode (will log all HTTP requests details)
-e, --ignore-errors Ignore errors in API calls when it is not fatal to the execution
-o, --output string Output format: json, yaml, interactive, or a custom format expression (using https://github.com/PaesslerAG/gval syntax)
Examples:
--output json
--output yaml
--output interactive
--output 'id' (to extract a single field)
--output 'nested.field.subfield' (to extract a nested field)
--output '[id, "name"]' (to extract multiple fields as an array)
--output '{"newKey": oldKey, "otherKey": nested.field}' (to extract and rename fields in an object)
--output 'name+","+type' (to extract and concatenate fields in a string)
--output '(nbFieldA + nbFieldB) * 10' (to compute values from numeric fields)
--profile string Use a specific profile from the configuration file
--tenant string Backup tenant to work on (default: the only one on the account)
--vspc string VSPC tenant to work on (default: the only one in the backup tenant)
```

### SEE ALSO

* [ovhcloud backup-services](ovhcloud_backup-services.md) - Retrieve information and manage your Veeam Backup services

45 changes: 45 additions & 0 deletions doc/ovhcloud_backup-services_deploy-script.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
## ovhcloud backup-services deploy-script

Show the command that installs the backup agent on a machine

### Synopsis

Show the command that installs the backup agent on a machine.

An agent created through the API exists as an object and protects nothing until this script has run on the machine. The links carry their own authorisation.

```
ovhcloud backup-services deploy-script [flags]
```

### Options

```
-h, --help help for deploy-script
```

### Options inherited from parent commands

```
-d, --debug Activate debug mode (will log all HTTP requests details)
-e, --ignore-errors Ignore errors in API calls when it is not fatal to the execution
-o, --output string Output format: json, yaml, interactive, or a custom format expression (using https://github.com/PaesslerAG/gval syntax)
Examples:
--output json
--output yaml
--output interactive
--output 'id' (to extract a single field)
--output 'nested.field.subfield' (to extract a nested field)
--output '[id, "name"]' (to extract multiple fields as an array)
--output '{"newKey": oldKey, "otherKey": nested.field}' (to extract and rename fields in an object)
--output 'name+","+type' (to extract and concatenate fields in a string)
--output '(nbFieldA + nbFieldB) * 10' (to compute values from numeric fields)
--profile string Use a specific profile from the configuration file
--tenant string Backup tenant to work on (default: the only one on the account)
--vspc string VSPC tenant to work on (default: the only one in the backup tenant)
```

### SEE ALSO

* [ovhcloud backup-services](ovhcloud_backup-services.md) - Retrieve information and manage your Veeam Backup services

Loading
Loading