Acerca de
Debricked's command line interface. It brings open source security, compliance and health to your project via the command prompt.
Seguridad y privacidadCrecimiento de estrellas medido
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- Recopilando historial
- in 1 month
- Recopilando historial
Cambios netos en períodos que se solapan, no totales diarios. Los datos no disponibles se dejan en blanco. Las estrellas indican interés, no calidad.
README.md
Original
Debricked CLI
Safety through commandline.
debricked.com »
debricked is Debricked's command line interface. It brings open source security, compliance and health to your
project via the command prompt.
Installation
Check out the releases page. Choose the asset that is applicable for your system. Below follow some common ways to install the CLI.
Linux
curl -LsS https://github.com/debricked/cli/releases/download/release-v2/cli_linux_x86_64.tar.gz | tar -xz debricked
./debricked
Mac
curl -LsS https://github.com/debricked/cli/releases/download/release-v2/cli_macOS_arm64.tar.gz | tar -xz debricked
./debricked
Windows
- Download zip
- Unpack zip
.\debricked
Docker
docker pull debricked/cli:2-resolution-debian
Scan
Once you've installed the CLI, you're ready to scan your project. You can scan a local project, or integrate a scanning mechanism in your CI/CD pipeline.
- Sign up to Debricked
- Create an access token
debricked scan -t <access-token>
When the scan is complete, you will see the total number of vulnerabilities found and a list of automation rules that have been evaluated. Read more about automations here.
Exit codes
| Code | Meaning |
|---|---|
| 0 | The scan completed and no triggered automation rule failed the pipeline |
| 1 | The scan failed. This covers triggered automation rules configured to fail the pipeline, resolution failures (see below), and errors such as a bad access token or an unreachable service |
| 3 | The scan completed, but some (not all) dependency files failed to resolve. Only produced by --resolution-strictness=3 |
Failed resolution of dependency files affects the scan and its exit code according to
--resolution-strictness (default 1):
| Level | Meaning |
|---|---|
| 0 | Always continue the scan, even if any or all files failed to resolve |
| 1 | Exit with code 1 if all files failed to resolve, otherwise continue the scan |
| 2 | Exit with code 1 if any file failed to resolve, otherwise continue the scan |
| 3 | Exit with code 1 if all files failed to resolve. If some but not all files failed to resolve, complete the scan and then exit with code 3 |
A resolution failure typically means the relevant package manager is not installed or not on the
PATH (for example mvn or composer).
If Debricked's scan queue is long, the CLI stops polling for progress and exits with code 1, having
printed a link to the results. Pass --pass-on-timeout to exit 0 in that case instead.
Docker
To make a scan directly through Docker based on your current working directory, you can use the following command:
docker run -v $(pwd):/root debricked/cli:2-resolution-debian debricked scan -t <access-token>
CI/CD integration
If you would rather use debricked in your CI/CD pipelines, check out the templates.
MCP
debricked mcp start runs a Model Context Protocol server over stdio, letting
AI coding assistants (Claude, Copilot, Cursor, etc.) check whether a dependency is allowed by your Fortify SCA
policies before it's installed.
- Authenticate once with
debricked auth login, or have a Debricked access token ready to pass via--access-token/DEBRICKED_TOKEN. - Configure your MCP client. No access token is ever written to a config file by
debricked; the server always authenticates using your cacheddebricked auth loginsession (or--access-token/DEBRICKED_TOKENif set).
Automatic setup (recommended)
debricked mcp setup --client vscode # or claude / cursor
This adds a debricked entry to the client's config file (.vscode/mcp.json, .cursor/mcp.json at the project
level by default, or Claude Desktop's global config). Existing entries/config are preserved and a .bak copy is
written before any existing file is modified. Pass --global to configure the user-level VS Code/Cursor config
instead of the project one.
Check that everything is wired up and the server actually starts and authenticates:
debricked mcp status # checks vscode, claude and cursor
debricked mcp status --client vscode
Remove the entry again (the config file itself is never deleted):
debricked mcp uninstall --client vscode
Manual setup
If you'd rather edit client config yourself, or want to see what mcp setup writes, point your MCP client at the
debricked binary with the mcp start arguments. Examples below assume debricked is on your PATH; otherwise
use the full path to the binary.
VS Code (.vscode/mcp.json)
{
"servers": {
"debricked": {
"type": "stdio",
"command": "debricked",
"args": ["mcp", "start"]
}
}
}
Claude Desktop (claude_desktop_config.json)
{
"mcpServers": {
"debricked": {
"type": "stdio",
"command": "debricked",
"args": ["mcp", "start"]
}
}
}
Cursor (.cursor/mcp.json)
{
"mcpServers": {
"debricked": {
"type": "stdio",
"command": "debricked",
"args": ["mcp", "start"]
}
}
}
If you haven't run debricked auth login, pass the token explicitly instead:
{
"command": "debricked",
"args": ["mcp", "start"],
"env": {
"DEBRICKED_TOKEN": "<access-token>"
}
}
Policy
Validate your debricked_policy.json against Debricked's policy schema before you scan, so that a
broken policy file is caught locally instead of in your pipeline.
debricked policy validate # validates ./debricked_policy.json
debricked policy validate .debricked/debricked_policy.json # validates a specific file
debricked policy validate .debricked # validates debricked_policy.json in that directory
Each validation error is printed on its own line, prefixed with the property it concerns:
⨯ debricked_policy.json has 2 validation errors
policies[0].name: The property name is required
policies[0].rules: Array must have at least 1 item
Pass --output json (-o json) to emit the result as JSON for CI integrations. Validation results
are written to stdout, other failures to stderr, which keeps the JSON output parseable:
{
"file": "debricked_policy.json",
"valid": false,
"errors": [
{
"propertyPath": "policies[0].name",
"message": "The property name is required",
"context": {"constraint": "required"}
}
]
}
Exit codes
| Code | Meaning |
|---|---|
| 0 | The policy file is valid |
| 1 | The policy file contains validation errors |
| 2 | The validation could not be performed, for example due to a missing policy file, a bad access token or an unreachable service |
Contributing
Thank you for your interest in making Debricked CLI even better! Read more about contributing to the project here.
Releasing
Go to the releases page, press Draft a new release.
Create a new tag. We loosely use semantic versioning for our versions.
- Major releases should only be used for major breaking changes.
- Minor releases should be used for minor breaking changes and new major features.
- Patch releases should be used for smaller improvements, bug fixes etc. No breaking changes are allowed in these.
2a. IF you released a major version. The following needs to be done:
- For a major, a upgrade document needs to be provided like we did for the 2.0 release.
- Our GitHub actions need to be updated accordingly. Like was done in this commit for the v1 -> v2 upgrade.
- Users need to be informed that a new major version is available and that they should upgrade.
- All integration templates needs to be updated to use the new major version.
- Our documentation needs to be updated to use the new major version.
- After having created a new tag in the New release dialogue. Press
Generate release notesto get some sane default notes. Adjust if necessary. It will look something like this:
When satisfied, press
Publish release.Artifacts should be automatically built in the Release workflow, please monitor it to make sure that the release are done correctly. Also make sure that the Docker workflow is triggered and successful for the given tag.
Explorar proyectos relacionados
Cargando…