Correct Aphlict websocket URI construction after PHP8 compatibility changes
[phabricator.git] / src / docs / user / userguide / arcanist_quick_start.diviner
blob25847ab8a67290008b3929fcb6c08cef923b5eda
1 @title Arcanist Quick Start
2 @group userguide
4 Quick guide to getting Arcanist working for a new project.
6 This is a summary of steps to install Arcanist, configure a project for use with
7 it, and run `arc` to send changes for review. For detailed instructions on
8 installing Arcanist, see @{article:Arcanist User Guide}. OS specific guides
9 are also available.
11   - For Mac OS X, see @{article:Arcanist User Guide: Mac OS X}.
12   - For Windows, see @{article:Arcanist User Guide: Windows}.
14 = Installing Arcanist =
16 First, install dependencies:
18   - Install PHP.
19   - Install Git.
21 Then install Arcanist itself:
23   somewhere/ $ git clone https://github.com/phacility/arcanist.git
25 Add `arc` to your path:
27   $ export PATH="$PATH:/somewhere/arcanist/bin/"
29 This won't work for Windows, see @{article:Arcanist User Guide: Windows} for
30 instructions.
32 = Configure Your Project =
34 For detailed instructions on project configuration, see
35 @{article:Arcanist User Guide: Configuring a New Project}.
37 Create a `.arcconfig` file in your project's working copy:
39   $ cd yourproject/
40   yourproject/ $ $EDITOR .arcconfig
41   yourproject/ $ cat .arcconfig
42   {
43     "phabricator.uri" : "https://phabricator.example.com/"
44   }
46 Set `phabricator.uri` to the URI for your Phabricator install (where `arc`
47 should send changes to).
49 NOTE: You should **commit this file** to the repository.
51 = Install Arcanist Credentials =
53 Credentials allow you to authenticate. You must have an account on Phabricator
54 before you can perform this step.
56   $ cd yourproject/
57   yourproject/ $ arc install-certificate
58   ...
60 Follow the instructions. This will link your user account on your local machine
61 to your Phabricator account.
63 = Send Changes For Review =
65 For detailed instructions on using `arc diff`, see
66 @{article:Arcanist User Guide: arc diff}.
68   $ $EDITOR file.c
69   $ arc diff
71 = Next Steps =
73 Continue by:
75   - learning more about project configuration with
76     @{article:Arcanist User Guide: Configuring a New Project}; or
77   - learning more about `arc diff` with
78     @{article:Arcanist User Guide: arc diff}; or
79   - returning to @{article:Arcanist User Guide}.