pyinfra Documentation

Welcome to the pyinfra documentation; it is split into two sections - how to use pyinfra and the references. If you’re new to pyinfra you should start with the getting started page.

Using pyinfra

Getting Started
A quickstart guide introducing the basics of pyinfra. Start here!
Writing Deploys
The definitive guide to writing reusable, committable deploys (think plays/workflows/playbooks).
Using the CLI
The pyinfra CLI is extremely powerful for ad hoc command execution and management.
Connectors
Connectors allow pyinfra to seamlessly integrate with other tools.

Deploy Reference

Operations Index
A list of all available operations and their arguments, eg apt.packages.
Facts Index
A list of all facts pyinfra can gather from hosts, eg host.fact.os.
Example Deploys
A set of documented example deploys highlighting common patterns.
Packaging Deploys
How to package, redistribute and share pyinfra deploys with other people.