Last Updated: February 25, 2016
·
2.648K
· ellisonleao

Passing parameters in Fabric Tasks

Fabric is a nice project that allows you full automation process and deployment tasks.

If you have a task in fabric that needs parameters this is the way you should pass it on shell.

let's imagine you have the following task:

@task
def task(parameter):
    print(parameter)

now, you can do as follow:

~# fab task:parameter **
or
**~# fab task:'parameter'

And that's it!