Home / Commands / gastownhall/beads

rename-prefix

Rename the issue prefix for all issues

commandLicense: MIT Source: gastownhall/beads

Install

Copy this folder into your Claude Code project (needs Node.js):

curl -fsSL --create-dirs -o .claude/commands/rename-prefix.md https://raw.githubusercontent.com/gastownhall/beads/HEAD/plugins/beads/skills/beads/commands/rename-prefix.md

Or install it for every project:

curl -fsSL --create-dirs -o ~/.claude/commands/rename-prefix.md https://raw.githubusercontent.com/gastownhall/beads/HEAD/plugins/beads/skills/beads/commands/rename-prefix.md

File content

Made by its original authors and shared under MIT. We show it unchanged, with credit and a link to the source. Source ↗

---
description: Rename the issue prefix for all issues
argument-hint: "<new-prefix> [--dry-run]"
---

Rename the issue prefix for all issues in the database.

Updates all issue IDs and all text references across all fields.

## Prefix Rules

- Allowed: lowercase letters, numbers, hyphens
- Must start with a letter
- Must end with a hyphen (e.g., 'kw-', 'work-')

## Usage

- **Preview**: `bd rename-prefix kw- --dry-run`
- **Apply**: `bd rename-prefix kw-`

Example: Rename from 'knowledge-work-' to 'kw-'

All dependencies and text references are automatically updated.