1.0.2 • Published 3 years ago

nodb-cli v1.0.2

Weekly downloads
-
License
ISC
Repository
-
Last release
3 years ago

nodb-cli

Version 1.0.3

nodb-cli provides command-line interface that can be used to access to our system

Installation

npm install -g nodb-cli

Commands:

nodb login

nodb register

nodb activate

- nodb login

It's a command to login in Nodb system. Params: username.

$nodb login

$username? xxxx

You will receive verification code in your registered email. You need to put in terminal with it.

$Please type your verification code? xxxxx

If your code is correct, you will receive tokens.

- nodb register

It's a command to register in Nodb system Params: email, username

$nodb register

$Email? example@mail.com

$Username? xxxxxx

You will receive verification code in your above email if you put email, username correctly.

$Please type your verification code? xxxxx

Then, you need to put it in terminal. At this point you will see terms and privacy agree prompt

$Do you agree our Terms and Privacy?

*Yes

*No

If Yes, you will receive registration success email If No, your account will be inactive status

-nodb activate

It's a command to activate an account Params: username

$nodb activate

$Username? xxxx

If your username is correct, you will see terms and privacy agree prompt If you choose Yes, your account will be activated. If your username is incorrect, your will receive failed message.

No user exist with this username!

NOTE:

If you got success result with login command, .nodb folder will be created below path in your machine

C:/Users/your username/.nodb

And access token, refresh token, id token will be stored there same as aws credentials Then when you call api with curl, token will be added automatically in your request header

As a background job, every after 23 hours from logged in time, api will be called to get access token with refresh token, so logged in status will be kept for about 10 years
1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago