Skip to main content

EntelligenceAI CLI - AI-powered code review from your terminal

Project description

EntelligenceAI CLI

AI-powered code review from your terminal.

Quick Start

# Setup (this will install uv if not already there)
make setup

# Authenticate
entelligence auth login

# Run review
entelligence review

Installation

# Development (recommended)
make setup
# or
uv sync --dev

# Production
uv pip install entelligence-cli

Authentication

Get your API key from app.entelligence.ai/settings?tab=api

entelligence auth login
entelligence auth status
entelligence auth logout

Usage

# Review changes
entelligence review

# Options
entelligence review --base-branch main --priority high --mode concise
entelligence review --include-uncommitted  # Include uncommitted changes
entelligence review --plain                # Plain text output
entelligence review --debug               # Debug mode

Configuration

Config file: ~/.entelligence/config.json (permissions: 0o600)

Stored locally:

  • api_key - Saved during entelligence auth login

Fetched from backend:

  • OrgUUID - Fetched from /getUserInfo/ endpoint at session start (required)
  • GitHubToken - Fetched from /getUserInfo/ endpoint at session start (optional)

Environment variables:

  • ENTELLIGENCE_API_KEY - API key (auto-saved to config file on login)
  • ENTELLIGENCE_ENDPOINT - API endpoint (default: http://127.0.0.1:8000/generateReviewForPR/)

Development

make setup          # Initial setup
make test           # Run tests
make format         # Format code
make lint           # Lint code
make type-check     # Type check
make check          # Run all checks
make clean          # Clean build artifacts
make help           # Show all commands

Publishing

The package is automatically published to PyPI when a new GitHub release is created.

Before publishing:

  1. Update version in pyproject.toml
  2. Commit and push changes
  3. Create a new GitHub release (tagged with version, e.g., v0.1.0)

Manual publishing:

# Build package
uv build

# Publish to PyPI (requires PyPI credentials)
uv publish

Setup PyPI Trusted Publisher (one-time):

  1. Go to PyPI project settings → "Publishing" → "Add a new trusted publisher"
  2. Select "GitHub" as publisher
  3. Specify repository: Entelligence-AI/cli
  4. Workflow file: .github/workflows/publish.yml
  5. Environment name: (Any) or pypi

Uninstall

# Uninstall the CLI tool
uv pip uninstall entelligence-cli

# Remove configuration files (API keys, tokens, etc.)
rm -rf ~/.entelligence/

Troubleshooting

401 Unauthorized: Verify API key with entelligence auth status

Connection errors: Ensure backend is running at the configured endpoint

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

entelligence_cli-0.1.0.tar.gz (30.2 kB view details)

Uploaded Source

Built Distribution

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

entelligence_cli-0.1.0-py3-none-any.whl (31.4 kB view details)

Uploaded Python 3

File details

Details for the file entelligence_cli-0.1.0.tar.gz.

File metadata

  • Download URL: entelligence_cli-0.1.0.tar.gz
  • Upload date:
  • Size: 30.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for entelligence_cli-0.1.0.tar.gz
Algorithm Hash digest
SHA256 10bfe4082fda885a2aa1b785df71cc782d5c2ab42efe572d885af6eb5ac60cb2
MD5 0b39367fb91f60b1c265af3ad88f4efa
BLAKE2b-256 97d489d67e6ebe063514d4e774be3505be933441ef9b948103e4e7daa2eeb9ba

See more details on using hashes here.

Provenance

The following attestation bundles were made for entelligence_cli-0.1.0.tar.gz:

Publisher: publish.yml on Entelligence-AI/cli

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file entelligence_cli-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for entelligence_cli-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 af48a72ad71370a9b9e007952685ba27b6dfff1328230f328f2400e99eace43d
MD5 9f8938a40e8737e3be47694d36505008
BLAKE2b-256 1e90dc9d0a40352b950f70b17f83ef25fdf3c4e1d6c3438b3b9597add8c4936a

See more details on using hashes here.

Provenance

The following attestation bundles were made for entelligence_cli-0.1.0-py3-none-any.whl:

Publisher: publish.yml on Entelligence-AI/cli

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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