fab
follows these conventions regarding exit codes.
0
: Command completed successfully1
: Command failed for any reason2
: Command was cancelled or there was a misuse of shell builtins (e.g., missing keyword, syntax error)4
: Command requires authenticationNote: It is possible that a particular command may have more exit codes, so it is a good practice to check documentation for the command if you are relying on exit codes to control some behavior.
See Cheatsheet and Usage examples.