|
| 1 | +--- |
| 2 | +title: Team Setup |
| 3 | +description: Get your team up and running with slackbuzz in one command. |
| 4 | +--- |
| 5 | + |
| 6 | +# Team setup |
| 7 | + |
| 8 | +Get a teammate from zero to fully operational with a single command. |
| 9 | + |
| 10 | +## One-line setup |
| 11 | + |
| 12 | +```sh |
| 13 | +curl -sL https://raw.githubusercontent.com/triptechtravel/slackbuzz-cli/main/scripts/setup.sh | bash |
| 14 | +``` |
| 15 | + |
| 16 | +The script walks through each step interactively: installing slackbuzz, setting up the Claude Code skill, and authenticating with Slack. It's idempotent — safe to run again if anything changes. |
| 17 | + |
| 18 | +If you have the repo cloned locally, you can also run: |
| 19 | + |
| 20 | +```sh |
| 21 | +make setup |
| 22 | +``` |
| 23 | + |
| 24 | +## What you'll need |
| 25 | + |
| 26 | +| Prerequisite | Required? | Notes | |
| 27 | +|---|---|---| |
| 28 | +| **Homebrew** | Yes | The script installs slackbuzz via `brew`. Install from [brew.sh](https://brew.sh). | |
| 29 | +| **Bot token** (`xoxb-...`) | Yes | Shared across the team. Your team lead will provide this. | |
| 30 | +| **User token** (`xoxp-...`) | Yes | Unique per person. Each team member generates their own. | |
| 31 | +| **Claude Code** | Optional | If installed, the script adds the slackbuzz skill automatically. | |
| 32 | + |
| 33 | +## Understanding the tokens |
| 34 | + |
| 35 | +slackbuzz uses two Slack tokens. The CLI selects the right one automatically — you never need to specify which to use. |
| 36 | + |
| 37 | +**Bot token** (`xoxb-...`) — shared across the team. One app installation covers everyone. Used for reading channels, listing users, and reactions. |
| 38 | + |
| 39 | +**User token** (`xoxp-...`) — unique per person. Each team member installs the Slack app to their own account. Used for sending messages as you, search, DMs, and status. |
| 40 | + |
| 41 | +Both tokens come from the same Slack app. The bot token is the same for everyone on the team; the user token is different per person. |
| 42 | + |
| 43 | +## Manual step-by-step |
| 44 | + |
| 45 | +If you prefer not to use the setup script, here's what it does: |
| 46 | + |
| 47 | +### 1. Install slackbuzz |
| 48 | + |
| 49 | +```sh |
| 50 | +brew install triptechtravel/tap/slackbuzz |
| 51 | +``` |
| 52 | + |
| 53 | +### 2. Install the Claude Code skill (optional) |
| 54 | + |
| 55 | +```sh |
| 56 | +mkdir -p ~/.claude/skills/slackbuzz-cli |
| 57 | +curl -fsSL https://raw.githubusercontent.com/triptechtravel/slackbuzz-cli/main/skills/slackbuzz-cli/SKILL.md \ |
| 58 | + -o ~/.claude/skills/slackbuzz-cli/SKILL.md |
| 59 | +``` |
| 60 | + |
| 61 | +Or from a local clone: |
| 62 | + |
| 63 | +```sh |
| 64 | +make install-skill |
| 65 | +``` |
| 66 | + |
| 67 | +### 3. Authenticate |
| 68 | + |
| 69 | +```sh |
| 70 | +slackbuzz auth login --bot-token |
| 71 | +slackbuzz auth login --user-token |
| 72 | +``` |
| 73 | + |
| 74 | +Paste each token when prompted. Get them from your Slack app's **OAuth & Permissions** page. |
| 75 | + |
| 76 | +### 4. Verify |
| 77 | + |
| 78 | +```sh |
| 79 | +slackbuzz doctor |
| 80 | +``` |
| 81 | + |
| 82 | +## For team leads: creating the Slack app |
| 83 | + |
| 84 | +Before your team can authenticate, someone needs to create the Slack app and install it to the workspace. |
| 85 | + |
| 86 | +### Create the app |
| 87 | + |
| 88 | +The fastest way is to use the built-in command: |
| 89 | + |
| 90 | +```sh |
| 91 | +slackbuzz app create |
| 92 | +``` |
| 93 | + |
| 94 | +This creates a Slack app pre-configured with all required scopes for both token types, opens the install page in your browser, and prompts you to paste the OAuth tokens. |
| 95 | + |
| 96 | +### Share with your team |
| 97 | + |
| 98 | +After the app is installed to your workspace: |
| 99 | + |
| 100 | +1. Go to [api.slack.com/apps](https://api.slack.com/apps) and select the app |
| 101 | +2. Navigate to **OAuth & Permissions** |
| 102 | +3. Copy the **Bot User OAuth Token** (`xoxb-...`) — this is the same for everyone |
| 103 | +4. Share the bot token with your team (e.g., in a private Slack channel or password manager) |
| 104 | +5. Each team member visits the same OAuth page and copies their own **User OAuth Token** (`xoxp-...`) |
| 105 | + |
| 106 | +Then each team member runs the setup script and pastes both tokens when prompted. |
| 107 | + |
| 108 | +### Required scopes |
| 109 | + |
| 110 | +The `slackbuzz app create` command sets these up automatically. If creating the app manually: |
| 111 | + |
| 112 | +**Bot token (`xoxb-`):** `chat:write`, `channels:history`, `channels:read`, `emoji:read`, `groups:history`, `groups:read`, `im:history`, `im:read`, `im:write`, `mpim:history`, `mpim:read`, `reactions:read`, `reactions:write`, `users:read` |
| 113 | + |
| 114 | +**User token (`xoxp-`):** `channels:read`, `chat:write`, `groups:read`, `im:read`, `im:write`, `mpim:read`, `search:read`, `stars:read`, `stars:write`, `users:read`, `users.profile:read`, `users.profile:write` |
| 115 | + |
| 116 | +## Troubleshooting |
| 117 | + |
| 118 | +### "Not authenticated" errors |
| 119 | + |
| 120 | +Re-run authentication for the missing token: |
| 121 | + |
| 122 | +```sh |
| 123 | +slackbuzz auth status # See which tokens are configured |
| 124 | +slackbuzz auth login --bot-token # Re-enter bot token |
| 125 | +slackbuzz auth login --user-token # Re-enter user token |
| 126 | +``` |
| 127 | + |
| 128 | +### Scope errors ("missing_scope") |
| 129 | + |
| 130 | +The Slack app needs additional OAuth scopes. Ask your team lead to: |
| 131 | + |
| 132 | +1. Go to [api.slack.com/apps](https://api.slack.com/apps) → your app → **OAuth & Permissions** |
| 133 | +2. Add the missing scope listed in the error message |
| 134 | +3. Reinstall the app to the workspace |
| 135 | +4. Team members re-run `slackbuzz auth login` with the new tokens |
| 136 | + |
| 137 | +### Updating slackbuzz |
| 138 | + |
| 139 | +```sh |
| 140 | +brew update && brew upgrade triptechtravel/tap/slackbuzz |
| 141 | +``` |
| 142 | + |
| 143 | +Or re-run the setup script — it detects existing installations and upgrades automatically. |
| 144 | + |
| 145 | +### Updating the Claude Code skill |
| 146 | + |
| 147 | +```sh |
| 148 | +curl -fsSL https://raw.githubusercontent.com/triptechtravel/slackbuzz-cli/main/skills/slackbuzz-cli/SKILL.md \ |
| 149 | + -o ~/.claude/skills/slackbuzz-cli/SKILL.md |
| 150 | +``` |
| 151 | + |
| 152 | +If you installed via `make install-skill` (symlink), just `git pull` in the repo. |
| 153 | + |
| 154 | +### Uninstalling |
| 155 | + |
| 156 | +```sh |
| 157 | +brew uninstall slackbuzz # Remove the CLI |
| 158 | +rm -rf ~/.claude/skills/slackbuzz-cli # Remove the Claude Code skill |
| 159 | +slackbuzz auth logout # Remove stored tokens (run before uninstall) |
| 160 | +``` |
0 commit comments