Command-Line Client Exit-Status Codes
All command-line client commands return an exit code upon completion. The possible exit codes are:
-
0: The command completed successfully. All the required operations were started or run.
-
1: The command completed with one or more failed operations.
-
2: An exception caused the command-line client to terminate abnormally. Required operations were most likely not run.
After a command-line client command has finished running, you can get its exit code by running:
$ echo $?