# Configuration

> Manage config, workspaces, and CLI updates.

The `abstr` CLI stores its settings — your API key, active workspace, and connection details — in a small configuration file on your machine. This page covers where that file lives, how to switch workspaces, how to override settings temporarily, and how to keep the CLI itself up to date.

## Where settings are stored

Your settings are kept in a hidden file in your home directory (`.abstr.json`). This file is created the first time you log in — see [getting started](https://docs.abstraction.dev/cli/getting-started.md) if you haven't done that yet.

To find out exactly where the file is on your system:

```bash
abstr config path
```

To see the current settings — including your workspace, a masked version of your API key, the API endpoint in use, and whether automatic upgrades are on — run:

```bash
abstr config show
```

Your API key is never shown in full, so it's safe to run this command in a shared terminal or when sharing output for support.

## Switching workspaces

If you belong to more than one workspace, you can list them and switch between them without logging in again.

To see all workspaces you have access to (the one currently active is marked):

```bash
abstr workspace list
```

To switch to a different workspace by its slug or name:

```bash
abstr workspace use <name>
```

Names with spaces work without quotes, for example `abstr workspace use My Team`.

Running the command with no arguments opens an interactive picker so you can choose a workspace from a list:

```bash
abstr workspace
```

Once you've selected a workspace, it becomes the default for future questions — see [asking questions](https://docs.abstraction.dev/cli/asking-questions.md) for what to do next.

## Overriding settings temporarily

You can override any saved setting for a single command, or for a whole terminal session, using environment variables. These take priority over whatever is saved in your configuration file:

- `ABSTR_API_KEY` — use a different API key without changing your saved login
- `ABSTR_WORKSPACE` — target a different workspace for one command or session
- `ABSTR_CONFIG` — use a configuration file at a custom location instead of the default

This is useful for scripts, CI pipelines, or trying something out without disturbing your normal setup.

## Keeping the CLI updated

To check whether a newer version of `abstr` is available without installing it:

```bash
abstr upgrade --check
```

To download and install the latest version:

```bash
abstr upgrade
```

If you're already on the latest version, the command reports that and exits without doing anything further.

## Next steps

- [Getting started](https://docs.abstraction.dev/cli/getting-started.md)
- [Asking questions](https://docs.abstraction.dev/cli/asking-questions.md)
