Skip to content

Latest commit

 

History

History
44 lines (29 loc) · 1.04 KB

File metadata and controls

44 lines (29 loc) · 1.04 KB

kratos-cli

npm

This CLI interacts with the Ory Kratos self-service API.

Install

npm install @getlarge/kratos-cli

Usage

To register a new identity

# base path is the Ory Kratos Public API URL - it can be passed via ORY_KRATOS_PUBLIC_URL environment variable
# the CLI will prompt for the password
npx @getlarge/kratos-cli register --email [email protected] \
--basePath http://localhost:4433

To log in

# base path is the Ory Kratos Public API URL - it can be passed via ORY_KRATOS_PUBLIC_URL environment variable
# the CLI will prompt for the password
npx @getlarge/kratos-cli login --email [email protected] \
--basePath http://localhost:4433

Development

Building

Run nx build kratos-cli to build the library.

Running unit tests

Run nx test kratos-cli to execute the unit tests via Jest.