## NuID Node.js CLI

The NuID CLI is a command line interface for interacting with our [Client Web SDK](/content/docs/client/web.html).

It's primary purpose is to ease integration with other non-JavaScript languages for [integration testing](/content/docs/server/nodejs-cli.html#usage/index.html). We encourage you to open an issue or pull request if you have any issues or suggestions.

### Reference

- [`@nuid/cli`](https://www.npmjs.com/package/@nuid/cli)
- [Source Code](https://github.com/nuid/node-cli)
- [Report an issue](https://github.com/nuid/node-cli/issues)

### TOC

- [Installation](/content/docs/server/nodejs-cli.html#install/index.html)
- [Usage](/content/docs/server/nodejs-cli.html#usage/index.html)
- [CLI Docs](/content/docs/server/nodejs-cli.html#docs/index.html)

## Installation

Install the package from npm.

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

```shell
$ ./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 '[
