{"record":{"id":"5531f710a585938e","repo":"atuinsh/atuin","slug":"unknown-tag-tag","errorCode":null,"errorMessage":"unknown tag: {tag}","messagePattern":"unknown tag: (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"crates/atuin/src/command/client/store/rebuild.rs","lineNumber":39,"sourceCode":"        settings: &Settings,\n        store: SqliteStore,\n        database: &Sqlite,\n    ) -> Result<()> {\n        // keep it as a string and not an enum atm\n        // would be super cool to build this dynamically in the future\n        // eg register handles for rebuilding various tags without having to make this part of the\n        // binary big\n        match self.tag.as_str() {\n            \"history\" => {\n                self.rebuild_history(settings, store.clone(), database).await?;\n            }\n\n            \"scripts\" => {\n                self.rebuild_scripts(settings, store.clone()).await?;\n            }\n\n            tag => {\n                bail!(\"unknown tag: {tag}\");\n            }\n        }\n\n        Ok(())\n    }\n\n    /// The daemon owns the rebuild when enabled; otherwise we rebuild locally.\n    async fn rebuild_history(\n        &self,\n        settings: &Settings,\n        store: SqliteStore,\n        database: &Sqlite,\n    ) -> Result<()> {\n        #[cfg(feature = \"daemon\")]\n        if settings.daemon.enabled {\n            daemon::rebuild_history(settings).await?;\n            return Ok(());\n        }","sourceCodeStart":21,"sourceCodeEnd":57,"githubUrl":"https://github.com/atuinsh/atuin/blob/900007c48045867e7f44b0f9bc55ad9dbe99ee0d/crates/atuin/src/command/client/store/rebuild.rs#L21-L57","documentation":"`atuin store rebuild <tag>` only knows how to rebuild a fixed set of record tags (history, kv, scripts, etc.). Any other tag passed on the CLI hits the catch-all match arm and bails with 'unknown tag'.","triggerScenarios":"`atuin store rebuild <tag>` with a tag string not in the handler's match list, e.g. a typo like 'histroy' or a tag from a newer/older atuin version.","commonSituations":"Misspelled tag names, following docs for a different atuin version whose tag set differs, or attempting to rebuild a record type the binary was not built with.","solutions":["Run `atuin store rebuild` with no tag (or `atuin store status`) to see valid tags","Fix the tag spelling against the match arms in the source","Upgrade/downgrade atuin so the binary supports the record tag you need"],"exampleFix":"// before\natuin store rebuild histroy\n// after\natuin store rebuild history","handlingStrategy":"validation","validationCode":"let valid = [\"history\", \"kv\", \"scripts\", \"aliases\", \"dotfiles\", \"config\"];\nif !valid.contains(&tag.as_str()) {\n    eprintln!(\"unsupported tag: {tag}\");\n    return Ok(());\n}\n","typeGuard":null,"tryCatchPattern":null,"preventionTips":["Check `atuin store status` output for the exact tag strings","Match atuin versions across machines so record tags are consistent"],"tags":["cli","store","invalid-argument"],"backgroundTag":"invalid-enum-value","analyzedSha":"900007c48045867e7f44b0f9bc55ad9dbe99ee0d","analyzedAt":"2026-09-19T12:52:51.491Z","contentChangedAt":"2026-09-19T12:52:51.491Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}