Knoxctl Configuration Setup¶
Step 1: Create an Access Key¶
- Log in to AccuKnox Control Plane.
- Go to Settings → User-Management.
- Click the three-dot menu next to your username.
- Select Get Access Key.
- Fill in name, role (preferably Viewer), and expiry. Click Generate.
- Copy the Token and Tenant ID.
Step 2: Create .accuknox.cfg
File¶
Create the config file at this location:
$HOME/.accuknox.cfg
With the following content:
[default]
access_token = <YOUR_ACCESS_TOKEN>
tenant_id = <YOUR_TENANT_ID>
Replace <YOUR_ACCESS_TOKEN>
and <YOUR_TENANT_ID>
with the values you copied.
You're done!✅
Your AccuKnox CLI configuration is now set up.
You can verify it by running:
knoxctl api cluster list
If everything is configured correctly, you should see a list of your clusters.
knoxctl
will now use this config automatically for CLI operations.