Install Parsec CLI (Linux)
In order to deploy and maintain Parsec Server, you would need to perform some operations with Parsec CLI for Linux. These operations can be performed from another machine.
Parsec CLI is a standalone binary that can be downloaded from GitHub releases page.
Download Parsec CLI.
Make the file executable
Right-click on file, then
Or use the chmod command:
chmod +x parsec-cli_3.9.4-a.0+dev_linux-x86_64-musl
Verify the installation by running the following command:
./parsec-cli_3.9.4-a.0+dev_linux-x86_64-musl --versionThe Parsec CLI version should be displayed as
parsec-cli 3.9.4-a.0+devFor convenience, put the executable in
~/.local/bincp parsec-cli_3.9.4-a.0+dev_linux-x86_64-musl ~/.local/bin
and make a symbolic link
cd ~/.local/bin ln -s parsec-cli_3.9.4-a.0+dev_linux-x86_64-musl parsec-cli
You will be able to execute
parsec-clifrom anywhere.
Tip
To update, follow the previous steps with the new version.
Enable auto-completion
Added in version 3.10.0: To have your shell auto-complete the parsec-cli command arguments,
you will need to have the following line in your shell RC file:
eval "$(parsec-cli auto-complete $SHELL)"
Note
The above code-snippet is for bash, adapt it to your shell.
Install man pages
Added in version 3.10.0: You can install the Parsec CLI man pages by doing the following:
Create the local man pages folder:
mkdir -p ~/.local/share/man/man1
Tip
To make the pages available system-wide, replace the folder path with
/usr/local/share/man/man1on the commands above and below.Generate the man pages:
parsec-cli man-page --mode separate ~/.local/share/man/man1
Update the man pages database:
mandb
Verify:
man parsec-cliImportant
If
mancannot find the page, ensure that the path where you put the pages is in the variable$MANPATH. You can also verify ifmandbexplored the folder.