Skip to main content

acli-spec

Python SDK for the ACLI (Agent-friendly CLI) specification.

Build CLI tools that AI agents can discover, learn, and use autonomously.

Installation

pip install acli-spec

Quick Start

from pathlib import Path
from acli import ACLIApp, acli_command, OutputFormat
import typer

app = ACLIApp(name="myapp", version="1.0.0")

@app.command()
@acli_command(
    examples=[
        ("Run a task", "myapp run --file task.yaml"),
        ("Dry-run a task", "myapp run --file task.yaml --dry-run"),
    ],
    idempotent=False,
)
def run(
    file: Path = typer.Option(..., help="Path to task file. type:path"),
    dry_run: bool = typer.Option(False, help="Preview without executing."),
    output: OutputFormat = typer.Option(OutputFormat.text, help="Output format."),
) -> None:
    """Execute a task from a YAML file."""
    ...

if __name__ == "__main__":
    app.run()

What you get automatically

  • introspect command with full command tree as JSON
  • .cli/ folder generation (README, examples, schemas)
  • JSON error envelope on --output json
  • Semantic exit codes (0-9)
  • --version with semver output

License

EUPL-1.2

Metadata

Release files for acli-spec 0.5.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for acli-spec 0.5.0
File Size Uploaded
acli_spec-0.5.0.tar.gz 26.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for acli-spec 0.5.0
File Interpreter ABI Platform
acli_spec-0.5.0-py3-none-any.whl Python 3 none any Details

Total release size: 46.9 kB

Release files / acli_spec-0.5.0.tar.gz

Download URL acli_spec-0.5.0.tar.gz
Size 26.0 kB
Tags Source
SHA-256 checksum
How to use checksums
222cb45c51517cdaa19a626c2d0ac08bc69eb9f59f54a62bddd62623aa88c466
BLAKE2b-256 checksum
How to use checksums
27219721d39725d5e8872014987e870ee52fa50f223de242a6011d130fab1759
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Apr 23, 2026.

Transparency log

Release files / acli_spec-0.5.0-py3-none-any.whl

Download URL acli_spec-0.5.0-py3-none-any.whl
Size 20.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
512515f65f29577773198bac20fc85e1332b102cb37422f842eb242a4bbd9c77
BLAKE2b-256 checksum
How to use checksums
3db488fee8521c6e0cfcf08aeff48b1d3396505802d5aac0759f4ce2e79f91b6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Apr 23, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.5.0 This release

2 release files

0.4.1

2 release files

0.4.0

2 release files

0.3.0

2 release files

0.2.0

2 release files

0.1.4

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page