vampy-cli
is a command-line utility for interacting with the Vampy server.
It allows you to manage products, repositories, perform scanning processes, and much more.
vampy-cli
is easy to use in CI/CD pipelines to run scans and stop piplines if the scan fails or the scan results do not match the specified release criteria (Security Quality Gates)
Vampy is a free ASPM platform that allows you to get results from SAST, DAST, SCA vulnerability scanners in one window, automate vulnerability elimination and triage processes, and manage risks.
You can install vampy-cli
using the curl
utility script or download a precompiled file from the GitHub release page.
$ curl -sSL https://get.vampy.ru | sh
The Releases page on GitHub contains compiled vampy-cli
files for various platforms
export VAMPY_CLI_VERSION=0.1.0
docker run \
registry.hexway.io/hexway/vampy-cli:${VAMPY_CLI_VERSION} \
help
vampy-cli [global options] command [command options]
-
upload
Uploads existing scan results. -
scan
Starts the scan process for the specified repository and scanner. -
quality-gate
Displays the QualityGate results for the selected product or repository. -
bg-task
Checks the status of a background task and provides details. -
products
Retrieves the list of products. -
repositories
Retrieves the list of repositories. -
help, h
Displays a list of available commands or help for a specific command.
Option | Description | Default Value |
---|---|---|
--help, -h |
Displays help. | |
--details |
Shows detailed output for the requested action (e.g., a table with QualityGate results). | false |
--verbose |
Shows additional output (e.g., each step of the requested action). | false |
--version, -v |
Outputs only the program version. | false |
Option | Description | Default Value |
---|---|---|
--api-token value |
API token for connecting to the Vampy server (or value from environment variable). | value from $VAMPY_API_TOKEN |
--api-version value |
Vampy API version. | v1 |
--timeout value |
Timeout in seconds. | 120 |
--vampy-url value |
URL of the Vampy server (or value from environment variable). | value from $VAMPY_URL |
To use vampy-cli
you need to define two mandatory connection parameters:
Option | Description | Default Value |
---|---|---|
--api-token value |
API token for connecting to the Vampy server (or value from environment variable). | value from $VAMPY_API_TOKEN |
--vampy-url value |
URL of the Vampy server (or value from environment variable). | value from $VAMPY_URL |
You can define them in several ways:
export VAMPY_API_TOKEN=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VybmFtZSI6InJlc3QtYXBpLXNlYy1lbmdpbmVlciIsImlhdCI6MTcyNTQzMjc5MS4wNjI5NX0.YMCIToiWf0wJwGG8O37-i7I1p47TCFQZyM2ZzxHWcxk
export VAMPY_URL=https://vampy.hexway.io
# get repositories list
./vampy_cli repositories
# get repositories list
./vampy_cli --vampy-url https://vampy.hexway.io --api-token eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VybmFtZSI6InZtcC1jbGkiLCJpYXQiOjE3MzM5MzI2MDYuNjk1Mjk4fQ.TNWsDdhpct6PhZ0jTBZ7QTQyFuMzLN2oBr99e3uhRkA products
./vampy_cli upload --repository vmp/product/vampy-engine --file ~/scans_trivy_image.json --scanner TRIVY_IMAGE
./vampy_cli scan --repository vmp/product/vampy-engine --check-task --details
vampy-cli quality-gate --verbose
./vampy_cli bg-task --task-id <task-id> --details
./vampy_cli products
./vampy_cli repositories
If you have any questions or issues, use the help command:
./vampy_cli help