1.1. Providing credentialsΒΆ
The vinfra
CLI tool requires the following information:
- IP address or hostname of the management node (set to
backend-api.svc.vstoragedomain
by default). - Username (
admin
by default). - Password (created during installation of Acronis Cyber Infrastructure).
This information can be supplied via the --vinfra-portal
, --vinfra-username
, and --vinfra-password
command-line parameters with each command. Alternatively, you can supply it by setting the environment variables VINFRA_PORTAL
, VINFRA_USERNAME
, and VINFRA_PASSWORD
(for example, in your ~/.bash_profile
). In this case, you will be able to run the CLI tool without the aforementioned command-line parameters.
As you typically run vinfra
from the management node as admin, the only variable you usually need to set is the password. For example:
# export VINFRA_PASSWORD=12345
If you installed vinfra
on a remote machine and/or run it as a different user, you will need to set VINFRA_PORTAL
and/or VINFRA_USERNAME
on that machine in addition to VINFRA_PASSWORD
.