Methods
NoCloud.flags.isFlagEnabled
NoCloud.flags.isFlagEnabled
Checks whether a boolean flag is on.Parameters
- key:
string— The flag’s key - fallback:
boolean— Returned when the flag is not a readable boolean flag (optional,falseby default)
Promise<boolean>— Whether the flag is on
NoCloud.flags.getFlagValue
NoCloud.flags.getFlagValue
Reads one flag’s value, whatever its type.Parameters
- key:
string— The flag’s key - fallback:
FlagValue— Returned when the flag is missing or unreadable (optional,nullby default)
Promise<FlagValue>— The flag’s value, or the fallback
NoCloud.flags.getFlags
NoCloud.flags.getFlags
Reads every flag this client holds.Returns
Promise<FlagValues>— Every readable flag keyed by flag key, or an empty object when there are none to read
NoCloud.flags.areFlagsReady
NoCloud.flags.areFlagsReady
Checks whether the server has published any flags yet.Returns
Promise<boolean>— Whether there are flags to read
Reads never throw
A missing flag, a server that does not havenocloud installed, or a callback that could not be reached all answer with the fallback — so a flag archived in the dashboard can never break a UI.
areFlagsReady() when you need to tell those cases apart from a flag that is genuinely false.
What a read costs
A read reaches thenocloud client script’s copy of replicated state, so it is a local round trip rather than a request to anything — cheap, but not free.
Types
Next Steps
Feature Flags
Types, runtimes, limits and the audit log
CFX Feature Flags
How flags reach your clients in the first place

