Built-in commands
The default set istheme, sidebar, profile, settings and logout. Commands appear only when their underlying feature is available: for example, a top-navigation layout has no desktop sidebar command, and a panel with forced dark mode has no theme switch.
builtInCommands([]) to remove all built-ins. Tenant switching is a source configured through tenants(), not another value in this list.
Add a link command
Add a confirmed server action
closeOnSelect(false) keeps the search open for its dialog. An action’s own authorize() rules apply in addition to the command gate.
Decide where a command appears
all context. context($id) selects a source; anyContext() allows every context. withinPath([...]) matches an exact nested path. preload(false) hides a command until there is query text.
Use a custom matching function
user, panel, context, trail and query by those parameter names. The trail is a typed SearchContext; context is the current source ID.