website/versioned_docs/version-1.0.0/cli-reference/rename-prefix.md
Generated from bd help --doc rename-prefix
Rename the issue prefix for all issues in the database. This will update all issue IDs and all text references across all fields.
USE CASES:
Prefix validation rules:
Multiple prefix detection and repair: If issues have multiple prefixes (corrupted database), use --repair to consolidate them. The --repair flag will rename all issues with incorrect prefixes to the new prefix, preserving issues that already have the correct prefix.
EXAMPLES: bd rename-prefix kw- # Rename from 'knowledge-work-' to 'kw-' bd rename-prefix mtg- --repair # Consolidate multiple prefixes into 'mtg-' bd rename-prefix team- --dry-run # Preview changes without applying
NOTE: This is a rare operation. Most users never need this command.
bd rename-prefix <new-prefix> [flags]
Flags:
--dry-run Preview changes without applying them
--repair Repair database with multiple prefixes by consolidating them