infra-cli
Pluggable DevOps CLI wrapping Ansible, Terragrunt, Terraform, AWS SSO, Alibaba / Tencent CloudSSO, OCI session login, and related tools.
Features
- Unified
infrasurface for setup, cloud SSO, inventory, and IaC wrappers - Interactive REPL:
infra shell(Tab completion, history, pipes, prod guard) - Agent work mode:
infra work(skills, connectors, MCP) - Local HTML command reference:
infra server start(optional MySQL/Redis/Mongo DB tools)
Install
pipx install infra-cli
pipx inject infra-cli '.[aws]' # optional
source ~/.infra/env.sh # after first run, or: pipx ensurepath
infra doctor
From checkout: pipx install . · Upgrade: infra setup upgrade-cli --pypi
Full macOS/Linux bootstrap: INSTALL.md · docs/installation.md
Docker (host network): docs/docker.md · docker compose up
Quick start
setup
infra setup doctor
infra setup aws
infra setup terraform
aws
infra aws login
infra aws select
infra aws profiles --account
naming
infra naming payments --org acme --domain acme.io
terraform / terragrunt
infra terraform -e stg -s platform/example
infra terragrunt plan -e stg -s platform/example
shell
infra shell
server
infra server start # needs: pipx inject infra-cli '.[server]'
infra server start --enable-mysql --enable-redis # + '.[server-mysql]' / '.[server-redis]'
DB tools open at /tools; connect forms keep credentials in process memory only.
Mutations need --enable-writes. Non-loopback bind with DB tools requires --allow-remote.
work
infra work plan "find AWS cost waste"
doctor
infra doctor
Every command accepts -h / --help.
Documentation
| Guide | Contents |
|---|---|
| docs/ | Index of all user guides |
| commands.md | Common workflows |
| docker.md | Dockerfile / Compose (host network) |
| aws.md | SSO, inventory, ECR, SSM |
| setup.md | Workstation bootstrap |
| alibaba-cloud.md | aliyun / alicloud |
| oci.md | infra setup oci / infra oci login |
| terraform-terragrunt.md | Layout, scaffold, plan/apply |
| work.md | Agent work mode |
| configuration.md | ~/.infra/config.yaml |
| release.md | PyPI tags & Trusted Publishing |
| development.md | Local tests & lint |
| CHANGELOG.md | Release history |
| Logo | Brand marks (SVG) |
Development
make install-dev
make test
make check
See CONTRIBUTING.md.
Author & Contact
Youqing Han — GitHub · Issues for public bugs; email for private / CoC / partnership contact (see pyproject.toml).
License
Apache License 2.0 — see LICENSE.
Metadata
Release files for infra-cli 0.1.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| infra_cli-0.1.6.tar.gz | 501.2 kB | With provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| infra_cli-0.1.6-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 1.2 MB
Release files / infra_cli-0.1.6.tar.gz
| Download URL | infra_cli-0.1.6.tar.gz |
|---|---|
| Size | 501.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
cc0773c66970ac531d4e39defb1925fab65bad714a9ebf67b15240ce41d7e337
|
|
BLAKE2b-256 checksum How to use checksums |
be6c5009aa8e820c0e91738925872f341979c123c920a5c9c86fa8dcd0abc415
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Oct 24, 2026.
Transparency logRelease files / infra_cli-0.1.6-py3-none-any.whl
| Download URL | infra_cli-0.1.6-py3-none-any.whl |
|---|---|
| Size | 675.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7c75caefab086cb5403ba260336884b17f2540799f5c697c5ba177c8c3f241fb
|
|
BLAKE2b-256 checksum How to use checksums |
c9a3eb1c4f4184bea4d18e7ccc893fd6bbee0149dfb5ea093b5cf98eb8519f61
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Oct 24, 2026.
Transparency logSecurity for infra-cli 0.1.6
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.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for infra_cli-0.1.6.tar.gz
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 Oct 24, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.