Arcanist is the command-line tool for Phabricator. It allows you to interact with Phabricator installs to send code for review, download patches, transfer files, view status, make API calls, and various other things.
https://secure.phabricator.com/book/phabricator/article/arcanist/
# Using repositories (less preferred)
```
# Debian Testing / Ubuntu / WSL
apt-get install arcanist
# OSX using Homebrew
brew install arcanist
```
# Using GIT (preferred)
## Install dependencies
```
# Debian stable using git
apt-get install git php5-cli php5-curl
# CentOS/RedHat
yum install git php-cli php-curl
# Fedora
yum install git php-cli php-curl php-json
```
Instructions for [[ c4science/arcanist/windows/ | Windows ]] and [[ https://secure.phabricator.com/book/phabricator/article/arcanist_mac_os_x/ | Mac OSX ]].
## Install libphutil and arcanist using git
```
cd
git clone -b stable https://secure.phabricator.com/source/libphutil.git
git clone -b stable https://secure.phabricator.com/diffusion/ARC/arcanist.git
sudo ln -s ~/arcanist/bin/arc /usr/local/bin/arc
```
# Authenticate arcanist to phabricator
```
arc install-certificate https://c4science.ch/
```
Go to https://c4science.ch/conduit/login/ on your browser and copy the API Token
```
arc set-config default https://c4science.ch/
```
# Check it's working properly
```
arc tasks
```
# Activate auto-completion
```
echo "source /path/to/arcanist/resources/shell/bash-completion" >> ~/.bashrc
```