Integration Tips & Recommendations
Logging in from a non-graphical environment
Section titled “Logging in from a non-graphical environment”The FlexAI CLI does not currently support directly logging in from a virtual non-graphical environment, such as a Virtual Machine (VM) instance. This is because the CLI requires a web browser to authenticate the user through their GitHub account.
There is however a workaround to this current limitation: You can install the FCS CLI on a machine equipped with a web browser, log in using the flexai auth login
command and then copy the FCS CLI configuration file contents to the VM’s $HOME/.flexai/config.yaml
configuration file:
- Log into FCS from a machine equipped with a web browser
- Open the
$HOME/.flexai/config.yaml
file on that machine - Copy its contents
- Open the
$HOME/.flexai/config.yaml
file on your machine without a graphical environment - Paste the contents of the first configuration file into the second one
The FlexAI CLI on the machine without a graphical environment should now be authenticated and ready to use.
Running the FlexAI CLI on a local VM or Container
Section titled “Running the FlexAI CLI on a local VM or Container”If the environment you’re using to run the FCS CLI is a local VM or container, you can set-up your environment to use host networking to allow the FCS CLI to get the authentication callback message from your host system.