CLI overview
Learn about using the Piiano CLI to work with Piiano in the command line
The Piiano Vault CLI enables you to perform key actions from the command prompt.
By default, the CLI command returns a tabulated text format. For example:
pvault --addr=http://localhost:8123 status
+------+---------+
| data | control |
+------+---------+
| pass | pass |
+------+---------+
To return the content in JSON format, use --json
or -j
. By default, the JSON is returned prettified; use the --compact
/ -c
flag to get a compact version of the JSON.
docker exec
Vault containers include the CLI pvault
that is configured to interact with the Vault server.
If Vault is run with Docker, this command can be used to interact with pvault
:
docker exec -it pvault-dev pvault status
+------+---------+
| data | control |
+------+---------+
| pass | pass |
+------+---------+