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 | |
|---|---|---|---|
| precogs_cli-0.1.0.tar.gz | 5.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| precogs_cli-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
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
|