Skip to main content

Enterprise CLI for AI/ML Security with Interactive Remediation - Scan, Fix, and Secure AI Supply Chains

Project description

Nexula CLI

Enterprise-grade CLI for Nexula AI Supply Chain Security Platform.

Installation

cd nexula-cli
pip install -e .

Quick Start

1. Authentication

Login with your API key (generate from dashboard):

nexula auth login
# Enter API key when prompted

Check authentication status:

nexula auth whoami

2. Initialize Project

Initialize Nexula in your AI/ML project directory:

cd /path/to/your/ai-project
nexula init

This will:

  • List available workspaces
  • Let you select or create a project
  • Save configuration to .nexula.yaml

3. Generate AIBOM

Generate AI Bill of Materials (discovers all AI/ML assets):

nexula aibom generate

List AIBOMs:

nexula aibom list

View AIBOM details:

nexula aibom view <aibom-id>

4. Run Security Scan

Run comprehensive security scan:

nexula scan run --wait

Run specific scanners:

nexula scan run --scanners sast --scanners cve --wait

Check scan status:

nexula scan status <scan-id>

View scan results:

nexula scan results <scan-id>

List all scans:

nexula scan list

Available Scanners

  • sast - Static Application Security Testing
  • cve - CVE/Vulnerability Detection
  • secrets - Secrets Detection
  • ml_poisoning - ML Model Poisoning Detection
  • dataset_poisoning - Dataset Poisoning Detection
  • llm_security - LLM Security Analysis
  • rag_security - RAG Security Analysis
  • model_provenance - Model Provenance Verification
  • container_registry - Container Registry Security
  • license - License Compliance

Configuration

Global Config (~/.nexula/config.yaml)

Stores:

  • API key (encrypted)
  • API URL
  • User preferences

Project Config (.nexula.yaml)

Stores:

  • Workspace ID
  • Project ID
  • Project-specific settings

Commands Reference

Auth Commands

nexula auth login              # Login with API key
nexula auth logout             # Logout and clear credentials
nexula auth whoami             # Show current user

Project Commands

nexula init                    # Initialize project
nexula init --create           # Create new project
nexula init --workspace-id 1   # Use specific workspace

AIBOM Commands

nexula aibom generate          # Generate AIBOM
nexula aibom generate --path . # Specify path
nexula aibom list              # List AIBOMs
nexula aibom view <id>         # View AIBOM details

Scan Commands

nexula scan run                           # Run all scanners
nexula scan run --wait                    # Wait for completion
nexula scan run --scanners sast --scanners cve  # Specific scanners
nexula scan status <id>                   # Check status
nexula scan results <id>                  # View results
nexula scan results <id> --format json    # JSON output
nexula scan list                          # List scans

CI/CD Integration

GitHub Actions

name: Nexula Security Scan

on: [push, pull_request]

jobs:
  security-scan:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v3
      
      - name: Install Nexula CLI
        run: pip install nexula-cli
      
      - name: Run Security Scan
        env:
          NEXULA_API_KEY: ${{ secrets.NEXULA_API_KEY }}
        run: |
          echo "$NEXULA_API_KEY" | nexula auth login --api-key -
          nexula init --workspace-id 1 --project-id 1
          nexula aibom generate
          nexula scan run --wait

GitLab CI

nexula-scan:
  image: python:3.11
  script:
    - pip install nexula-cli
    - echo "$NEXULA_API_KEY" | nexula auth login --api-key -
    - nexula init --workspace-id 1 --project-id 1
    - nexula aibom generate
    - nexula scan run --wait
  variables:
    NEXULA_API_KEY: $NEXULA_API_KEY

Environment Variables

Troubleshooting

Authentication Issues

# Clear credentials and re-login
nexula auth logout
nexula auth login

Project Not Found

# Re-initialize project
nexula init

API Connection Issues

# Check API URL
nexula auth whoami

# Set custom API URL
nexula auth login --api-url https://api.nexula.one/api/v1

Support

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nexula_cli-2.0.0.tar.gz (14.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

nexula_cli-2.0.0-py3-none-any.whl (15.5 kB view details)

Uploaded Python 3

File details

Details for the file nexula_cli-2.0.0.tar.gz.

File metadata

  • Download URL: nexula_cli-2.0.0.tar.gz
  • Upload date:
  • Size: 14.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.9

File hashes

Hashes for nexula_cli-2.0.0.tar.gz
Algorithm Hash digest
SHA256 ccfd0ae48db4aa39325aeac41556a7b75d1742a64b61f6550ca57f430b6fbe1c
MD5 2220a177a57737cb2ac1f731ece8b947
BLAKE2b-256 e562a4a9bd2343126f8508ccbabf6627c3cd9ce8f644522fece549e3570b20db

See more details on using hashes here.

File details

Details for the file nexula_cli-2.0.0-py3-none-any.whl.

File metadata

  • Download URL: nexula_cli-2.0.0-py3-none-any.whl
  • Upload date:
  • Size: 15.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.9

File hashes

Hashes for nexula_cli-2.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8398a34f8029d1e763816a9dacb4cd6b13c6f8923f25f097c0b875f9658e1e89
MD5 d6e29fcee83d514e00331fc8aed0df8f
BLAKE2b-256 07334a7d00c8e5da5985f93ce70b49132758833c9a01e7ee62bb35a27818e9e7

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page