Skip to main content

husonym login

Overview

Learn how to login to husonym via the husonym login command.

The husonym login command is used to login to husonym through the CLI to generate an access token. This can then be utilized with other commands to perform authenticated requests to Husonym API.

Usage

husonym login

Running this command will open up a browser window and direct the user through the login flow that has been configured by the API.

If on success, an access token and (optionally) a refresh token will be saved to the filesystem in $HUSONYM_CONFIG_DIR.

Environment Variables

VariableDescriptionIs RequiredDefault Value
HUSONYM_API_URLThe base url of the Husonym API. This can be overridden to connect to different Husonym API environmentsfalsehttp://localhost:8080
HUSONYM_API_KEYThe api key for Husonym API.false
LOGIN_HOSTThe http server that is booted up running husonym login via an oauth flowfalse127.0.0.1
LOGIN_REDIRECT_HOSTThe redirect host that is sent alongside the oauth flow when running husonym loginfalse127.0.0.1
LOGIN_PORTThe port the http server runs on when running husonym loginfalse4242