Skip to content

Command Reference

peeq provides commands for inspecting Python packages, resolving dependencies, and managing the local cache. Every command works directly against a package registry — no installation required.

Commands

Inspection

  • info

    Show package metadata with optional version history, vulnerability scan, and dependency list.

  • versions

    List available versions with filtering by specifier, limit, or yanked status.

  • deps

    Show package dependencies, with optional diff between versions.

  • artifacts

    List distribution artifacts — wheels and sdists — for a version.

  • cat

    Print a file from inside a package archive.

  • ls

    List file paths inside a package archive.

  • download

    Download a package archive or extract its contents to disk.

Resolution & Security

  • vulns

    Check for known vulnerabilities via the OSV database.

  • resolve

    Resolve a full dependency tree for one or more PEP 508 requirements.

  • conflicts

    Check if packages can be installed together.

  • why

    Trace why a package appears in the dependency tree.

System

  • cache

    Cache management — view stats, clear entries, check integrity.

  • config path

    Print the configuration file path.

  • skill show

    Print agent skill instructions for AI agents.

Global options

These options apply to every command.

Option Description
--format, -f Output format: pretty, plain, agent, json. Auto-detected by default (see below).
--no-cache Bypass the cache entirely — don't read from or write to it.
--index-url, -i Package index URL. Defaults to https://pypi.org.
--backend Backend type override: pypi (PEP 691 JSON) or simple (PEP 503 HTML). Auto-detected by default.
--verbose, -v Enable verbose logging.

Use peeq --version to print the version number and exit.

Output format auto-detection

When --format is not specified, peeq selects a format automatically:

  • Terminal (TTY)pretty format with Rich panels, tables, and syntax highlighting.
  • Piped or redirectedplain format with clean text and no ANSI codes.

The agent and json formats are never auto-selected. Use --format agent or --format json explicitly.

Version defaulting

Most commands accept a --version option to target a specific package release. When omitted, peeq defaults to the latest non-yanked version.