Getting Started
A Scan is the action performed by the Xygeni Scanner to find security issues in your project.
In an on-premise platform scanner CLI should be installed from Xygeni on-premise url.
1. Install the Scanner CLI from on-premise Url
An installation script is provided for automated installation.
The recommended, automated way to install the scanner is to use the installation script.
The Xygeni bootstrap script is provided by Xygeni as a way to set up your scanning environment as fast as possible. It downloads the scanner, verifies its SHA-256 checksum and unpacks it into $HOME/.xygeni (pass a directory as the first argument to install elsewhere).
The scanner needs Java 17 or higher.
Download the script
Run one of the following commands depending on your preferences, verifying the script against its published checksum before you run it:
curl -sSfL -o get-xygeni.sh https://get.xygeni.io/latest/scanner/get-xygeni.sh &&
curl -sSfL -o get-xygeni.sh.sha256 https://raw.githubusercontent.com/xygeni/xygeni/main/checksum/latest/get-xygeni.sh.sha256 &&
echo "$(cat get-xygeni.sh.sha256) get-xygeni.sh" | sha256sum -c -Do not run the script unless that last command prints get-xygeni.sh: OK.
iwr https://get.xygeni.io/latest/scanner/get-xygeni.ps1 -useb -OutFile get-xygeni.ps1
$r = (Invoke-WebRequest https://raw.githubusercontent.com/xygeni/xygeni/main/checksum/latest/get-xygeni.ps1.sha256 -UseBasicParsing)
$h = if ($r.Content -is [byte[]]) { [System.Text.Encoding]::UTF8.GetString($r.Content).Trim() } else { $r.Content.Trim() }
if ((Get-FileHash .\get-xygeni.ps1 -Algorithm SHA256).Hash -ne $h) { throw "Checksum mismatch - refusing to run get-xygeni.ps1" }The throw is what makes this a check rather than a report: without it a mismatch only prints False, and the next command runs anyway.
2. Fetch your Xygeni account credentials or API token
An Access Token, also referred to as an API token or API key, is used by applications such as the Xygeni Scanner or other integrations to access the Xygeni platform's API.
To create an access token in the Dashboard, go to the Settings >>Profile>> Access tokens, then click on the Generate new token button. Go to Generate Token for Scanner and API client for further details.
Describe what the token will be used for, choose the validity period, and select the permissions granted to the token. Click on the Generate button:
Finally, the token is generated:
3. Run the bootstrap script
The variable XYGENI_URL refers to the on-premise Xygeni API server; you can get it from the API or ask your platform administrator.
The variable XYGENI_TOKEN stores the Xygeni API token used to authenticate with the service.
The scanner reads both from the environment — the shipped conf/xygeni.yml resolves apikey: ${XYGENI_TOKEN} and url: ${XYGENI_URL:-https://api.xygeni.io} — so export them and the bootstrap script needs no further arguments:
The scanner is installed into $HOME/.xygeni. To install elsewhere, pass the target directory as the first argument.
4. Run your first scan
Once Xygeni Scanner CLI is installed an scan can be run, ensure that you have a file system folder containing your project content. This folder may be a clone of your repository or simply a directory housing the source code for your project.
Navigate to your project directory, with the command cd /my/project. Once there, initiate a scan by running xygeni scan. All vulnerabilities identified are listed, including their path and fix guidance.
You can also use these commands below for other cases:
5. View scan results
After the scan is done, log into the Dashboard, use the on-premise url https://-on-premise-hostname-/auth/login to access the Xygeni on-premise dashboard, and navigate to the Governance tab to access the Security Posture Summary screen.
Last updated

