Install the Gary CLI in your terminal, sign in, then use the CLI to start Gary's computer on your machine and give Gary access to its first folder. Self-Hosted, the free plan, is enough.
This page is both a quick start and a reference. If you're new to Gary, start with Get started. If you're installing Gary in a new organization, see Installing for your organization.
Before you begin
Make sure you have:
- A Mac, a Linux computer, or a Windows PC
- Docker, installed and running, for Gary's computer
- A terminal open
- A folder you want Gary to work in
- A Gary account. It's free. See Self-Hosted.
Step 1: Install the Gary CLI
Open a terminal and run one of these commands.
Step 2: Sign in
Run this command to sign in to your Gary account:
gary login
The CLI prints a link and a code. Open the link in a browser where you're signed in to Gary, check that the page shows the same code, and approve it.
Step 3: Install the Gary daemon and Gary's computer
gary install
The daemon keeps running in the background, so your Garys can reach this machine after you close the terminal. On Linux it runs as a systemd user service. On a Mac it runs as a launchd agent. On Windows it runs as a background task that starts when you sign in.
With Docker running, gary install also downloads Gary's computer and starts it. The first download is several gigabytes. Without Docker, the command warns you and says where to get Docker; run it again once Docker is installed.
The daemon opens one connection out to Gary. Nothing connects in to your machine.
Step 4: Give Gary its first folder
gary dir add ~/projects
Your Garys can work only in the folders you share. If you leave out the path, the command shares the folder you're in. To let Gary read a folder without changing it or running commands in it, add --read-only.
To check that everything is connected, run:
gary status
It shows whether you're signed in, whether the daemon is connected, whether Gary's computer is running, and which folders you've shared.
Commands
| Command | What it does |
|---|---|
gary login |
Signs this machine in. Prints a link to open where you're signed in to Gary, and waits for you to approve it |
gary install |
Signs in if needed, runs the daemon in the background, and starts Gary's computer in Docker |
gary update |
Updates the CLI and Gary's computer, and restarts the computer on the new build |
gary status |
Shows whether you're signed in, whether the daemon is connected, and the folders you've shared |
gary dir add [path] |
Shares a folder, the one you're in by default. --read-only lets Gary read it only. --name sets what Gary calls it |
gary dir list |
Lists the folders you've shared |
gary dir remove <path or name> |
Stops sharing a folder |
gary tasks |
Lists what your Garys did on this machine, and the commands running now. gary tasks stop <id> stops one |
gary logout |
Signs this machine out |
gary uninstall |
Stops the daemon and Gary's computer and removes them |
To move to a new version, run gary update.