toggle-global-features
Installation
SKILL.md
Toggling Global Features in ABP
When to Use
- Let an application opt into an optional capability of a reusable module.
- Hide controllers/pages from API Explorer / remote-service discovery (and return 404 at runtime) when a capability is disabled.
- Exclude database model pieces before migrations/model creation, when a module configures its model conditionally on the feature state.
- Group module-wide switches behind a discoverable
GlobalModuleFeaturesAPI.
When Not to Use
- Per-tenant or per-edition capabilities — use manage-settings-and-features.
- User/role access control — use permissions-and-authorization.
- A flag that changes while the application is running — use configuration/settings or another runtime mechanism.
How it works
Global Features are development/startup-time switches. They are disabled unless explicitly enabled. Configure them before application startup: a disabled controller/page/service stays in the application model but is hidden from API Explorer / remote-service discovery (ApiExplorer.IsVisible = false) and returns 404 at runtime, and a module can omit disabled database tables from its model. Neither behavior is re-evaluated after startup.