generating-ui-bundle-features

Installs pre-built authentication and search features into Salesforce UI bundle apps via CLI.

1|Updated May 7, 2026
One-click install
npx skills add https://github.com/amanpraaj/sf-skill-hub --skill generating-ui-bundle-features-amanpraaj
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: generating-ui-bundle-features
Source: https://github.com/amanpraaj/sf-skill-hub/tree/main/skills/salesforce/generating-ui-bundle-features
Command: npx skills add https://github.com/amanpraaj/sf-skill-hub --skill generating-ui-bundle-features-amanpraaj

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires @salesforce/ui-bundle-features.

What problem does it solve? Adding authentication or search to a Salesforce UI bundle app from scratch is error-prone and time-consuming. This Skill installs pre-built, tested feature packages using the @salesforce/ui-bundle-features CLI instead of hand-writing login flows, session management, or global search. ## Core Features & Use Cases - Feature Discovery: Search and describe available features with npx @salesforce/ui-bundle-features list --search <query> and describe <feature> before installing. - Authentication & Search Installation: Install login, logout, protected routes, session management, and global search into a uiBundles/*/src/ project with conflict detection and resolution. - Example Integration: Merge __example__ files into target files and resolve <descriptive-name> placeholder paths after installation. - Use Case: A developer needs protected routes in their UI bundle app. They search the features CLI, dry-run the authentication install, resolve file conflicts via a resolution JSON, and integrate the example session-handling pattern into their app entry file. ## Quick Start Ask the agent to add authentication with login, logout, and protected routes to your UI bundle app using the ui-bundle-features CLI.

Frequently Asked Questions about generating-ui-bundle-features

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I add authentication to a Salesforce UI bundle app?▼

Use `npx @salesforce/ui-bundle-features install authentication --ui-bundle-dir <name>` to install pre-built login, logout, protected routes, and session management. Preview changes first with `--dry-run` and check your src/ directory for existing implementations before installing.

How do I add global search to a UI bundle project?▼

Run `npx @salesforce/ui-bundle-features install search --ui-bundle-dir <name>` to add global search across pages and content. Use `describe search` first to review the components, dependencies, and copy operations the feature includes.

How do I handle file conflicts when installing UI bundle features non-interactively?▼

Use a two-pass approach: first run with `--on-conflict error` to detect conflicts, then create a resolution JSON file mapping paths to "skip" or "overwrite" and re-run with `--conflict-resolution <file>`. The `--yes` flag skips conflicts entirely in non-interactive mode.

What features does the ui-bundle-features CLI support?▼

This Skill covers two features: authentication (login, logout, protected routes, session management) and search (global search across pages and content). Use `npx @salesforce/ui-bundle-features list --search <query>` with `--verbose` to see full descriptions of available features.

What should I do with __example__ files after installing a feature?▼

Read each __example__ file to understand the integration pattern, read the target file shown in the describe output, apply the pattern into the target, then delete the example file. Also rename or relocate any files with `<descriptive-name>` placeholders, which the CLI does not resolve.