Simple, Pythonic remote execution and deployment
Linux users can use the installer:
curl --location "https://github.com/timonier/fabric/raw/master/bin/installer" | sudo sh -s -- install
Run the command fab
:
# See all fab options
fab --help
# Run fab
$ fab --host 192.168.0.1 main
# [172.17.0.2] Executing task 'main'
# [172.17.0.2] sudo: DEBIAN_FRONTEND=noninteractive apt-get update --quiet
# [172.17.0.2] Login password for 'morgan':
# [172.17.0.2] out: sudo password:
# [172.17.0.2] out: Hit https://apt.dockerproject.org debian-jessie InRelease
# [172.17.0.2] out: Ign http://httpredir.debian.org jessie InRelease
# [172.17.0.2] out: Hit http://httpredir.debian.org jessie-updates InRelease
# [172.17.0.2] out: Get:1 https://apt.dockerproject.org debian-jessie/main amd64 Packages [4708 B]
# [172.17.0.2] out: Hit http://httpredir.debian.org jessie Release.gpg
# [172.17.0.2] out: Hit http://httpredir.debian.org jessie Release
# [172.17.0.2] out: Get:2 http://httpredir.debian.org jessie/main amd64 Packages [9032 kB]
# [172.17.0.2] out: Get:3 http://httpredir.debian.org jessie-updates/main amd64 Packages [17.6 kB]
# [172.17.0.2] out: Hit http://security.debian.org jessie/updates InRelease
# [172.17.0.2] out: Get:4 http://security.debian.org jessie/updates/main amd64 Packages [360 kB]
# [172.17.0.2] out: Fetched 9414 kB in 5s (1639 kB/s)
# [172.17.0.2] out: Reading package lists...
# [172.17.0.2] out:
# ...