Authenticating the Lightrun CLI¶
Before you can start debugging with Lightrun from your CLI, you must first authenticate with your Lightrun account.
Prerequisites¶
This tutorial assumes that you have:
- A Lightrun account.
- Installed the Lightrun CLI on your local machine.
Authenticate in your CLI¶
- Navigate to the folder where your downloaded CLI
lightrunc.jar
file stored in your terminal. -
Run the following command.
java -jar lightrunc.jar login
.You will be redirected to your browser for authentication.
$ java -jar lightrunc.jar login Redirecting to your login URL: https://app.lightrun.com/auth/realms/lightrun/protocol/openid-connect/auth?client_id=web_app&response_mode=fragment&response_type=code&redirect_uri=https://app.lightrun.com/device/<> Press Enter to open URL in browser Logged in successfully!
-
Alternatively, you can chose authenticate the Lightrun CLI directly in your terminal.
java -jar lightrunc.jar login -email <jane.doe@example.com> -password <secretpassword>
Change
jane.doe@example.com
to your account username/email and change<secretpassword>
to your password.
Last update: December 18, 2024