Fioctl CLI Installation¶
Fioctl, is used to manage:
We use Github Releases to distribute static golang binaries. If you don’t have a package manager, are not on a supported distribution, or would prefer to install manually, you can refer to this section for manual installation instructions.
Via Package Manager¶
Now that Fioctl is installed, you must authenticate with our backend before you’re able to use it. This requires you to generate OAuth2 application credentials for interacting with Factory APIs:
Fioctl will now ask for your API token and walk you through the authentication process.
Tokens can be generated at https://app.foundries.io/settings/tokens
We recommend creating a new API token for each device you plan to use our tools with. For example, if you intend to develop on multiple systems such as a laptop and a desktop, you should create a new token for each, just as you would with SSH keys. This way you can revoke tokens for individual systems, should they be compromised.
When working with multiple factories, specifying a factory name is mandatory. It can be set using 3 different methods:
–factory/-f argumentfioctl targets list --factory <factory>
environment variable FIOCTL_FACTORYexport FIOCTL_FACTORY=<factory> fioctl targets list
- config file’s factory optionecho "factory: <factory>" >> $HOME/.config/fioctl.yaml fioctl targets list
Refer to the Fioctl section of the documentation to learn more about configuration.