A Command Line Interface (CLI) for Hedera DIDs
$ npm install -g did-hedera-cli
$ did-hedera COMMAND
running command...
$ did-hedera (--version)
did-hedera-cli/0.0.0 darwin-arm64 node-v17.2.0
$ did-hedera --help [COMMAND]
USAGE
$ did-hedera COMMAND
...
did-hedera help [COMMAND]
did-hedera messages DID
did-hedera new
did-hedera plugins
did-hedera plugins:inspect PLUGIN...
did-hedera plugins:install PLUGIN...
did-hedera plugins:link PLUGIN
did-hedera plugins:uninstall PLUGIN...
did-hedera plugins update
did-hedera resolve DID
did-hedera service add [IDSUFFIX] [TYPE] [SERVICEENDPOINT]
did-hedera service revoke [IDSUFFIX]
did-hedera service update [IDSUFFIX] [TYPE] [SERVICEENDPOINT]
Display help for did-hedera.
USAGE
$ did-hedera help [COMMAND] [-n]
ARGUMENTS
COMMAND Command to show help for.
FLAGS
-n, --nested-commands Include all nested commands in the output.
DESCRIPTION
Display help for did-hedera.
See code: @oclif/plugin-help
List messages (& events) on HCS for did:hedera
USAGE
$ did-hedera messages [DID] [-h]
FLAGS
-h, --help Show CLI help.
DESCRIPTION
List messages (& events) on HCS for did:hedera
EXAMPLES
$ did-hedera messages did:hedera:testnet:z6MkrgzSb23YA21FBqTgrq5AssRxMdYrwyF9P1HSNRDCxqKu_0.0.29666198
See code: dist/commands/messages.ts
Create new did:hedera
USAGE
$ did-hedera new [-h]
FLAGS
-h, --help Show CLI help.
DESCRIPTION
Create new did:hedera
EXAMPLES
$ did-hedera new
See code: dist/commands/new.ts
List installed plugins.
USAGE
$ did-hedera plugins [--core]
FLAGS
--core Show core plugins.
DESCRIPTION
List installed plugins.
EXAMPLES
$ did-hedera plugins
See code: @oclif/plugin-plugins
Displays installation properties of a plugin.
USAGE
$ did-hedera plugins:inspect PLUGIN...
ARGUMENTS
PLUGIN [default: .] Plugin to inspect.
FLAGS
-h, --help Show CLI help.
-v, --verbose
DESCRIPTION
Displays installation properties of a plugin.
EXAMPLES
$ did-hedera plugins:inspect myplugin
Installs a plugin into the CLI.
USAGE
$ did-hedera plugins:install PLUGIN...
ARGUMENTS
PLUGIN Plugin to install.
FLAGS
-f, --force Run yarn install with force flag.
-h, --help Show CLI help.
-v, --verbose
DESCRIPTION
Installs a plugin into the CLI.
Can be installed from npm or a git url.
Installation of a user-installed plugin will override a core plugin.
e.g. If you have a core plugin that has a 'hello' command, installing a user-installed plugin with a 'hello' command
will override the core plugin implementation. This is useful if a user needs to update core plugin functionality in
the CLI without the need to patch and update the whole CLI.
ALIASES
$ did-hedera plugins add
EXAMPLES
$ did-hedera plugins:install myplugin
$ did-hedera plugins:install https://github.com/someuser/someplugin
$ did-hedera plugins:install someuser/someplugin
Links a plugin into the CLI for development.
USAGE
$ did-hedera plugins:link PLUGIN
ARGUMENTS
PATH [default: .] path to plugin
FLAGS
-h, --help Show CLI help.
-v, --verbose
DESCRIPTION
Links a plugin into the CLI for development.
Installation of a linked plugin will override a user-installed or core plugin.
e.g. If you have a user-installed or core plugin that has a 'hello' command, installing a linked plugin with a 'hello'
command will override the user-installed or core plugin implementation. This is useful for development work.
EXAMPLES
$ did-hedera plugins:link myplugin
Removes a plugin from the CLI.
USAGE
$ did-hedera plugins:uninstall PLUGIN...
ARGUMENTS
PLUGIN plugin to uninstall
FLAGS
-h, --help Show CLI help.
-v, --verbose
DESCRIPTION
Removes a plugin from the CLI.
ALIASES
$ did-hedera plugins unlink
$ did-hedera plugins remove
Update installed plugins.
USAGE
$ did-hedera plugins update [-h] [-v]
FLAGS
-h, --help Show CLI help.
-v, --verbose
DESCRIPTION
Update installed plugins.
Resolve did:hedera
USAGE
$ did-hedera resolve [DID] [-h]
FLAGS
-h, --help Show CLI help.
DESCRIPTION
Resolve did:hedera
EXAMPLES
$ did-hedera resolve did:hedera:testnet:z6MkrgzSb23YA21FBqTgrq5AssRxMdYrwyF9P1HSNRDCxqKu_0.0.29666198
See code: dist/commands/resolve.ts
Add a service definition for did:hedera
USAGE
$ did-hedera service add [IDSUFFIX] [TYPE] [SERVICEENDPOINT] -d <value> -p <value>
FLAGS
-d, --did=<value> (required) did:hedera
-p, --privateKey=<value> (required) hex-encoded private key that controls the DID
DESCRIPTION
Add a service definition for did:hedera
EXAMPLES
$ did-hedera service:add service-1 LinkedDomains https://example.com/s1
Revoke a service for the DID
USAGE
$ did-hedera service revoke [IDSUFFIX] -d <value> -p <value>
FLAGS
-d, --did=<value> (required) did:hedera
-p, --privateKey=<value> (required) hex-encoded private key that controls the DID
DESCRIPTION
Revoke a service for the DID
EXAMPLES
$ did-hedera service revoke service-1
Update a service for the DID
USAGE
$ did-hedera service update [IDSUFFIX] [TYPE] [SERVICEENDPOINT] -d <value> -p <value>
FLAGS
-d, --did=<value> (required) did:hedera
-p, --privateKey=<value> (required) hex-encoded private key that controls the DID
DESCRIPTION
Update a service for the DID
EXAMPLES
$ did-hedera service:add service-1 LinkedDomains https://example.com/vcs