Skip to main content

Error codes

When landbase-cli encounters an error, it writes a JSON object to stderr with an error.code field. These codes are stable across versions and are safe to branch on in scripts.

Code reference


Capturing error codes in scripts

Capture stderr separately from stdout: