NuID Node.js CLI
The NuID CLI is a command line interface for interacting with our Client Web SDK.
It's primary purpose is to ease integration with other non-JavaScript languages for integration testing. We encourage you to open an issue or pull request if you have any issues or suggestions.
Reference
TOC
Installation
Install the package from npm.
$ npm install --save-dev @nuid/cli
# or
$ yarn add -D @nuid/cli
Usage
After you've installed the package, you can invoke it from your local ./node_modules/bin directory, or simply add that directory to your $PATH environment.
Since argument finagling is problematic on the shell, we require that you JSON-encode the argument vector for any given command you are invoking.
$ ./node_modules/.bin/nuid-cli --help
# Or add the bin directory to your $PATH
$ export PATH=$PATH:./node_modules/.bin
# Print a list of top-level commands
$ nuid-cli --help
# Print a list of available sub-commands for zk
$ nuid-cli zk --help
# Returns a JSON-encoded verified credential
# Note the JSON-encoded argument vector
$ nuid-cli zk verifiableFromSecret '[