{"record":{"id":"16ed553457d8c8eb","repo":"ipfs/kubo","slug":"removed-use-ipfs-dag-or-ipfs-files-instead","errorCode":null,"errorMessage":"removed, use 'ipfs dag' or 'ipfs files' instead","messagePattern":"removed, use 'ipfs dag' or 'ipfs files' instead","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"core/commands/object/object.go","lineNumber":48,"sourceCode":"\tSubcommands: map[string]*cmds.Command{\n\t\t\"data\":  RemovedObjectCmd,\n\t\t\"diff\":  ObjectDiffCmd,\n\t\t\"get\":   RemovedObjectCmd,\n\t\t\"links\": RemovedObjectCmd,\n\t\t\"new\":   RemovedObjectCmd,\n\t\t\"patch\": ObjectPatchCmd,\n\t\t\"put\":   RemovedObjectCmd,\n\t\t\"stat\":  RemovedObjectCmd,\n\t},\n}\n\nvar RemovedObjectCmd = &cmds.Command{\n\tStatus: cmds.Removed,\n\tHelptext: cmds.HelpText{\n\t\tTagline: \"Removed, use 'ipfs dag' or 'ipfs files' instead.\",\n\t},\n\tRun: func(req *cmds.Request, res cmds.ResponseEmitter, env cmds.Environment) error {\n\t\treturn errors.New(\"removed, use 'ipfs dag' or 'ipfs files' instead\")\n\t},\n}\n","sourceCodeStart":30,"sourceCodeEnd":51,"githubUrl":"https://github.com/ipfs/kubo/blob/329838acdfafae224582930457efe80aa217afc0/core/commands/object/object.go#L30-L51","documentation":"RemovedObjectCmd is the placeholder command registered for subcommands of the removed `ipfs object` surface. Its status is cmds.Removed and its Run always returns this error: the functionality was deleted from kubo and users are pointed at `ipfs dag` or `ipfs files`. It exists only so old invocations fail with an instructive message.","triggerScenarios":"Invoking any subcommand that resolves to RemovedObjectCmd, e.g. `ipfs object data`, `ipfs object links`, `ipfs object stat` (whichever were removed) on a current kubo build.","commonSituations":"Scripts and tutorials written years ago for `ipfs object` commands; automation not updated after the deprecation/removal (kubo issue #7936); users following outdated documentation.","solutions":["Replace `ipfs object <sub>` with the equivalent `ipfs dag` or `ipfs files` command (e.g. `ipfs object get` -> `ipfs dag get`, `ipfs object links` -> `ipfs dag get` and inspect Links).","Update scripts/docs to stop referencing the removed object command tree.","For DAG-PB inspection use `ipfs dag get <cid>` or `ipfs dag stat <cid>`."],"exampleFix":"// before\nipfs object links <cid>\n// after\nipfs dag get <cid>   # parse the \"Links\" array of the dag-pb node","handlingStrategy":"validation","validationCode":"// detect removed commands before running them\nif strings.HasPrefix(cmdPath, \"ipfs object \") {\n    return errors.New(\"'ipfs object' is removed; use 'ipfs dag' or 'ipfs files'\")\n}","typeGuard":null,"tryCatchPattern":null,"preventionTips":["Audit scripts for any `ipfs object <sub>` usage and migrate to `ipfs dag`/`ipfs files`.","Check command Status (cmds.Removed) when upgrading kubo versions.","Use `ipfs dag get` and `ipfs dag stat` as replacements for object inspection."],"tags":["cli","removed","migration"],"backgroundTag":"command-removed","analyzedSha":"329838acdfafae224582930457efe80aa217afc0","analyzedAt":"2026-09-03T18:30:52.135Z","contentChangedAt":"2026-09-03T18:30:52.135Z","schemaVersion":2},"datasetVersion":"2026-09-11T00:17:11.886Z"}