# Install and sign in

> Install coline, the Coline command line, and sign in as yourself, read-only, or as a bot.

Source: https://docs.coline.app/cli

`coline` does what you do in Coline from a terminal. Every action in the app is a command, and a few daily ones are made for the terminal, like `coline today` and `coline inbox`. It runs on macOS, Linux and Windows.

## Install

On macOS and Linux:

```bash
curl -fsSL https://coline.app/install | sh
```

The script picks the build for your machine (Apple silicon or Intel; x64 or arm64 Linux, with glibc or musl), checks its SHA-256 before unpacking it, and puts `coline` in `~/.local/bin`. It never uses `sudo` and never edits your shell profile. If `~/.local/bin` isn't on your `PATH`, it prints the line to add. Add `-s -- --latest` for the newest release before it reaches stable, or `-s -- --version 1.2.3` for an exact one.

On Windows, in PowerShell:

```powershell
irm https://coline.app/install.ps1 | iex
```

This installs to `%LOCALAPPDATA%\coline\bin` and prints the command that adds it to your `PATH`.

With npm or Homebrew:

```bash
npm i -g @colineapp/cli
brew install colineapp/tap/coline
```

`npx @colineapp/cli today` runs it once without installing.

If you installed with the script, `coline update` installs the newest release. `coline config set channel latest` moves you to releases before they reach stable. With npm or Homebrew, update through them.

## Sign in

```bash
coline auth login
```

A browser opens for you to approve the sign-in. Over SSH, or where no browser can open, you approve a code on any device instead; `--device` asks for the code anyway. `coline login` is the same command.

`coline auth login --no-wait` prints the link and the code and exits, so an agent can hand them to you. `coline auth login --resume` finishes the sign-in once you've approved it.

Then pick a default workspace:

```bash
coline workspace list
coline workspace use acme
```

`-w` on any command picks another one, by its slug or any Coline link inside it. `coline whoami` shows who commands run as. `coline doctor` checks your sign-in, where your tokens are kept, the server and your version.

## Profiles

Each sign-in is a profile, so one machine can hold several accounts. `-P <name>` names it when you sign in and picks it for a command; without one, the profile is called `default`.

```bash
coline auth login -P work
coline auth list
coline auth switch work
coline tasks list -P personal
```

`COLINE_PROFILE` does what `-P` does. Each profile keeps its own default workspace.

## Sign in a bot

```bash
coline login --agent "Release bot" -P release-bot
```

An agent profile is for bots, scripts, cron jobs and CI. It joins Coline as its own member and acts under its own name, and you can pause or remove it in Coline like any other member. It can call only the actions open to connected apps, never one that sets a secret, and `coline --help` under its profile lists only those. Mail and invites it sends always wait for your approval, whatever your Mail settings say.

An agent profile becomes the active profile only when it is the first one on the machine, so run its commands with `-P release-bot`.

Coding agents you run yourself, like Claude Code and Codex, use your own profile instead. See [For agents](/cli/agents).

## Read-only and scoped sign-ins

```bash
coline auth login --read-only
coline auth login --scope taskboards.read,mail.read -P reader
```

`--read-only` asks only for read [scopes](/authentication/scopes), in a profile called `read-only` unless you name it. `--scope` asks for only the scopes you list. Coline enforces both on the server. An agent profile can't be read-only; give it a narrower `--scope` instead.

## Sign out

```bash
coline auth logout
coline auth logout -P release-bot
```

This revokes the profile's tokens and forgets them on this machine. It also signs out `upstream` if `coline` signed it in.

## Where tokens are kept

Tokens go to the system keychain: Keychain on macOS, or the Secret Service through `secret-tool` on Linux, under the name `coline-cli`. Where the keychain can't be reached (an SSH session, the Codex sandbox, a container or CI job with no desktop session, Linux without `secret-tool`, and Windows), they go to a private file in `~/.config/coline/cli/credentials` instead, and sign-in says why. Access tokens are short-lived and refreshed as needed.

Profiles and settings are in `~/.config/coline/cli`, or `%APPDATA%\coline\cli` on Windows. `COLINE_CONFIG_DIR` moves them.

## Scripts and CI

These take the place of a profile:

| Variable           | What it is                                      |
| ------------------ | ----------------------------------------------- |
| `COLINE_TOKEN`     | An access token                                 |
| `COLINE_API_KEY`   | A workspace [API key](/authentication/api-keys) |
| `COLINE_WORKSPACE` | The workspace, as `-w`                          |

`coline auth login --with-token < token.txt` saves a token as a profile, and `coline auth token` prints the one commands use, for `curl` and the like.
