# Claude Code

> Wire GetResolved into Claude Code as a /get-resolved slash command.

The `getresolved` CLI installs a `/get-resolved` slash command for [Claude Code](https://docs.anthropic.com/en/docs/claude-code), so you and your team can query tickets, feedback, and issues — and update them — without leaving the editor.

## 1. Install the CLI and log in

```bash
npm install -g @getresolved/cli
getresolved login
```

See [Install & log in](/docs/cli/install) for details. You only do this once per machine.

## 2. Run `init` in your project root

```bash
getresolved init
```

This:

- Links the directory to a product, writing `.getresolved/config.json` (safe to commit — no secrets).
- Installs the slash command globally at `~/.claude/commands/get-resolved.md`, so it's available in every project you open in Claude Code.

`init` is idempotent — re-run it any time to switch the linked product or refresh the slash command.

After `init` you'll be offered two optional follow-ups: connecting Slack, and adding the chat widget to your project (the latter hands off to Claude Code with a pre-built prompt).

## 3. Use it in Claude Code

In any Claude Code session, type `/get-resolved` followed by what you want done. The command reads `.getresolved/config.json` to know which product to act on, and authenticates through your global `~/.getresolved/auth.json`.

```text
/get-resolved show me high-priority pending issues
```

```text
/get-resolved start working on GET-123
```

```text
/get-resolved mark GET-42 done with the note "fixed in v2.4"
```

The slash command prefers terse, scoped requests like the above — Claude knows the CLI surface and will reach for the right subcommand.

## Refreshing the slash command

The CLI checks for a newer slash-command definition once a day and updates it silently. To force a refresh:

```bash
getresolved update
```

This re-downloads the latest slash-command file and rewrites `~/.claude/commands/get-resolved.md` only if the content has changed.

## Team usage

Commit `.getresolved/config.json` to your repo so teammates pick up the same product link on clone. Each teammate runs `getresolved login` and `getresolved init` once on their machine — the slash command is installed globally, so it's available in every project they open in Claude Code afterward.

## Package

[`@getresolved/cli` on npm](https://www.npmjs.com/package/@getresolved/cli)

