EarthScope CLI Authentication#
The EarthScope CLI provides multiple authentication methods to suit different use cases. Once refreshable credentials are available, the CLI will transparently handle access token refresh on your behalf.
Login to the CLI#
Use the es login CLI command to trigger the authentication flow.
This command will attempt to automatically open your browser, where you will log into your EarthScope account. Once you’ve logged in, you can close the window.
es login
Attempting to automatically open the SSO authorization page in your default browser.
If the browser does not open or you wish to use a different device to authorize this request, open the following URL:
https://login.earthscope.org/activate?user_code=ABCD-EFGH
Successful login! Access token expires at 2024-12-27 18:50:37+00:00
After logging in, the CLI (and SDK!) will leverage these credentials for future requests to EarthScope’s API.
Note
If your browser does not automatically open, just copy the URL output by the CLI into a browser.
If you’d like to double-check your CLI is authenticated and ready to go, just fetch your EarthScope user profile.