Roxctl CLI Installation
This guide provides instructions for installing, configuring, and using the roxctl command-line interface (CLI) for Alauda Security Service.
TOC
OverviewInstallationInstall on LinuxInstall on macOSInstall on WindowsVerificationConfigurationSetting Environment VariablesAuthentication MethodsAPI TokenUsing the roxctl CLICheck Authentication and User InfoOverview
- roxctl is the command-line entry point for managing and querying Alauda Security Service.
- Supported platforms: Linux, macOS, Windows.
- After installation, verify the CLI version to ensure correct setup.
Installation
Install on Linux
Supported architectures:
amd64,arm64,ppc64le,s390x
Steps:
-
Determine your architecture:
-
Download the binary from the portal:

-
Make it executable:
-
(Optional) Move to a directory in your
PATH:
Install on macOS
Supported architectures:
amd64,arm64
Steps:
-
Determine your architecture:
-
Download the binary from the portal:

-
Remove extended attributes:
-
Make it executable:
-
(Optional) Move to a directory in your
PATH:
Install on Windows
Supported architecture:
amd64
Steps:
-
Download the binary from the portal:

-
(Optional) Add the directory containing
roxctl.exeto your systemPATH. -
Verify the installation:
Verification
After installation, verify your roxctl version:
Configuration
Setting Environment Variables
Before using roxctl, set the environment variables required by your workflow:
Some commands also accept -e <central_host:port> directly.
If you use an API token for authentication:
Alternatively, you can use the --token-file option:
Note:
- Do not use both
--passwordand--token-fileoptions at the same time. - If both
ROX_API_TOKENand--token-fileare set, the CLI uses the token file. - If both
ROX_API_TOKENand--passwordare set, the CLI uses the password.
Authentication Methods
You can authenticate by using an API token, an administrator password for temporary testing, or the roxctl central login workflow.
API Token
API tokens are recommended for production and automation scenarios. They provide specific access permissions and are valid for up to one year.
To generate an API token:
- In the Alauda Security Service portal, go to Platform Configuration > Integrations.
- Under Authentication Tokens, click API Token.
- Click Generate token.
- Enter a name and select a role with the required access.
- Click Generate and securely store the token.
To use the token:
Using the roxctl CLI
Check Authentication and User Info
To view your current authentication status and user profile:
Example output:
Review the output to ensure your authentication and permissions are correct.