Skip to content

Installation

SpecLeft is a Python CLI and pytest plugin. It is safe by default and does not write files unless you explicitly ask it to.

  • Python 3.10+
  • A Git repository (recommended)
  • pytest (only required when you run tests)

Install from PyPI:

Terminal window
pip install specleft

Verify the install:

Terminal window
specleft doctor

If you want a sample spec to explore the format, run this at the repo root:

Terminal window
specleft init

This creates a .specleft/specs/ directory with a simple example file.

SpecLeft is passive by default. You can preview any write operation before committing to it:

Terminal window
specleft plan --dry-run