# Getting started

> Install the CLI, sign in, and run your first command.

The `abstr` command-line tool lets you ask questions about your codebase, review pull requests, and manage your workspace without leaving the terminal. This page walks you through installing it, signing in, and confirming everything works.

## Install the CLI

Run the following command in your terminal:

```sh
curl -fsSL https://abstraction.dev/install.sh | sh
```

This downloads and installs the `abstr` binary for your platform. Once it finishes, `abstr` is available from anywhere in your terminal.

The CLI can also update itself later — running `abstr upgrade` checks for a newer release and installs it automatically if one is available.

## Sign in

Before you can use the CLI against your account, you need to authenticate. Run:

```sh
abstr login
```

If you don't already have an API key configured, the CLI opens your browser to the settings page where you can generate one. If it can't open a browser automatically, it prints the URL so you can visit it yourself. Paste the key back into the terminal when prompted — the input is hidden as you type, and you get a few attempts in case of a typo or an invalid key.

Once your key is verified, the CLI asks you to pick which workspace you want to work in and saves your credentials and workspace choice locally, so you won't need to log in again on future runs.

You can switch workspaces at any time with `abstr workspace`, or see all workspaces you have access to with `abstr workspace list`.

## Confirm it works

Once signed in, try asking a question directly:

```sh
abstr "what does this project do?"
```

If the CLI responds with an answer, your installation and sign-in were successful. From here you can explore asking follow-up questions interactively, reviewing pull requests, or adjusting how the CLI is configured.

## Next steps

- [Asking questions from the CLI](https://docs.abstraction.dev/cli/asking-questions.md)
- [Configuring the CLI](https://docs.abstraction.dev/cli/configuration.md)
