Login into the Sama CLI is easily done by running the command sama login

Name:
   login

Description:
    Login to Sama via OAuth credentials.

Usage:
    sama login [flags]

Flags:
    -h, --help   help for login

Step 1: Open your terminal and run the command sama login

Step 2: Enter your credentials

You will be redirected to the Sama CLI login page.

Enter your Sama credentials and click on "log in", you will be redirected to a page that has your login token.

Step 3: Use your token

Click on "copy to clipboard" paste the token in the terminal and click enter

Now that you are logged in, you can start trying some other commands!