Document --list-objects

This commit is contained in:
Julien Fontanet 2015-10-28 14:47:24 +01:00
parent c6657b9619
commit d58add18fc

View File

@ -25,6 +25,9 @@ Usage:
xo-cli --list-commands [--json]
Returns the list of available commands on the current XO instance.
xo-cli --list-objects [<property>=<value>]...
Returns a list of XO objects.
xo-cli <command> [<name>=<value>]...
Executes a command on the current XO instance.
```
@ -38,6 +41,21 @@ Successfully logged with admin@admin.net
Note: only a token will be saved in the configuration file.
#### List available objects
Prints all objects:
```
> xo-cli --list-objects
```
It is possible to filter on object properties, for instance to prints
all VM templates:
```
> xo-cli --list-objects type=VM-template
```
#### List available commands
```