2025-03-14 21:59:59 -06:00
|
|
|
# pyinfra
|
|
|
|
|
|
|
|
|
|
> Automates infrastructure at a large scale.
|
2025-12-16 10:20:31 -07:00
|
|
|
> More information: <https://docs.pyinfra.com/en/3.x/cli.html>.
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Execute a command over SSH:
|
|
|
|
|
|
|
|
|
|
`pyinfra {{target_ip_address}} exec -- {{command_name_and_arguments}}`
|
|
|
|
|
|
|
|
|
|
- Execute contents of a deploy file on a list of targets:
|
|
|
|
|
|
|
|
|
|
`pyinfra {{path/to/target_list.py}} {{path/to/deploy.py}}`
|
|
|
|
|
|
|
|
|
|
- Execute commands on locally:
|
|
|
|
|
|
|
|
|
|
`pyinfra @local {{path/to/deploy.py}}`
|
|
|
|
|
|
|
|
|
|
- Execute commands over Docker:
|
|
|
|
|
|
|
|
|
|
`pyinfra @docker/{{container}} {{path/to/deploy.py}}`
|