{"record":{"id":"3a498eb92812b150","repo":"eyaltoledano/claude-task-master","slug":"warning-tm-rename-tag-is-deprecated-use-tm","errorCode":null,"errorMessage":"⚠ Warning: \"tm rename-tag\" is deprecated. Use \"tm tags rename\" instead.","messagePattern":"⚠ Warning: \"tm rename-tag\" is deprecated\\. Use \"tm tags rename\" instead\\.","errorType":"console","errorClass":null,"httpStatus":null,"severity":"warning","filePath":"scripts/modules/commands.js","lineNumber":5124,"sourceCode":"\t\t\tprocess.exit(1);\n\t\t});\n\n\t// rename-tag command (DEPRECATED - use `tm tags rename` instead)\n\tprogramInstance\n\t\t.command('rename-tag')\n\t\t.description(\n\t\t\t'[DEPRECATED] Rename an existing tag (use \"tm tags rename\" instead)'\n\t\t)\n\t\t.argument('<oldName>', 'Current name of the tag')\n\t\t.argument('<newName>', 'New name for the tag')\n\t\t.option(\n\t\t\t'-f, --file <file>',\n\t\t\t'Path to the tasks file',\n\t\t\tTASKMASTER_TASKS_FILE\n\t\t)\n\t\t.action(async (oldName, newName, options) => {\n\t\t\t// Show deprecation warning\n\t\t\tconsole.warn(\n\t\t\t\tchalk.yellow(\n\t\t\t\t\t'⚠ Warning: \"tm rename-tag\" is deprecated. Use \"tm tags rename\" instead.'\n\t\t\t\t)\n\t\t\t);\n\t\t\tconsole.log(\n\t\t\t\tchalk.gray('  This command will be removed in a future version.\\n')\n\t\t\t);\n\n\t\t\ttry {\n\t\t\t\t// Initialize TaskMaster\n\t\t\t\tconst taskMaster = initTaskMaster({\n\t\t\t\t\ttasksPath: options.file || true\n\t\t\t\t});\n\t\t\t\tconst tasksPath = taskMaster.getTasksPath();\n\n\t\t\t\t// Validate tasks file exists\n\t\t\t\tif (!fs.existsSync(tasksPath)) {\n\t\t\t\t\tconsole.error(","sourceCodeStart":5106,"sourceCodeEnd":5142,"githubUrl":"https://github.com/eyaltoledano/claude-task-master/blob/c0c98d367c55296bfe69e65680625b6db437af02/scripts/modules/commands.js#L5106-L5142","documentation":"`tm rename-tag` is a legacy alias for `tm tags rename`. It prints this deprecation warning and future-removal notice, then performs the rename.","triggerScenarios":"Running `task-master rename-tag <old> <new>` or `tm rename-tag` from scripts.","commonSituations":"Legacy automation, old docs, pre-namespace command habits.","solutions":["Replace with `tm tags rename <old> <new>`","Update scripts and CI","Ignore if migration is deferred; informational only"],"exampleFix":"// before\ntm rename-tag old-tag new-tag\n// after\ntm tags rename old-tag new-tag","handlingStrategy":"validation","validationCode":"if (process.argv.includes('rename-tag')) {\n  console.warn('Deprecated: use `tm tags rename` instead');\n}","typeGuard":null,"tryCatchPattern":null,"preventionTips":["Use `tm tags rename old new` in scripts","Grep repos for rename-tag during upgrades","Follow the `tags` namespace for all tag operations"],"tags":["cli","deprecation","tag-management"],"backgroundTag":"deprecated-api-usage","analyzedSha":"c0c98d367c55296bfe69e65680625b6db437af02","analyzedAt":"2026-08-29T02:56:26.071Z","schemaVersion":2},"datasetVersion":"2026-08-29T07:17:48.351Z"}