Skip to main content
photo-cli returns a specific numeric exit code when it finishes. A code of 0 means the command completed successfully. Any other value indicates that something went wrong. You can check these codes in shell scripts, CI pipelines, or any automation that calls photo-cli, so you can detect and handle errors programmatically.

Exit codes

Using exit codes in shell scripts

Check $? immediately after a photo-cli command to detect failure and take appropriate action: