Authorization
How to login to Kyso with the Kyso CLI
Remember to set the environment variable NEXT_PUBLIC_API_URL to point to the Kyso instance you want to use!
Before executing any action using Kyso CLI, an authentication and authorization process must be fulfilled.
Kyso offers different ways to authenticate for, and brings an interactive mode to allow users to do so easily.
To execute the interactive authentication mode just execute kyso-cli login and follow the instructions.
1
kyso-cli login
2
? Select a provider (Use arrow keys)
3
❯ Kyso
4
Access token
5
Google
6
Github
7
Bitbucket
Copied!
Every authentication system can be called without using the interactive mode. This is extremely useful when Kyso CLI is being used in CI/CD pipelines. Check out the next sections for detailed instructions.

Username and password

Interactive mode

Open your terminal, execute kyso-cli login and select Kyso as the provider.
1
kyso-cli login
2
? Select a provider (Use arrow keys)
3
❯ Kyso
4
Access token
5
Google
6
Github
7
BitbucketExplicit mode
Copied!
You will be asked for your username and your password, and if they are correct, you will be successfully logged into Kyso.
1
kyso-cli login
2
? Select a provider Kyso
3
? What is your username? [email protected]
4
? What is your password? *******
5
Logged successfully
Copied!

Explicit mode

Open your terminal and execute the next command:
1
kyso-cli login --provider kyso --username [email protected] --password your_password
Copied!
Using your password in command line tools is not the best secure practice. We strongly recommend to use the Access Token alternative instead!

Access Token

COMING SOON!!!

Google

Only available in interactive mode!

Open your terminal, execute kyso-cli login and select Google as your provider.
1
kyso-cli login
2
? Select a provider (Use arrow keys)
3
Kyso
4
Access token
5
❯ Google
6
Github
7
Bitbucket
Copied!
Documentation needed!

Github

Only available in interactive mode!

Open your terminal, execute kyso-cli login and select Github as your provider.
1
kyso-cli login
2
? Select a provider (Use arrow keys)
3
Kyso
4
Access token
5
Google
6
❯ Github
7
Bitbucket
Copied!
Documentation needed!

Bitbucket

Only available in interactive mode!

Open your terminal, execute kyso-cli login and select Bitbucket as your provider.
1
kyso-cli login
2
? Select a provider (Use arrow keys)
3
Kyso
4
Access token
5
Google
6
Github
7
❯ Bitbucket
Copied!
Documentation needed!

Gitlab

Only available in interactive mode!

Open your terminal, execute kyso-cli login and select Bitbucket as your provider.
1
kyso-cli login
2
? Select a provider (Use arrow keys)
3
Kyso
4
Access token
5
Google
6
Github
7
❯ Bitbucket
Copied!
Documentation needed!