Skip to main content

Clified

Universal installer and CLI library for Python, Rust, and Bun tools.

Published on PyPI · GitHub

Português: README_PT.md

What it is

Clified splits two responsibilities:

Piece Where it lives Role
Engine clified package (PyPI) venvs, wrappers, Rust/Bun builds, hooks
Registry tools.yaml in each repo What to install, code location, post-steps
Catalog maikramer/clified-catalog (live) + bundled fallback Maps a short name (denv) → repo + tool, for --get

Each project ships its own install.sh, sets CLIFIED_TOOLS to the local tools.yaml, and installs Clified via pip on first run. You do not need to clone the Clified repository. For known tools you can skip even the project clone — clified-install --get <tool> clones the repo from the catalog and installs the tool in one step.

Quick start

One-liner (no clone needed)

Install the engine and a known tool from the catalog in one shot:

# Linux / macOS — engine + tool from the catalog
curl -fsSL https://raw.githubusercontent.com/maikramer/clified/main/install.sh | bash -s -- --get denv
# Linux / macOS — engine only, then list remote tools
curl -fsSL https://raw.githubusercontent.com/maikramer/clified/main/install.sh | bash
# Windows (PowerShell)
irm https://raw.githubusercontent.com/maikramer/clified/main/install.ps1 | iex
# Windows + arguments
& ([scriptblock]::Create((irm https://raw.githubusercontent.com/maikramer/clified/main/install.ps1))) --get denv

With no arguments the one-liner installs the engine and prints next steps. List known tools with clified-install --catalog, or point --get at any repo with --repo:

clified-install --get mytool --repo https://github.com/your-org/your-cli.git

Remote catalog (--get / --catalog)

The catalog maps a short name (denv, cissapi, pc, …) to a git repo + tool. By default it's read live from maikramer/clified-catalog (raw registry.yaml) with a local cache (~/.config/clified/catalog.cache.yaml, TTL 1h) and falls back to the bundled snapshot when offline. Adding a tool no longer requires a Clified release — just edit the catalog repo.

clified-install --catalog                 # list remote tools (private marked)
clified-install --refresh-catalog --catalog  # ignore cache, force fresh fetch
clified-install --get denv                # fetch + install from the catalog
Env Default Effect
CLIFIED_CATALOG unset Override the catalog source: URL (http(s)://) or local path.
CLIFIED_CATALOG_TTL 3600 Cache TTL in seconds. 0 = always fetch; -1 = bundled only (offline).

Public vs private tools

Each entry has an optional access: public|private (default public). --catalog marks private tools as (privado) and --get <private> warns before cloning. Private repos (e.g. LocatelliSupermercados/*) clone with your own git credentials (SSH key / HTTPS token via git credential manager). On access denial Clified fails gracefully with a clear message — no raw git crash.

Publishing a tool

  • No catalog — any public repo: clified-install --get mytool --repo https://github.com/you/x.git.
  • Public catalog — open a PR to maikramer/clified-catalog with access: public.
  • Self-host — keep your own registry.yaml (private repo or local file) and point Clified at it with CLIFIED_CATALOG=<url-or-path>.

From a cloned project

git clone https://github.com/your-org/my-cli.git
cd my-cli
./install.sh
my-cli --help

Documentation

Full index: docs/README.md

Guide Contents
Getting started Installation, clean-machine flow, install.sh
Concepts Motor, registry, catalog, state — how it fits together
Architecture High-level diagram, path resolution, installer types
Install pipeline CLI → installer → wrappers → receipt (deep dive)
Remote catalog registry.yaml, cache, --get, version pinning
Package manager state.json, receipts, list/update/uninstall
Doctor Diagnostics, --fix, orphan wrappers
tools.yaml reference Fields, Python/Rust/Bun types, examples
Hooks post_install, built-in hooks, local hooks
Migrating a project denv / pc / AiGameKit / ai2print walkthrough
CLI library OutputFormatter, retry, patterns, Click
Troubleshooting PEP 668, wrong Python on PATH, MCP
Development Tests, PyPI release, contributing

Managing installed tools (clified 0.8+)

After installing with --get or from a clone, Clified records each tool in ~/.config/clified/state.json. Use the clified entry point (not clified-install) for day-to-day package management:

clified list                         # installed tools (ok / broken)
clified list --json
clified search game                  # search remote catalog
clified get text2d                   # fetch + install from catalog
clified get text2d@v1.2.0            # pin branch/tag/commit
clified update text2d                # git pull + refresh deps
clified update --all                 # update everything installed
clified uninstall text2d --purge     # remove tool + clone in sources/
clified doctor --fix                 # broken receipts + orphan wrappers

clified-install and legacy invocations (clified text2d, clified --get denv) remain fully supported.

Main commands

clified-install --list              # tools in the active tools.yaml
clified-install denv                # install one tool
clified-install denv --action update # refresh deps reusing the existing venv
clified-install denv --action reinstall --force
clified-install all                 # all tools (respects install_order)
clified-install --doctor            # health report for every tool
clified-install --doctor --fix      # + remove CLI wrappers shadowed on PATH
clified-install --catalog           # list remote tools known to the catalog
clified-install --refresh-catalog --catalog  # force fresh catalog fetch
clified-install --get denv          # fetch + install a remote tool (catalog)
clified-install --get mytool --repo https://github.com/your-org/your-cli.git
clified-install denv --retry 3      # retry transient failures up to 3 attempts

Diagnostics (--doctor)

clified-install --doctor reports, per tool, whether the venv exists and runs a supported Python, whether the CLI wrapper is installed and actually wins on PATH, and which build backends (uv/cargo/bun/git) are present. Add --fix to delete stale wrappers that shadow the canonical one, or --json for machine-readable output. Pass a tool name to scope it to one tool.

Python version selection

Clified honours each tool's requires-python (read from its pyproject.toml) in addition to min_python in tools.yaml: it keeps the tighter floor and the lower ceiling, so a tool capped at <3.14 never lands on a newer interpreter than it supports — uv provisions the right version automatically.

Monorepo file: dependencies

A relative file: dependency (e.g. aigamekit-shared @ file:../Shared) is invalid PEP 508 and breaks uv's editable build. Clified absolutises such URLs for the duration of the build and restores pyproject.toml afterwards, so shared-package monorepos install cleanly without per-tool workarounds.

Projects using Clified

CLI Repository Type
denv LocatelliDockerManager Python
cissapi LocatelliCissApi Python
pc ProjetoCursor Python
text2d, materialize, … AiGameKit Python / Rust / Bun
ai2print ai2print Rust + Python (hook)

License

MIT — see LICENSE.

Download files

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

Source Distribution

clified-0.9.0.tar.gz (100.2 kB view details)

Uploaded Source

Built Distribution

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

clified-0.9.0-py3-none-any.whl (91.0 kB view details)

Uploaded Python 3

File details

Details for the file clified-0.9.0.tar.gz.

File metadata

  • Download URL: clified-0.9.0.tar.gz
  • Upload date:
  • Size: 100.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for clified-0.9.0.tar.gz
Algorithm Hash digest
SHA256 d01419516768debc36cb9bd025e51bea7baa2ab712c5f45d9b0a91a9c2bcf237
MD5 147afd45752782f06134d60b577b009c
BLAKE2b-256 2ba7d065b6c1f0db2e6942f9002f929c06a7440f60a2e0ecaba30c294a8713a1

See more details on using hashes here.

Provenance

The following attestation bundles were made for clified-0.9.0.tar.gz:

Publisher: publish.yml on maikramer/clified

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

File details

Details for the file clified-0.9.0-py3-none-any.whl.

File metadata

  • Download URL: clified-0.9.0-py3-none-any.whl
  • Upload date:
  • Size: 91.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for clified-0.9.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b2eb1e3be95c00957494144b223266ec726a00d800594784b5bde426357c9c46
MD5 1ef33cdc16c1d4860d8a9438d380fcf3
BLAKE2b-256 8ff3a2add323bb53454382c7c2cf6b74a499857c7c6576f8be7b571048b9f091

See more details on using hashes here.

Provenance

The following attestation bundles were made for clified-0.9.0-py3-none-any.whl:

Publisher: publish.yml on maikramer/clified

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

Release history Release notifications | RSS feed

This release

0.9.0 This release

2 files

0.8.4

2 files

0.8.3

2 files

0.7.4

2 files

0.7.2

2 files

0.7.1

2 files

0.7.0

2 files

0.6.1

2 files

0.6.0

2 files

0.5.0

2 files

0.4.1

2 files

0.4.0

2 files

Supported by

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