generating-flexipage

Generate Salesforce Lightning FlexiPage metadata XML using Salesforce CLI.

Updated Jun 1, 2026
One-click install
npx skills add https://github.com/Collabalist/SFDC --skill generating-flexipage-collabalist
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: generating-flexipage
Source: https://github.com/Collabalist/SFDC/tree/main/.agents/skills/generating-flexipage
Command: npx skills add https://github.com/Collabalist/SFDC --skill generating-flexipage-collabalist

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires salesforce-cli, and includes scripts (resource) and references (resource) and assets (resource) components.

What problem does it solve?

This Skill simplifies the process of creating, modifying, and validating Salesforce Lightning pages (FlexiPages), reducing the complexity of page customization and management.

Core Features & Use Cases

  • FlexiPage Creation: Generates FlexiPage metadata XML for RecordPage, AppPage, and HomePage using the Salesforce CLI.
  • Page Customization: Provides guidelines for adding components, troubleshooting deployment errors, and understanding FlexiPage structure.
  • Use Case: For users who frequently need to create or update Lightning pages and want to ensure the best practices are followed during the development process.

Quick Start

To generate a new FlexiPage for the 'Account' object, run:

sf template generate flexipage \
  --name Account_Page \
  --template RecordPage \
  --sobject Account \
  --primary-field Name \
  --output-dir force-app/main/default/flexipages

Frequently Asked Questions about generating-flexipage

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

FAQPage Schema
How do I generate a FlexiPage for a specific object using Salesforce CLI?

You generate a FlexiPage by running the `sf template generate flexipage` command, specifying the target object, template type like RecordPage, and output directory. This automates metadata XML creation for deployment.

What types of Salesforce Lightning pages can I create with FlexiPage automation?

FlexiPage automation supports generating metadata for RecordPage, AppPage, and HomePage templates. It coordinates with Salesforce CLI to create these Lightning page structures while following development best practices.

Do I need Salesforce CLI to manage Lightning FlexiPages?

Yes, Salesforce CLI is required to manage Lightning FlexiPages. The Skill coordinates with CLI commands to create page structures and manage deployment tasks via the Salesforce metadata API.

How do I troubleshoot deployment errors when customizing FlexiPage metadata?

To troubleshoot FlexiPage deployment errors, use the provided guidelines for adding components and understanding FlexiPage structure. This helps validate metadata XML and resolve common deployment issues.

Can I customize FlexiPage components programmatically for Salesforce admins?

Yes, Salesforce admins and developers can customize FlexiPage components programmatically. The Skill provides guidelines for adding components and managing page structures through automated CLI commands.

What is the best way to structure FlexiPage metadata for Salesforce deployment?

The best way to structure FlexiPage metadata is using the Skill's template generation, which outputs XML files to directories like force-app/main/default/flexipages. This ensures best practices are followed during development.