LIST CONSTANTS
Synopsis
LIST CONSTANTS [IN <module>]
LIST CONSTANT VALUES [IN <module>]
Description
Lists constants defined in the project. Without the IN clause, lists all constants across all modules. With IN <module>, restricts the listing to constants in the specified module.
Constants are named values (strings, integers, booleans, etc.) that can be configured per deployment environment. They are typically used for API URLs, feature flags, and configuration values.
LIST CONSTANT VALUES shows one row per constant per configuration, making it easy to compare constant overrides across configurations (e.g., Default, Acceptance, Production). Each constant’s default value is shown first, followed by any per-configuration overrides.
Parameters
- module
- The name of the module to filter by. Only constants belonging to this module are shown.
Examples
List all constants in the project:
LIST CONSTANTS;
List constants in a specific module:
LIST CONSTANTS IN MyModule;
Compare constant values across all configurations:
LIST CONSTANT VALUES;
Compare constant values for a specific module:
LIST CONSTANT VALUES IN MyModule;