Precogs CLI
Command-line interface for the Precogs AI security platform.
Installation
pip install precogs-cli
Quick Start
# Authenticate with your API key
precogs auth login
# List your projects
precogs projects list
# Trigger a code scan
precogs scan code <project-id>
# View vulnerabilities
precogs vulns list --severity critical
# Get AI-generated fix
precogs vulns fix <vuln-id>
Commands
Authentication
# Login with API key
precogs auth login
precogs auth login --api-key pk_live_xxx
# Check auth status
precogs auth status
# Logout
precogs auth logout
Projects
# List all projects
precogs projects list
# Get project details
precogs projects get <project-id>
Scanning
# Code security scan (SAST)
precogs scan code <project-id>
precogs scan code <project-id> --branch develop
# Dependency scan (SCA)
precogs scan dependency <project-id>
# Infrastructure as Code scan
precogs scan iac <project-id>
# Container image scan
precogs scan container <project-id> nginx:latest
Vulnerabilities
# List vulnerabilities
precogs vulns list
precogs vulns list --project <id> --severity high
# Get vulnerability details
precogs vulns get <vuln-id>
# Get AI-generated fix
precogs vulns fix <vuln-id>
Dashboard
# Show security overview
precogs dashboard
precogs dashboard --project <id>
Configuration
API key is stored in ~/.precogs/config.json
You can also set the PRECOGS_API_KEY environment variable:
export PRECOGS_API_KEY=pk_live_xxx
License
MIT License - see LICENSE for details.
Metadata
Release files for precogs-cli 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| precogs_cli-0.1.0.tar.gz | 5.6 kB | Without provenance | Details for precogs_cli-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| precogs_cli-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for precogs_cli-0.1.0-py3-none-any.whl |
Total release size: 12.6 kB
Release files / precogs_cli-0.1.0.tar.gz
| Download URL | precogs_cli-0.1.0.tar.gz |
|---|---|
| Size | 5.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
96ac62bd7a361a56e68ef44b41a490d158b0251ac835b885224f257c2c16f2ca
|
|
BLAKE2b-256 checksum How to use checksums |
cdb4a2536ffb035ae3996a23fd96265a521790cfbd8d0e0affdab7fc42fbcaf7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.6
|
Release files / precogs_cli-0.1.0-py3-none-any.whl
| Download URL | precogs_cli-0.1.0-py3-none-any.whl |
|---|---|
| Size | 7.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
eb1a8bcdd23d6ed1d0127e19fc5c975f9a551e691ec2308494b2a7b65f262dad
|
|
BLAKE2b-256 checksum How to use checksums |
0d2fa4c1892a501fd4de471fe4d6a134cd26c2f3dfa1d6af7d5824ad456437fb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.6
|
Security for precogs-cli 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.