Forrest logo
back to the pyinfra tool

pyinfra:tldr:68b60

pyinfra: Execute contents of a deploy file on a list of targets.
$ pyinfra ${path-to-target_list-py} ${path-to-deploy-py}
try on your machine

This command is used to execute a pyinfra deployment script using the pyinfra tool.

Here's how the components of the command work:

  • pyinfra: This is the command to run the pyinfra tool.

  • ${path-to-target_list-py}: This is the path to the target list file in Python format. The target list file contains the list of hosts or systems that you want to execute the deployment script on. It can be a file with a .py extension that contains a Python list variable specifying the target hosts.

  • ${path-to-deploy-py}: This is the path to the deployment script file in Python format. The deployment script file contains the deployment logic and tasks defined using pyinfra's Python-based DSL (Domain Specific Language). It can be a file with a .py extension that defines the deployment logic.

When you run this command, pyinfra will read the target list file and the deployment script file, and execute the defined tasks on the specified target hosts.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the pyinfra tool