Install and Configure Omnictl
A guide on installing and configuring omnictl for Omni.
1. Installation
Pick one of the installation methods below.
a. Recommended installation
To install omnictl
and the kubectl oidc-login
plugin automatically on macOS and Linux you can use the provided Hombrew formula.
This will install talosctl
, omnictl
, and kube-oidc_login
and keep them updated.
b. Manual installation
Download omnictl
from the Omni dashboard.
2. Configuration File
Download omniconfig
from the Omni dashboard.
Omni configuration is stored under $XDG_CONFIG_HOME/omni/config
. This means, the correct configuration file locations for omniconfig
are the following:
Linux
~/.config/omni/config
MacOS
~/Library/Application Support/omni/config
Windows
%LOCALAPPDATA%\omni\config
, e.g., C:\Users\<USER>\AppData\Local\omni\config
Add the downloaded omniconfig.yaml
to the default location for your OS to use it with omnictl
:
If you would like to merge the omniconfig.yaml
with an existing configuration, use the following command:
List the contexts to verify that the omniconfig
was added:
Run omnictl
for the first time to perform initial authentication using a web browser:
If the browser window does not open automatically, it can be opened manually by copying and pasting the URL into a web browser:
Last updated