Command-line interface for Precogs AI security platform
Project description
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
precogs_cli-0.1.0.tar.gz
(5.6 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file precogs_cli-0.1.0.tar.gz.
File metadata
- Download URL: precogs_cli-0.1.0.tar.gz
- Upload date:
- Size: 5.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
96ac62bd7a361a56e68ef44b41a490d158b0251ac835b885224f257c2c16f2ca
|
|
| MD5 |
ae18f1ef9ec532f5b0385a74689427b9
|
|
| BLAKE2b-256 |
cdb4a2536ffb035ae3996a23fd96265a521790cfbd8d0e0affdab7fc42fbcaf7
|
File details
Details for the file precogs_cli-0.1.0-py3-none-any.whl.
File metadata
- Download URL: precogs_cli-0.1.0-py3-none-any.whl
- Upload date:
- Size: 7.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
eb1a8bcdd23d6ed1d0127e19fc5c975f9a551e691ec2308494b2a7b65f262dad
|
|
| MD5 |
00e230296833fe678cf8be067aff7b6e
|
|
| BLAKE2b-256 |
0d2fa4c1892a501fd4de471fe4d6a134cd26c2f3dfa1d6af7d5824ad456437fb
|