# CLI_API_ORIGIN_MISSING

- Surface: CLI
- Exit code: 1

## Cause

The platform target in `SPLITCH_PLATFORM_TARGET` has no API origin configured in the environment.

## Fix

Set the environment variable the message names to the API origin for that target. Only needed when pointing the CLI at a non-default deployment.

## Related

- [CLI_VALIDATION_ERROR](https://splitch.dev/docs/error/CLI_VALIDATION_ERROR)
- [CLI_ROUTE_SURFACE_UNSUPPORTED](https://splitch.dev/docs/error/CLI_ROUTE_SURFACE_UNSUPPORTED)

Source: https://splitch.dev/docs/error/CLI_API_ORIGIN_MISSING