javereec / did-hedera-cli

A Command Line Interface (CLI) for Hedera DIDs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

DID Hedera CLI

A Command Line Interface (CLI) for Hedera DIDs

oclif Version CircleCI Downloads/week License

Usage

$ 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
...

Commands

did-hedera help [COMMAND]

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

did-hedera messages DID

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

did-hedera new

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

did-hedera plugins

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

did-hedera plugins:inspect PLUGIN...

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

did-hedera plugins:install PLUGIN...

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

did-hedera plugins:link PLUGIN

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

did-hedera plugins:uninstall PLUGIN...

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

did-hedera plugins update

Update installed plugins.

USAGE
  $ did-hedera plugins update [-h] [-v]

FLAGS
  -h, --help     Show CLI help.
  -v, --verbose

DESCRIPTION
  Update installed plugins.

did-hedera resolve DID

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

did-hedera service add [IDSUFFIX] [TYPE] [SERVICEENDPOINT]

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

did-hedera service revoke [IDSUFFIX]

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

did-hedera service update [IDSUFFIX] [TYPE] [SERVICEENDPOINT]

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

About

A Command Line Interface (CLI) for Hedera DIDs

License:MIT License


Languages

Language:TypeScript 93.3%Language:JavaScript 6.2%Language:Batchfile 0.5%