Install the Virgil CLI
This guide shows how to install the Virgil CLI on Mac OS, FreeBSD, Linux OS and Windows OS.
Mac OS
Install using Homebrew
You can install the Virgil CLI with Homebrew using the following command:
$ brew update
$ brew install virgil
Install using the package
Download the latest CLI package here: https://github.com/VirgilSecurity/virgil-cli/releases.
Once you've downloaded the latest .tar.gz
Virgil CLI file, double click to unzip it. Rename the unzipped folder to virgil_<latest-version>
(virgil_5.2.4
for example) and move it to any folder of your choice.
Launch Terminal and type the following command:
ln -s ~/<full-path-to-virgil-file> /usr/local/bin/virgil
Now you will be able to launch the Virgil CLI using Terminal.
Linux
In order to download and install the CLI using Linux, use the following commands:
# navigate to the folder which you want to download the archive to
cd <folder-name>
# download the latest version of the Virgil CLI using its link from the releases page https://github.com/VirgilSecurity/virgil-cli/releases
wget https://github.com/VirgilSecurity/virgil-cli/releases/download/v<latest-version>/virgil_<latest-version>_Linux_x86_64.tar.gz
# unzip the downloaded archive specifying its name
tar xvfz <downloaded-file>
# move cli to /usr/local/bin
mv virgil /usr/local/bin
Now you will be able to launch the Virgil CLI.
Windows
Download the latest CLI package here: https://github.com/VirgilSecurity/virgil-cli/releases.
Once you've downloaded the latest .zip
Virgil CLI file, unzip it and rename the unzipped folder to virgil_<latest-version>
(virgil_5.2.4
for example). Move the renamed folder to C:\ProgramFiles
and copy the full path to the folder.
Edit the system environmental variables:
- In
Search
, search for and then select:System
(Control Panel
) - Click the
Advanced system settings
link. - Click
Environment Variables
. In the sectionSystem Variables
, find thePATH
environment variable and select it. Click Edit. If the PATH environment variable does not exist, click New. - In the
Edit System Variable
(orNew System Variable
) window, specify the value of the PATH environment variable (paste the copied full path to Virgil CLI folder). Click OK. Close all remaining windows by clicking OK.
Now you will be able to launch Virgil CLI using Command prompt.