@getlarge/kratos-cli
v0.3.2
Published
CLI wrapper for the Ory Kratos API
Downloads
57
Readme
kratos-cli
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.