1.0.6 • Published 2 days ago

passport-scope-cli v1.0.6

Weekly downloads
-
License
-
Repository
-
Last release
2 days ago

Passport Scope CLI Tool

The Passport Scope CLI tool is a command-line interface for managing scopes within the Passport Protocol. It allows you to create new scopes, generate key pairs, and interact with the Passport Protocol nodes.

Installation

Before using the CLI, ensure you have Node.js and pnpm installed. Install pnpm globally using npm:

npm install -g pnpm

Then, install the CLI tool globally using npm or pnpm:

npm install -g passport-scope-cli
pnpm install -g passport-scope-cli

Usage

To create and manage scopes, the CLI requires a public/private key pair.

The CLI provides the following commands:

Generate Keys

To generate a public/private key pair, use the generate-keys command with the --name option to specify the name of the key pair.

passport-scope generate-keys --name <key-pair-name>

For example, to generate a key pair named passport, which generates a passport_priv.pem and passport_pub.pem file:

passport-scope generate-keys --name passport

Create a New Scope

To create a new scope, use the create command with the required --config-path option to specify the path of the scope configuration content. Optionally, you can provide the --private-key path and enable verbose logging with -v or --verbose.

passport-scope create --config-path <path-to-config> [--private-key <path-to-private-key>] [-v]

For example, to create a scope with a specific configuration and private key, if you do not pass a private key path, the CLI will prompt you to generate a keypair.

passport-scope create --config-path ./test.json --private-key ./passport_priv.pem --verbose true
1.0.6

2 days ago

1.0.5

3 days ago

1.0.4

3 days ago

1.0.2

5 days ago

1.0.3

5 days ago

1.0.1

14 days ago

1.0.0

29 days ago

0.0.17

2 months ago

0.0.16

2 months ago

0.0.12

2 months ago

0.0.13

2 months ago

0.0.14

2 months ago

0.0.15

2 months ago

0.0.10

2 months ago

0.0.11

2 months ago

0.0.9

2 months ago

0.0.8

3 months ago

0.0.7

3 months ago

0.0.5

3 months ago

0.0.6

3 months ago

0.0.4

3 months ago

0.0.3

3 months ago

0.0.2

6 months ago

0.0.1

6 months ago