I had the same problem. I followed the documents http://docs.fabfile.org/en/1.8/usage/fabfiles.html#fabfile-discovery , created a module called fabfile , and I put different fabfiles in it, but when I tried to run fab -l I have Fatal error: Fabfile didn't contain any commands! .
To solve this problem, I had to import all the fabfiles into fabfile/__init__.py , for example:
from myfab_1 import * from other_fab import * from other_tasks import *
after that I could do fab -l and get a list of all tasks in all files. The fab some_task call fab some_task also started to work.
source share