Server CLI Authentication

The Server CLI uses BlinkMobile Identity to authenticate your access.

Identity currently supports a username and password combination, or enterprise appropriate identity providers such as:

  • Google
  • Microsoft
  • Github
  • LinkedIn

Install Identity CLI

If you haven't yet installed the Identity CLI (the previous step will have installed this for you, if you copied the entire Server CLI installation command), you can do so by running the command:

npm install -g @blinkmobile/cli @blinkmobile/identity-cli


Login

Once you've installed Identity, you can login to BlinkMobile by running the login command:

bm identity login

A browser window will be opened, and you'll be able to select your identify provider.

Once you login, you will be provided with a code to copy and paste into your command line prompt.

This will authenticate you, and you will now be logged in.


Logout

Once you've finished using the BlinkMobile services, it is good practice to logout again. You can do so by running the command:

bm identity logout


Next Step

Creating Your Project Structure