@logionsh/cli
v0.1.13
Published
Logion CLI — installs and runs the canonical Python logion-cli from a managed environment.
Readme
@logionsh/cli
Thin npm wrapper around the canonical logion-cli Python package.
Install
npm install -g @logionsh/cli
# or
npx @logionsh/cli --helpRequirements
- Node ≥ 22
- Python ≥ 3.12 on the host (the wrapper auto-detects
python3orpy) - One of
pipx,uv, or the wrapper falls back to a managed venv
What this package does
On install, the postinstall hook:
- Finds a working Python 3.12+.
- Installs
logion-cli==<pinned-version>from PyPI viapipx/uv/venv. - Shims the
logionbinary onto your PATH.
The pinned PyPI version is baked into the npm tarball at publish
time, so npm install -g @logionsh/[email protected] always installs the
exact matching Python package.
Why not pure Node?
The canonical implementation is Python — the CLI is part of a three-package Python workspace and shares code with the Python SDK. A pure-Node port would double the codebase and drift from the source of truth. This wrapper exists so JS-ecosystem users don't need to think about Python package managers.
Environment variables
| Variable | Purpose |
| ---------------------------- | ---------------------------------------- |
| LOGION_NPM_SKIP_INSTALL | Set to 1 to skip postinstall (CI/test) |
| LOGION_NPM_FORCE_INSTALLER | Force pipx, uv, or venv |
| LOGION_NPM_PYTHON | Override Python binary path |
See https://github.com/nicolasmelo1/logion for the full project.
