CodeThreat CLI is a command-line interface tool designed to enhance application security by integrating with the CodeThreat platform. It allows developers and security professionals to analyze codebases, detect vulnerabilities, and generate security reports directly from the command line.
The CodeThreat CLI is part of the CodeThreat application security platform, designed to streamline the security analysis process for developers and security teams. By leveraging this tool, users can automate security scans, integrate with CI/CD pipelines, and receive actionable insights to improve the security posture of their applications.
To install the CodeThreat CLI, download the appropriate version for your operating system from the Releases page.
- Download the latest release for your operating system.
- Extract the contents of the downloaded archive.
- Move the executable (
codethreat-cli
orcodethreat-cli.exe
) to a directory included in your system'sPATH
. (Optional)
Once installed, the CodeThreat CLI can be invoked using the codethreat-cli
command. Below are some common usage scenarios.
Before performing any scans, you must authenticate with the CodeThreat platform.
-
Login:
codethreat-cli auth login --org <your-organization> --token <your-api-token> --url <base-codethreat-url>
-
Remove authentication:
codethreat-cli auth remove
To scan a project for security vulnerabilities, use the scan
command.
-
Basic Scan:
codethreat-cli scan --target /path/to/your/project --project <project-name>
We welcome contributions from the community! If you would like to contribute:
- Fork the repository
- Create a new branch (
git checkout -b feature/your-feature-name
) - Make your changes
- Commit your changes (
git commit -m 'Add some feature'
) - Push to the branch (
git push origin feature/your-feature-name
) - Create a pull request
Please refer to our CONTRIBUTING.md file for detailed guidelines.
This project is licensed under the MIT License. See the LICENSE file for more details.
If you encounter any issues or have any questions, please feel free to open an issue or contact our support team at support@codethreat.com.