deploying-ui-bundle

Deploys Salesforce UI bundle apps through org authentication, metadata deployment, permission assignment, and GraphQL codegen.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Deploying a Salesforce UI bundle app involves a strict order of operations—authentication, build, metadata deployment, permission assignment, data import, and GraphQL schema codegen—and skipping or reordering steps causes broken schemas, missing field access, and failed deployments. ## Core Features & Use Cases - Ordered Deployment Sequence: Enforces the canonical flow from org authentication through metadata deployment to post-deploy configuration. - Post-Deploy Automation: Discovers and assigns permission sets, optionally imports data via a data plan, and refreshes the GraphQL schema with codegen. - Use Case: You have an sfdx project with a uiBundles directory and need to push it to a scratch org. This Skill authenticates the org, builds the bundle, deploys metadata, assigns permission sets, fetches the GraphQL schema, and runs codegen in the correct order. ## Quick Start Deploy my UI bundle project to my Salesforce org and run the full post-deploy setup including permissions and GraphQL codegen.

Frequently Asked Questions about deploying-ui-bundle

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

FAQPage Schema
How do I deploy a Salesforce UI bundle to an org?▼

Authenticate the org, build the UI bundle to produce dist/, deploy metadata using manifest/package.xml if present, then assign permission sets and run GraphQL schema fetch with codegen. The order matters because the schema reflects deployed org state.

Why is my GraphQL schema missing custom fields after deployment?▼

The schema was likely fetched before metadata deployment or before permission sets were assigned. Custom objects and fields appear only after deployment, and users need field-level security from assigned permission sets for introspection to return them.

When should I re-run GraphQL codegen in a Salesforce project?▼

Re-run schema fetch and codegen after every metadata deployment that changes objects, fields, or permissions. Also run it when schema.graphql is missing at the project root.

Does deploying metadata automatically assign permission sets in Salesforce?▼

No, deploying does not assign permission sets. After deployment, discover permission sets in force-app/main/default/permissionsets/ and assign each one to users, or ask the user which to assign.

How do I import data after a Salesforce deployment?▼

Data import runs only if data/data-plan.json exists, using Anonymous Apex with duplicate rule save enabled. Deletes run in reverse plan order, and you should always confirm with the user before importing or cleaning data.