See fabfile.py for examples. Invoking the example tasks fab db_migration fab db_migration_with_error_msg Note: Make sure you have setup correct values in env.roledefs and env.user