Skip to main content

Install ArvanCLI

Based on your OS you can use one of the following methods.

Debian / Ubuntu Distributions

First, you need to import Arvancloud public key:

curl -fsSL https://repo.arvancloud.ir/apt/gpg.key | sudo gpg --dearmor -o /usr/share/keyrings/arvancloud.gpg

Then register Arvancloud package registry:

echo "deb[ [signed-by=/usr/share/keyrings/arvancloud.gpg\] ](https://repo.arvancloud.ir/apt)https://repo.arvancloud.ir/apt * *" | sudo tee /etc/apt/sources.list.d/arvancloud.list

After adding key and package, you can install or update the ArvanCLI via following commands:

sudo apt-get update && sudo apt install arvan 

Fedora / RHEL / CentOS Distributions

First, you need to register the Arvancloud’s package registry on the dnf repositories:

echo '[arvancloud]

name=Arvancloud

baseurl=https://repo.arvancloud.ir/yum

enabled=1

gpgcheck=0

gpgkey=https://repo.arvancloud.ir/yum/gpg.key' | sudo tee /etc/yum.repos.d/arvancloud.repo

Then you can install or update the ArvanCLI via following command:

sudo dnf install arvan

Note: If you have not moved to dnf, you can use above commands using yum instead.

Linux Distros Supporting Snap

At the command line, install ArvanCLI via following command:

sudo snap install arvan

MacOS

First, you need to add ArvanCLI into tap formula:

brew tap arvancloud/cli https://git.arvancloud.ir/arvancloud/homebrew-cli

Then you can install ArvanCLI via Homebrew installation command:

brew install arvan

Windows

Find and download the appropriate archive for your operating system and system architecture from ArvanCLI release page:

Invoke-WebRequest https://git.arvancloud.ir/arvancloud/cli/-/releases/v0.1.0/downloads/arvan-cli-0.1.0-windows-amd64.zip -OutFile ~\arvan-cli-0.1.0-windows-amd64.zip

Then, extract the archived file:

Expand-Archive -Path ~\arvan-cli-0.1.0-windows-amd64.zip

Move ArvanCLI to a desired directory (Optional):

New-Item -ItemType Directory $env:ProgramFiles\arvancli\
Move-Item -Path ~\arvan-cli-0.1.0-windows-amd64\arvan.exe -Destination $env:ProgramFiles\arvancli\

With administrator privilege, add ArvanCLI to your system’s path:

[Environment]: :SetEnvironmentVariable(
"Path",
[Environment]: :GetEnvironmentVariable("Path",
[EnvironmentVariableTarget]::Machine) + ";$env:ProgramFiles\arvancli\",
[EnvironmentVariableTarget]: :Machine)
$env:Path = [System.Environment]::GetEnvironmentVariable("Path","Machine")

Manual download

Download the pre-compiled binaries from the releases page and copy them to the desired location.