diff --git a/package.json b/package.json index 3050a58937..6780af070d 100644 --- a/package.json +++ b/package.json @@ -92,6 +92,7 @@ "boom": "^7.2.0", "bs58": "^4.0.1", "byteman": "^1.3.5", + "cid-tool": "^0.1.0", "cids": "~0.5.3", "debug": "^3.1.0", "err-code": "^1.1.2", diff --git a/src/cli/commands/cid.js b/src/cli/commands/cid.js new file mode 100644 index 0000000000..2738ba0cee --- /dev/null +++ b/src/cli/commands/cid.js @@ -0,0 +1,21 @@ +'use strict' + +const path = require('path') + +const cidCommandsPath = path.join( + __dirname, '..', '..', '..', 'node_modules', 'cid-tool', 'src', 'cli', 'commands' +) + +module.exports = { + command: 'cid ', + + description: 'Convert, format and discover properties of CIDs.', + + builder (yargs) { + return yargs + .commandDir(cidCommandsPath) + }, + + handler (argv) { + } +}