{"id":41790645,"url":"https://github.com/salesforcecli/plugin-templates","last_synced_at":"2026-05-24T08:05:59.387Z","repository":{"id":65357205,"uuid":"554912458","full_name":"salesforcecli/plugin-templates","owner":"salesforcecli","description":"Generators for various metadata types","archived":false,"fork":false,"pushed_at":"2026-05-24T04:05:34.000Z","size":8708,"stargazers_count":2,"open_issues_count":7,"forks_count":17,"subscribers_count":5,"default_branch":"main","last_synced_at":"2026-05-24T06:20:14.732Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/salesforcecli.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":"CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2022-10-20T16:03:24.000Z","updated_at":"2026-05-24T04:02:54.000Z","dependencies_parsed_at":"2023-11-12T03:25:41.347Z","dependency_job_id":"ad15bda6-77d7-4459-9c33-0f522021e650","html_url":"https://github.com/salesforcecli/plugin-templates","commit_stats":{"total_commits":225,"total_committers":27,"mean_commits":8.333333333333334,"dds":0.6799999999999999,"last_synced_commit":"6748043ef7d57ddd2d65b38256ebc808ba879d4f"},"previous_names":[],"tags_count":231,"template":false,"template_full_name":null,"purl":"pkg:github/salesforcecli/plugin-templates","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/salesforcecli%2Fplugin-templates","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/salesforcecli%2Fplugin-templates/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/salesforcecli%2Fplugin-templates/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/salesforcecli%2Fplugin-templates/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/salesforcecli","download_url":"https://codeload.github.com/salesforcecli/plugin-templates/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/salesforcecli%2Fplugin-templates/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33426014,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-23T22:14:44.296Z","status":"online","status_checked_at":"2026-05-24T02:00:06.296Z","response_time":57,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-01-25T05:01:44.957Z","updated_at":"2026-05-24T08:05:59.380Z","avatar_url":"https://github.com/salesforcecli.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# plugin-templates\n\nThis repository provides a series of commands, templates, and generators for various metadata types, including support for TypeScript Lightning Web Components.\n\n[![Known Vulnerabilities](https://snyk.io/test/github/salesforcecli/plugin-templates/badge.svg)](https://snyk.io/test/github/salesforcecli/plugin-templates)\n[![License](https://img.shields.io/npm/l/@salesforce/plugin-templates.svg)](https://github.com/salesforcecli/plugin-templates/blob/master/package.json)\n\n# Getting Started\n\nTo use, install the [Salesforce CLI](https://developer.salesforce.com/tools/sfdxcli) and run the following commands.\n\n```\nVerify the CLI is installed\n  $ sfdx (-v | --version)\nInstall the @salesforce/plugin-templates plugin\n  $ sfdx plugins:install @salesforce/plugin-templates\nTo run a command\n  $ sfdx [command]\n```\n\n## Install\n\n1. Clone the repository, and `cd` into it.\n\n```sh\ngit clone git@github.com:salesforcecli/plugin-templates.git\n```\n\n2. Ensure you have [Yarn](https://yarnpkg.com/) installed and run the following to build:\n\n```\nyarn install\nyarn build\n```\n\n## Issues\n\nPlease report any issues to https://github.com/salesforcecli/plugin-templates/issues or https://github.com/forcedotcom/cli/issues.\n\n## Contributing\n\n1. Familiarize yourself with the codebase by reading the docs and the templates [library](https://github.com/salesforcecli/plugin-templates).\n   - If you're adding a new template generator, see the [Development Guide](./DEVELOPMENT.md) for detailed instructions.\n1. Create a new issue before starting your project so that we can keep track of\n   what you're trying to add/fix. That way, we can also offer suggestions or\n   let you know if there is already an effort in progress.\n1. Fork this repository.\n1. The [build](#build) section has details on how to set up your environment.\n1. Create a _topic_ branch in your fork based on the correct branch (usually the **main** branch). Note: this step is recommended but technically not required if contributing using a fork.\n1. Edit the code in your fork.\n1. Sign CLA (see [CLA](#cla)).\n1. Send us a pull request when you're done. We'll review your code, suggest any\n   needed changes, and merge it in.\n\n## Pull Requests\n\n### Committing\n\n1. We enforce commit message format using [commitizen](https://github.com/commitizen/cz-cli). To ensure correct formatting, use our VS Code Task `Commit`. with `yarn run commit`.\n1. The commit message format that we expect is: `type: commit message`. Valid types are: feat, fix, improvement, docs, style, refactor, perf, test, build, ci, chore and revert.\n1. Before commit and push, Husky runs several hooks to ensure the commit message is in the correct format and that everything lints and compiles properly.\n\n## CLA\n\nExternal contributors will be required to sign a Contributor's License\nAgreement. You can do so by going to https://cla.salesforce.com/sign-cla.\n\n# Build\n\n## Developing Plugin\n\nTo test plugin locally, use `bin/dev` in place of `sfdx`. For example:\n\n```sh\n./bin/dev force:apex:class:create --classname 'TestClass' --template 'DefaultApexClass' --outputdir ./testsoutput/myApex/\n```\n\nLink your plugin to Salesforce CLI:\n\n```sh\nsfdx plugins:link .\n```\n\nVerify plugin is linked:\n\n```sh\nsfdx plugins\n```\n\nTo test plugin locally with Salesforce CLI, add `\"@salesforce/plugin-templates\": \"file://path/to/plugin-templates\"` to the plugin's `package.json`.\n\n## Debugging Your Plugin\n\nWe recommend using the Visual Studio Code (VS Code) IDE for your plugin development. Included in the `.vscode` directory of this plugin is a `launch.json` config file, which allows you to attach a debugger to the node process when running your commands.\n\nTo debug the `hello:org` command:\n\n1. If you linked your plugin to the Salesforce CLI, call your command with the `dev-suspend` switch:\n\n```sh-session\n$ sfdx hello:org -u myOrg@example.com --dev-suspend\n```\n\nAlternatively, to call your command using the `bin/dev` script, set the `NODE_OPTIONS` environment variable to `--inspect-brk` when starting the debugger:\n\n```sh-session\n$ NODE_OPTIONS=--inspect-brk ./bin/dev force:apex:class:create --classname 'TestClass' --template 'DefaultApexClass' --outputdir ./testsoutput/myApex/\n```\n\n2. Set some breakpoints in your command code.\n3. Click on the Debug icon in the Activity Bar on the side of VS Code to open up the Debug view.\n4. In the upper left hand corner of VS Code, verify that the \"Attach to Remote\" launch configuration is selected.\n5. Hit the green play button to the left of the \"Attach to Remote\" launch configuration window. The debugger should now be suspended on the first line of the program.\n6. Hit the green play button at the top middle of VS Code (this play button is to the right of the play button that you clicked in step #5).\n\nCongrats, you are debugging!\n\n# Commands\n\n\u003c!-- commands --\u003e\n\n- [`sf template generate analytics template`](#sf-template-generate-analytics-template)\n- [`sf template generate apex class`](#sf-template-generate-apex-class)\n- [`sf template generate apex trigger`](#sf-template-generate-apex-trigger)\n- [`sf template generate digital-experience site`](#sf-template-generate-digital-experience-site)\n- [`sf template generate flexipage`](#sf-template-generate-flexipage)\n- [`sf template generate lightning app`](#sf-template-generate-lightning-app)\n- [`sf template generate lightning component`](#sf-template-generate-lightning-component)\n- [`sf template generate lightning event`](#sf-template-generate-lightning-event)\n- [`sf template generate lightning interface`](#sf-template-generate-lightning-interface)\n- [`sf template generate lightning test`](#sf-template-generate-lightning-test)\n- [`sf template generate project`](#sf-template-generate-project)\n- [`sf template generate static-resource`](#sf-template-generate-static-resource)\n- [`sf template generate ui-bundle`](#sf-template-generate-ui-bundle)\n- [`sf template generate visualforce component`](#sf-template-generate-visualforce-component)\n- [`sf template generate visualforce page`](#sf-template-generate-visualforce-page)\n\n## `sf template generate analytics template`\n\nGenerate a simple Analytics template.\n\n```\nUSAGE\n  $ sf template generate analytics template -n \u003cvalue\u003e [--json] [--flags-dir \u003cvalue\u003e] [-d \u003cvalue\u003e] [--api-version\n  \u003cvalue\u003e]\n\nFLAGS\n  -d, --output-dir=\u003cvalue\u003e   [default: .] Directory for saving the created files.\n  -n, --name=\u003cvalue\u003e         (required) Name of the Analytics template.\n      --api-version=\u003cvalue\u003e  Override the api version used for api requests made by this command\n\nGLOBAL FLAGS\n  --flags-dir=\u003cvalue\u003e  Import flag values from a directory.\n  --json               Format output as json.\n\nDESCRIPTION\n  Generate a simple Analytics template.\n\n  The metadata files associated with the Analytics template must be contained in a parent directory called\n  \"waveTemplates\" in your package directory. Either run this command from an existing directory of this name, or use the\n  --output-dir flag to generate one or point to an existing one.\n\nALIASES\n  $ sf force analytics template create\n  $ sf analytics generate template\n\nEXAMPLES\n  Generate the metadata files for a simple Analytics template file called myTemplate in the\n  force-app/main/default/waveTemplates directory:\n\n    $ sf template generate analytics template --name myTemplate --output-dir force-app/main/default/waveTemplates\n\nFLAG DESCRIPTIONS\n  -d, --output-dir=\u003cvalue\u003e  Directory for saving the created files.\n\n    The location can be an absolute path or relative to the current working directory. The default is the current\n    directory.\n```\n\n_See code: [src/commands/template/generate/analytics/template.ts](https://github.com/salesforcecli/plugin-templates/blob/56.17.3/src/commands/template/generate/analytics/template.ts)_\n\n## `sf template generate apex class`\n\nGenerate an Apex class.\n\n```\nUSAGE\n  $ sf template generate apex class -n \u003cvalue\u003e [--json] [--flags-dir \u003cvalue\u003e] [-t\n    ApexException|ApexUnitTest|BasicUnitTest|DefaultApexClass|InboundEmailService] [-d \u003cvalue\u003e] [--api-version \u003cvalue\u003e]\n\nFLAGS\n  -d, --output-dir=\u003cvalue\u003e   [default: .] Directory for saving the created files.\n  -n, --name=\u003cvalue\u003e         (required) Name of the generated Apex class.\n  -t, --template=\u003coption\u003e    [default: DefaultApexClass] Template to use for file creation.\n                             \u003coptions: ApexException|ApexUnitTest|BasicUnitTest|DefaultApexClass|InboundEmailService\u003e\n      --api-version=\u003cvalue\u003e  Override the api version used for api requests made by this command\n\nGLOBAL FLAGS\n  --flags-dir=\u003cvalue\u003e  Import flag values from a directory.\n  --json               Format output as json.\n\nDESCRIPTION\n  Generate an Apex class.\n\n  Generates the Apex *.cls file and associated metadata file. These files must be contained in a parent directory called\n  \"classes\" in your package directory. Either run this command from an existing directory of this name, or use the\n  --output-dir flag to generate one or point to an existing one.\n\nALIASES\n  $ sf force apex class create\n  $ sf apex generate class\n\nEXAMPLES\n  Generate two metadata files associated with the MyClass Apex class (MyClass.cls and MyClass.cls-meta.xml) in the\n  current directory:\n\n    $ sf template generate apex class --name MyClass\n\n  Similar to previous example, but generates the files in the \"force-app/main/default/classes\" directory:\n\n    $ sf template generate apex class --name MyClass --output-dir force-app/main/default/classes\n\nFLAG DESCRIPTIONS\n  -d, --output-dir=\u003cvalue\u003e  Directory for saving the created files.\n\n    The location can be an absolute path or relative to the current working directory. The default is the current\n    directory.\n\n  -n, --name=\u003cvalue\u003e  Name of the generated Apex class.\n\n    The name can be up to 40 characters and must start with a letter.\n\n  -t, --template=ApexException|ApexUnitTest|BasicUnitTest|DefaultApexClass|InboundEmailService\n\n    Template to use for file creation.\n\n    Supplied parameter values or default values are filled into a copy of the template.\n```\n\n_See code: [src/commands/template/generate/apex/class.ts](https://github.com/salesforcecli/plugin-templates/blob/56.17.3/src/commands/template/generate/apex/class.ts)_\n\n## `sf template generate apex trigger`\n\nGenerate an Apex trigger.\n\n```\nUSAGE\n  $ sf template generate apex trigger -n \u003cvalue\u003e [--json] [--flags-dir \u003cvalue\u003e] [-t ApexTrigger] [-d \u003cvalue\u003e] [--api-version\n    \u003cvalue\u003e] [-s \u003cvalue\u003e] [-e before insert|before update|before delete|after insert|after update|after delete|after\n    undelete...]\n\nFLAGS\n  -d, --output-dir=\u003cvalue\u003e   [default: .] Directory for saving the created files.\n  -e, --event=\u003coption\u003e...    [default: before insert] Events that fire the trigger.\n                             \u003coptions: before insert|before update|before delete|after insert|after update|after\n                             delete|after undelete\u003e\n  -n, --name=\u003cvalue\u003e         (required) Name of the generated Apex trigger\n  -s, --sobject=\u003cvalue\u003e      [default: SOBJECT] Salesforce object to generate a trigger on.\n  -t, --template=\u003coption\u003e    [default: ApexTrigger] Template to use for file creation.\n                             \u003coptions: ApexTrigger\u003e\n      --api-version=\u003cvalue\u003e  Override the api version used for api requests made by this command\n\nGLOBAL FLAGS\n  --flags-dir=\u003cvalue\u003e  Import flag values from a directory.\n  --json               Format output as json.\n\nDESCRIPTION\n  Generate an Apex trigger.\n\n  Generates the Apex trigger *.trigger file and associated metadata file. These files must be contained in a parent\n  directory called \"triggers\" in your package directory. Either run this command from an existing directory of this\n  name, or use the --output-dir flag to generate one or point to an existing one.\n\n  If you don't specify the --sobject flag, the .trigger file contains the generic placeholder SOBJECT; replace it with\n  the Salesforce object you want to generate a trigger for. If you don't specify --event, \"before insert\" is used.\n\nALIASES\n  $ sf force apex trigger create\n  $ sf apex generate trigger\n\nEXAMPLES\n  Generate two files associated with the MyTrigger Apex trigger (MyTrigger.trigger and MyTrigger.trigger-meta.xml) in\n  the current directory:\n\n    $ sf template generate apex trigger --name MyTrigger\n\n  Similar to the previous example, but generate the files in the \"force-app/main/default/triggers\" directory:\n\n    $ sf template generate apex trigger --name MyTrigger --output-dir force-app/main/default/triggers\n\n  Generate files for a trigger that fires on the Account object before and after an insert:\n\n    $ sf template generate apex trigger --name MyTrigger --sobject Account --event \"before insert,after insert\"\n\nFLAG DESCRIPTIONS\n  -d, --output-dir=\u003cvalue\u003e  Directory for saving the created files.\n\n    The location can be an absolute path or relative to the current working directory. The default is the current\n    directory.\n\n  -n, --name=\u003cvalue\u003e  Name of the generated Apex trigger\n\n    The name can be up to 40 characters and must start with a letter.\n\n  -t, --template=ApexTrigger  Template to use for file creation.\n\n    Supplied parameter values or default values are filled into a copy of the template.\n```\n\n_See code: [src/commands/template/generate/apex/trigger.ts](https://github.com/salesforcecli/plugin-templates/blob/56.17.3/src/commands/template/generate/apex/trigger.ts)_\n\n## `sf template generate digital-experience site`\n\nGenerate an Experience Cloud site.\n\n```\nUSAGE\n  $ sf template generate digital-experience site -n \u003cvalue\u003e -t Build Your Own (LWR) [--json] [--flags-dir \u003cvalue\u003e] [-o \u003cvalue\u003e] [-p \u003cvalue\u003e]\n    [-e \u003cvalue\u003e] [-d \u003cvalue\u003e]\n\nFLAGS\n  -d, --output-dir=\u003cvalue\u003e       Directory to generate the site files in.\n  -e, --admin-email=\u003cvalue\u003e      Email address for the site administrator. Defaults to the username of the currently\n                                 authenticated user.\n  -n, --name=\u003cvalue\u003e             (required) Name of the Experience Cloud site to generate.\n  -o, --target-org=\u003cvalue\u003e       Username or alias of the target org.\n  -p, --url-path-prefix=\u003cvalue\u003e  URL path prefix for the site; must contain only alphanumeric characters.\n  -t, --template-name=\u003coption\u003e   (required) Template to use when generating the site.\n                                 \u003coptions: Build Your Own (LWR)\u003e\n\nGLOBAL FLAGS\n  --flags-dir=\u003cvalue\u003e  Import flag values from a directory.\n  --json               Format output as json.\n\nDESCRIPTION\n  Generate an Experience Cloud site.\n\n  Creates the metadata of an Experience Cloud site with the specified template, name, and URL path prefix. The output\n  includes all the necessary metadata files, including DigitalExperienceConfig, DigitalExperienceBundle, Network, and\n  CustomSite.\n  Unlike `sf community create`, which builds the site directly in the org, this command generates only the local\n  metadata.\n\nEXAMPLES\n  Generate an Experience Cloud site using the Build Your Own (LWR) template. The site is called \"mysite\" and has the\n  URL path prefix \"mysite\":\n\n    $ sf template generate digital-experience site --template-name \"Build Your Own (LWR)\" --name mysite \\\n      --url-path-prefix mysite\n\n  Generate an Experience Cloud site like the last example, but generate the files into the specified output directory:\n\n    $ sf template generate digital-experience site --template-name \"Build Your Own (LWR)\" --name mysite \\\n      --url-path-prefix mysite --output-dir force-app/main/default\n\nFLAG DESCRIPTIONS\n  -d, --output-dir=\u003cvalue\u003e  Directory to generate the site files in.\n\n    The location can be an absolute path or relative to the current working directory. If not specified, the command\n    reads your sfdx-project.json file and uses the default package directory. When running outside a Salesforce DX\n    project, defaults to the current directory.\n```\n\n_See code: [src/commands/template/generate/digital-experience/site.ts](https://github.com/salesforcecli/plugin-templates/blob/56.17.3/src/commands/template/generate/digital-experience/site.ts)_\n\n## `sf template generate flexipage`\n\nGenerate a FlexiPage, also known as a Lightning page.\n\n```\nUSAGE\n  $ sf template generate flexipage -n \u003cvalue\u003e -t RecordPage|AppPage|HomePage [--json] [--flags-dir \u003cvalue\u003e] [-d \u003cvalue\u003e]\n    [--api-version \u003cvalue\u003e] [--label \u003cvalue\u003e] [--description \u003cvalue\u003e] [-s \u003cvalue\u003e] [--primary-field \u003cvalue\u003e]\n    [--secondary-fields \u003cvalue\u003e...] [--detail-fields \u003cvalue\u003e...]\n\nFLAGS\n  -d, --output-dir=\u003cvalue\u003e           [default: .] Directory for saving the created files.\n  -n, --name=\u003cvalue\u003e                 (required) Name of the FlexiPage.\n  -s, --sobject=\u003cvalue\u003e              API name of the Salesforce object; required when creating a RecordPage.\n  -t, --template=\u003coption\u003e            (required) Template type for the FlexiPage.\n                                     \u003coptions: RecordPage|AppPage|HomePage\u003e\n      --api-version=\u003cvalue\u003e          Override the api version used for api requests made by this command\n      --description=\u003cvalue\u003e          Description for the FlexiPage, which provides context about its purpose.\n      --detail-fields=\u003cvalue\u003e...     Fields to display in the Details tab. Specify multiple fields separated by commas.\n                                     Fields are split into two columns. Used only with RecordPage.\n      --label=\u003cvalue\u003e                Label of this FlexiPage; if not specified, uses the FlexiPage name as the label.\n      --primary-field=\u003cvalue\u003e        Primary field for the dynamic highlights header; typically 'Name'. Used only with\n                                     RecordPage.\n      --secondary-fields=\u003cvalue\u003e...  Secondary fields shown in the dynamic highlights header. Specify multiple fields\n                                     separated by commas. Maximum of 11 fields. Used only with RecordPage.\n\nGLOBAL FLAGS\n  --flags-dir=\u003cvalue\u003e  Import flag values from a directory.\n  --json               Format output as json.\n\nDESCRIPTION\n  Generate a FlexiPage, also known as a Lightning page.\n\n  FlexiPages are the metadata types associated with a Lightning page. A Lightning page represents a customizable screen\n  made up of regions containing Lightning components.\n\n  You can use this command to generate these types of FlexiPages; specify the type with the --template flag:\n\n  - AppPage: A Lightning page used as the home page for a custom app or a standalone application page.\n  - HomePage: A Lightning page used to override the Home page in Lightning Experience.\n  - RecordPage: A Lightning page used to override an object record page in Lightning Experience. Requires that you\n  specify the object name with the --sobject flag.\n\nEXAMPLES\n  Generate a RecordPage FlexiPage for the Account object in the current directory:\n\n    $ sf template generate flexipage --name Account_Record_Page --template RecordPage --sobject Account\n\n  Generate an AppPage FlexiPage in the \"force-app/main/default/flexipages\" directory:\n\n    $ sf template generate flexipage --name Sales_Dashboard --template AppPage --output-dir \\\n      force-app/main/default/flexipages\n\n  Generate a HomePage FlexiPage with a custom label:\n\n    $ sf template generate flexipage --name Custom_Home --template HomePage --label \"Sales Home Page\"\n\n  Generate a RecordPage with dynamic highlights and detail fields:\n\n    $ sf template generate flexipage --name Property_Page --template RecordPage --sobject Rental_Property__c \\\n      --primary-field Name --secondary-fields Property_Address__c,City__c --detail-fields \\\n      Name,Property_Address__c,City__c,Monthly_Rent__c,Bedrooms__c\n\nFLAG DESCRIPTIONS\n  -d, --output-dir=\u003cvalue\u003e  Directory for saving the created files.\n\n    The location can be an absolute path or relative to the current working directory. The default is the current\n    directory.\n\n  -n, --name=\u003cvalue\u003e  Name of the FlexiPage.\n\n    The name can contain only alphanumeric characters, must start with a letter, and can't end with an underscore or\n    contain two consecutive underscores.\n\n  -s, --sobject=\u003cvalue\u003e  API name of the Salesforce object; required when creating a RecordPage.\n\n    For RecordPage FlexiPages, you must specify the associated object API name, such as 'Account', 'Opportunity', or\n    'Custom_Object__c'. This sets the `sobjectType` field in the FlexiPage metadata.\n```\n\n_See code: [src/commands/template/generate/flexipage/index.ts](https://github.com/salesforcecli/plugin-templates/blob/56.17.3/src/commands/template/generate/flexipage/index.ts)_\n\n## `sf template generate lightning app`\n\nGenerate a Lightning App.\n\n```\nUSAGE\n  $ sf template generate lightning app -n \u003cvalue\u003e [--json] [--flags-dir \u003cvalue\u003e] [-t DefaultLightningApp] [-d \u003cvalue\u003e] [--api-version\n    \u003cvalue\u003e]\n\nFLAGS\n  -d, --output-dir=\u003cvalue\u003e   [default: .] Directory for saving the created files.\n  -n, --name=\u003cvalue\u003e         (required) Name of the generated Lightning App.\n  -t, --template=\u003coption\u003e    [default: DefaultLightningApp] Template to use for file creation.\n                             \u003coptions: DefaultLightningApp\u003e\n      --api-version=\u003cvalue\u003e  Override the api version used for api requests made by this command\n\nGLOBAL FLAGS\n  --flags-dir=\u003cvalue\u003e  Import flag values from a directory.\n  --json               Format output as json.\n\nDESCRIPTION\n  Generate a Lightning App.\n\n  Generates a Lightning App bundle in the specified directory or the current working directory. The bundle consists of\n  multiple files in a folder with the designated name.\n\nALIASES\n  $ sf force lightning app create\n  $ sf lightning generate app\n\nEXAMPLES\n  Generate the metadata files for a Lightning app bundle called \"myapp\" in the current directory:\n\n    $ sf template generate lightning app --name myapp\n\n  Similar to the previous example, but generate the files in the \"force-app/main/default/aura\" directory:\n\n    $ sf template generate lightning app --name myapp --output-dir force-app/main/default/aura\n\nFLAG DESCRIPTIONS\n  -d, --output-dir=\u003cvalue\u003e  Directory for saving the created files.\n\n    The location can be an absolute path or relative to the current working directory. The default is the current\n    directory.\n\n  -n, --name=\u003cvalue\u003e  Name of the generated Lightning App.\n\n    The name can be up to 40 characters and must start with a letter.\n\n  -t, --template=DefaultLightningApp  Template to use for file creation.\n\n    Supplied parameter values or default values are filled into a copy of the template. For Lightning Web Components, if\n    this flag isn't specified, the CLI command automatically selects the template based on the \"defaultLwcLanguage\"\n    field in the DX project's \"sfdx-project.json\" file.\n```\n\n_See code: [src/commands/template/generate/lightning/app.ts](https://github.com/salesforcecli/plugin-templates/blob/56.17.3/src/commands/template/generate/lightning/app.ts)_\n\n## `sf template generate lightning component`\n\nGenerate a bundle for an Aura component or a Lightning web component.\n\n```\nUSAGE\n  $ sf template generate lightning component -n \u003cvalue\u003e [--json] [--flags-dir \u003cvalue\u003e] [-t\n    default|analyticsDashboard|analyticsDashboardWithStep|typescript] [-d \u003cvalue\u003e] [--api-version \u003cvalue\u003e] [--type\n    aura|lwc]\n\nFLAGS\n  -d, --output-dir=\u003cvalue\u003e   [default: .] Directory for saving the created files.\n  -n, --name=\u003cvalue\u003e         (required) Name of the generated Lightning Component.\n  -t, --template=\u003coption\u003e    [default: default] Template to use for file creation.\n                             \u003coptions: default|analyticsDashboard|analyticsDashboardWithStep|typescript\u003e\n      --api-version=\u003cvalue\u003e  Override the api version used for api requests made by this command\n      --type=\u003coption\u003e        [default: aura] Type of the component bundle.\n                             \u003coptions: aura|lwc\u003e\n\nGLOBAL FLAGS\n  --flags-dir=\u003cvalue\u003e  Import flag values from a directory.\n  --json               Format output as json.\n\nDESCRIPTION\n  Generate a bundle for an Aura component or a Lightning web component.\n\n  Generates the bundle in the specified directory or the current working directory. The bundle consists of multiple\n  files in a directory with the designated name. Lightning web components are contained in the directory with name\n  \"lwc\", Aura components in \"aura\".\n\n  To generate a Lightning web component, pass \"--type lwc\" to the command. If you don’t specify --type, Salesforce CLI\n  generates an Aura component by default.\n\nALIASES\n  $ sf force lightning component create\n  $ sf lightning generate component\n\nEXAMPLES\n  Generate the metadata files for an Aura component bundle in the current directory:\n\n    $ sf template generate lightning component --name mycomponent\n\n  Generate a Lightning web component bundle in the current directory:\n\n    $ sf template generate lightning component --name mycomponent --type lwc\n\n  Generate an Aura component bundle in the \"force-app/main/default/aura\" directory:\n\n    $ sf template generate lightning component --name mycomponent --output-dir force-app/main/default/aura\n\n  Generate a Lightning web component bundle in the \"force-app/main/default/lwc\" directory:\n\n    $ sf template generate lightning component --name mycomponent --type lwc --output-dir force-app/main/default/lwc\n\n  Generate a TypeScript Lightning Web Component:\n\n    $ sf template generate lightning component --name mycomponent --type lwc --template typescript\n\nFLAG DESCRIPTIONS\n  -d, --output-dir=\u003cvalue\u003e  Directory for saving the created files.\n\n    The location can be an absolute path or relative to the current working directory. The default is the current\n    directory.\n\n  -n, --name=\u003cvalue\u003e  Name of the generated Lightning Component.\n\n    The name can be up to 40 characters and must start with a letter.\n\n  -t, --template=default|analyticsDashboard|analyticsDashboardWithStep|typescript  Template to use for file creation.\n\n    Supplied parameter values or default values are filled into a copy of the template. For Lightning Web Components, if\n    this flag isn't specified, the CLI command automatically selects the template based on the \"defaultLwcLanguage\"\n    field in the DX project's \"sfdx-project.json\" file.\n```\n\n_See code: [src/commands/template/generate/lightning/component.ts](https://github.com/salesforcecli/plugin-templates/blob/56.17.3/src/commands/template/generate/lightning/component.ts)_\n\n## `sf template generate lightning event`\n\nGenerate a Lightning Event.\n\n```\nUSAGE\n  $ sf template generate lightning event -n \u003cvalue\u003e [--json] [--flags-dir \u003cvalue\u003e] [-t DefaultLightningEvt] [-d \u003cvalue\u003e] [--api-version\n    \u003cvalue\u003e]\n\nFLAGS\n  -d, --output-dir=\u003cvalue\u003e   [default: .] Directory for saving the created files.\n  -n, --name=\u003cvalue\u003e         (required) Name of the generated Lightning Event.\n  -t, --template=\u003coption\u003e    [default: DefaultLightningEvt] Template to use for file creation.\n                             \u003coptions: DefaultLightningEvt\u003e\n      --api-version=\u003cvalue\u003e  Override the api version used for api requests made by this command\n\nGLOBAL FLAGS\n  --flags-dir=\u003cvalue\u003e  Import flag values from a directory.\n  --json               Format output as json.\n\nDESCRIPTION\n  Generate a Lightning Event.\n\n  Generates a Lightning Event bundle in the specified directory or the current working directory. The bundle consists of\n  multiple files in a folder with the designated name.\n\nALIASES\n  $ sf force lightning event create\n  $ sf lightning generate event\n\nEXAMPLES\n  Generate the metadata files for a Lightning event bundle called \"myevent\" in the current directory:\n\n    $ sf template generate lightning event --name myevent\n\n  Similar to previous example, but generate the files in the \"force-app/main/default/aura\" directory:\n\n    $ sf template generate lightning event --name myevent --output-dir force-app/main/default/aura\n\nFLAG DESCRIPTIONS\n  -d, --output-dir=\u003cvalue\u003e  Directory for saving the created files.\n\n    The location can be an absolute path or relative to the current working directory. The default is the current\n    directory.\n\n  -n, --name=\u003cvalue\u003e  Name of the generated Lightning Event.\n\n    The name can be up to 40 characters and must start with a letter.\n\n  -t, --template=DefaultLightningEvt  Template to use for file creation.\n\n    Supplied parameter values or default values are filled into a copy of the template. For Lightning Web Components, if\n    this flag isn't specified, the CLI command automatically selects the template based on the \"defaultLwcLanguage\"\n    field in the DX project's \"sfdx-project.json\" file.\n```\n\n_See code: [src/commands/template/generate/lightning/event.ts](https://github.com/salesforcecli/plugin-templates/blob/56.17.3/src/commands/template/generate/lightning/event.ts)_\n\n## `sf template generate lightning interface`\n\nGenerate a Lightning Interface.\n\n```\nUSAGE\n  $ sf template generate lightning interface -n \u003cvalue\u003e [--json] [--flags-dir \u003cvalue\u003e] [-t DefaultLightningIntf] [-d \u003cvalue\u003e]\n    [--api-version \u003cvalue\u003e]\n\nFLAGS\n  -d, --output-dir=\u003cvalue\u003e   [default: .] Directory for saving the created files.\n  -n, --name=\u003cvalue\u003e         (required) Name of the generated Lightning Interface.\n  -t, --template=\u003coption\u003e    [default: DefaultLightningIntf] Template to use for file creation.\n                             \u003coptions: DefaultLightningIntf\u003e\n      --api-version=\u003cvalue\u003e  Override the api version used for api requests made by this command\n\nGLOBAL FLAGS\n  --flags-dir=\u003cvalue\u003e  Import flag values from a directory.\n  --json               Format output as json.\n\nDESCRIPTION\n  Generate a Lightning Interface.\n\n  Generates a Lightning Interface bundle in the specified directory or the current working directory. The bundle\n  consists of multiple files in a folder with the designated name.\n\nALIASES\n  $ sf force lightning interface create\n  $ sf lightning generate interface\n\nEXAMPLES\n  Generate the metadata files for a Lightning interface bundle called \"myinterface\" in the current directory:\n\n    $ sf template generate lightning interface --name myinterface\n\n  Similar to the previous example but generate the files in the \"force-app/main/default/aura\" directory:\n\n    $ sf template generate lightning interface --name myinterface --output-dir force-app/main/default/aura\n\nFLAG DESCRIPTIONS\n  -d, --output-dir=\u003cvalue\u003e  Directory for saving the created files.\n\n    The location can be an absolute path or relative to the current working directory. The default is the current\n    directory.\n\n  -n, --name=\u003cvalue\u003e  Name of the generated Lightning Interface.\n\n    The name can be up to 40 characters and must start with a letter.\n\n  -t, --template=DefaultLightningIntf  Template to use for file creation.\n\n    Supplied parameter values or default values are filled into a copy of the template. For Lightning Web Components, if\n    this flag isn't specified, the CLI command automatically selects the template based on the \"defaultLwcLanguage\"\n    field in the DX project's \"sfdx-project.json\" file.\n```\n\n_See code: [src/commands/template/generate/lightning/interface.ts](https://github.com/salesforcecli/plugin-templates/blob/56.17.3/src/commands/template/generate/lightning/interface.ts)_\n\n## `sf template generate lightning test`\n\nGenerate a Lightning test.\n\n```\nUSAGE\n  $ sf template generate lightning test -n \u003cvalue\u003e [--json] [--flags-dir \u003cvalue\u003e] [-t DefaultLightningTest] [-d \u003cvalue\u003e]\n    [--api-version \u003cvalue\u003e]\n\nFLAGS\n  -d, --output-dir=\u003cvalue\u003e   [default: .] Directory for saving the created files.\n  -n, --name=\u003cvalue\u003e         (required) Name of the generated Lightning Test.\n  -t, --template=\u003coption\u003e    [default: DefaultLightningTest] Template to use for file creation.\n                             \u003coptions: DefaultLightningTest\u003e\n      --api-version=\u003cvalue\u003e  Override the api version used for api requests made by this command\n\nGLOBAL FLAGS\n  --flags-dir=\u003cvalue\u003e  Import flag values from a directory.\n  --json               Format output as json.\n\nDESCRIPTION\n  Generate a Lightning test.\n\n  Generates the test in the specified directory or the current working directory. The .resource file and associated\n  metadata file are generated.\n\nALIASES\n  $ sf force lightning test create\n  $ sf lightning generate test\n\nEXAMPLES\n  Generate the metadata files for the Lightning test called MyLightningTest in the current directory:\n\n    $ sf template generate lightning test --name MyLightningTest\n\n  Similar to the previous example but generate the files in the \"force-app/main/default/lightningTests\" directory:\n\n    $ sf template generate lightning test --name MyLightningTest --output-dir force-app/main/default/lightningTests\n\nFLAG DESCRIPTIONS\n  -d, --output-dir=\u003cvalue\u003e  Directory for saving the created files.\n\n    The location can be an absolute path or relative to the current working directory. The default is the current\n    directory.\n\n  -n, --name=\u003cvalue\u003e  Name of the generated Lightning Test.\n\n    Name of the new Lightning test; can be up to 40 characters and must start with a letter.\n\n  -t, --template=DefaultLightningTest  Template to use for file creation.\n\n    Supplied parameter values or default values are filled into a copy of the template. For Lightning Web Components, if\n    this flag isn't specified, the CLI command automatically selects the template based on the \"defaultLwcLanguage\"\n    field in the DX project's \"sfdx-project.json\" file.\n```\n\n_See code: [src/commands/template/generate/lightning/test.ts](https://github.com/salesforcecli/plugin-templates/blob/56.17.3/src/commands/template/generate/lightning/test.ts)_\n\n## `sf template generate project`\n\nGenerate a Salesforce DX project.\n\n```\nUSAGE\n  $ sf template generate project -n \u003cvalue\u003e [--json] [--flags-dir \u003cvalue\u003e] [-t\n    standard|empty|analytics|reactinternalapp|reactexternalapp|agent] [-d \u003cvalue\u003e] [-s \u003cvalue\u003e] [-p \u003cvalue\u003e] [-x]\n    [--lwc-language javascript|typescript] [--api-version \u003cvalue\u003e]\n\nFLAGS\n  -d, --output-dir=\u003cvalue\u003e           [default: .] Directory for saving the created files.\n  -n, --name=\u003cvalue\u003e                 (required) Name of the generated project.\n  -p, --default-package-dir=\u003cvalue\u003e  [default: force-app] Default package directory name.\n  -s, --namespace=\u003cvalue\u003e            Namespace associated with this project and any connected scratch orgs.\n  -t, --template=\u003coption\u003e            [default: standard] Template to use for project creation.\n                                     \u003coptions: standard|empty|analytics|reactinternalapp|reactexternalapp|agent\u003e\n  -x, --manifest                     Generate a manifest (package.xml) for change-set based development.\n      --api-version=\u003cvalue\u003e          Will set this version as sourceApiVersion in the sfdx-project.json file\n      --lwc-language=\u003coption\u003e        Language of the Lightning Web Components. If not specified, \"javascript\" is used.\n                                     \u003coptions: javascript|typescript\u003e\n\nGLOBAL FLAGS\n  --flags-dir=\u003cvalue\u003e  Import flag values from a directory.\n  --json               Format output as json.\n\nDESCRIPTION\n  Generate a Salesforce DX project.\n\n  A Salesforce DX project has a specific structure and a configuration file (sfdx-project.json) that identifies the\n  directory as a Salesforce DX project. This command generates the necessary configuration files and directories to get\n  you started.\n\n  By default, the generated sfdx-project.json file sets the sourceApiVersion property to the default API version\n  currently used by Salesforce CLI. To specify a different version, set the apiVersion configuration variable. For\n  example: \"sf config set apiVersion=57.0 --global\".\n\nALIASES\n  $ sf force project create\n  $ sf project generate\n\nEXAMPLES\n  Generate a project called \"mywork\":\n\n    $ sf template generate project --name mywork\n\n  Similar to previous example, but generate the files in a directory called \"myapp\":\n\n    $ sf template generate project --name mywork --default-package-dir myapp\n\n  Similar to prevoius example, but also generate a default package.xml manifest file:\n\n    $ sf template generate project --name mywork --default-package-dir myapp --manifest\n\n  Generate a project with the minimum files and directories:\n\n    $ sf template generate project --name mywork --template empty\n\n  Generate a project in which the Lightning Web Components use TypeScript rather than the default JavaScript:\n\n    $ sf template generate project --name mywork --lwc-language typescript\n\nFLAG DESCRIPTIONS\n  -d, --output-dir=\u003cvalue\u003e  Directory for saving the created files.\n\n    The location can be an absolute path or relative to the current working directory. The default is the current\n    directory.\n\n  -n, --name=\u003cvalue\u003e  Name of the generated project.\n\n    Generates a project directory with this name; any valid directory name is accepted. Also sets the \"name\" property in\n    the sfdx-project.json file to this name.\n\n  -p, --default-package-dir=\u003cvalue\u003e  Default package directory name.\n\n    Metadata items such as classes and Lightning bundles are placed inside this folder.\n\n  -t, --template=standard|empty|analytics|reactinternalapp|reactexternalapp|agent  Template to use for project creation.\n\n    The template determines the sample configuration files and directories that this command generates. For example, the\n    empty template provides these files and directory to get you started.\n\n    - .forceignore\n    - config/project-scratch-def.json\n    - sfdx-project.json\n    - package.json\n    - force-app (basic source directory structure)\n\n    The standard template provides a complete force-app directory structure so you know where to put your source. It\n    also provides additional files and scripts, especially useful when using Salesforce Extensions for VS Code. For\n    example:\n\n    - .gitignore: Use Git for version control.\n    - .prettierrc and .prettierignore: Use Prettier to format your Aura components.\n    - .vscode/extensions.json: When launched, Visual Studio Code, prompts you to install the recommended extensions for\n    your project.\n    - .vscode/launch.json: Configures Replay Debugger.\n    - .vscode/settings.json: Additional configuration settings.\n\n    The analytics template provides similar files and the force-app/main/default/waveTemplates directory.\n\n    The reactinternalapp and reactexternalapp templates provide React-based project scaffolding for internal and\n    external UI bundle use cases.\n\n    The agent template provides project scaffolding for building Agentforce agents and includes a sample agent called\n    Local Info Agent.\n\n  -x, --manifest  Generate a manifest (package.xml) for change-set based development.\n\n    Generates a default manifest (package.xml) for fetching Apex, Visualforce, Lightning components, and static\n    resources.\n\n  --api-version=\u003cvalue\u003e  Will set this version as sourceApiVersion in the sfdx-project.json file\n\n    Override the api version used for api requests made by this command\n\n  --lwc-language=javascript|typescript  Language of the Lightning Web Components. If not specified, \"javascript\" is used.\n\n    When set to `'typescript'`, generates TypeScript configuration files (tsconfig.json, package.json with TypeScript\n    dependencies, and TypeScript-aware ESLint config). When you deploy the TypeScript-based Lightning Web Components,\n    the TypeScript files are first compiled locally for validation and then the `.ts` files are deployed to your org for\n    server-side type stripping.\n```\n\n_See code: [src/commands/template/generate/project/index.ts](https://github.com/salesforcecli/plugin-templates/blob/56.17.3/src/commands/template/generate/project/index.ts)_\n\n## `sf template generate static-resource`\n\nGenerate a static resource.\n\n```\nUSAGE\n  $ sf template generate static-resource -n \u003cvalue\u003e [--json] [--flags-dir \u003cvalue\u003e] [--type \u003cvalue\u003e] [-d \u003cvalue\u003e]\n  [--api-version \u003cvalue\u003e]\n\nFLAGS\n  -d, --output-dir=\u003cvalue\u003e   [default: .] Directory for saving the created files.\n  -n, --name=\u003cvalue\u003e         (required) Name of the generated static resource.\n      --api-version=\u003cvalue\u003e  Override the api version used for api requests made by this command\n      --type=\u003cvalue\u003e         [default: application/zip] Content type (mime type) of the generated static resource.\n\nGLOBAL FLAGS\n  --flags-dir=\u003cvalue\u003e  Import flag values from a directory.\n  --json               Format output as json.\n\nDESCRIPTION\n  Generate a static resource.\n\n  Generates the metadata resource file in the specified directory or the current working directory. Static resource\n  files must be contained in a parent directory called \"staticresources\" in your package directory. Either run this\n  command from an existing directory of this name, or use the --output-dir flag to create one or point to an existing\n  one.\n\nALIASES\n  $ sf force staticresource create\n  $ sf static-resource generate\n\nEXAMPLES\n  Generate the metadata file for a static resource called MyResource in the current directory:\n\n    $ sf template generate static-resource --name MyResource\n\n  Similar to previous example, but specifies a MIME type of application/json:\n\n    $ sf template generate static-resource --name MyResource --type application/json\n\n  Generate the resource file in the \"force-app/main/default/staticresources\" directory:\n\n    $ sf template generate static-resource --name MyResource --output-dir force-app/main/default/staticresources\n\nFLAG DESCRIPTIONS\n  -d, --output-dir=\u003cvalue\u003e  Directory for saving the created files.\n\n    The location can be an absolute path or relative to the current working directory. The default is the current\n    directory.\n\n  -n, --name=\u003cvalue\u003e  Name of the generated static resource.\n\n    This name can contain only underscores and alphanumeric characters, and must be unique in your org. It must begin\n    with a letter, not include spaces, not end with an underscore, and not contain two consecutive underscores.\n\n  --type=\u003cvalue\u003e  Content type (mime type) of the generated static resource.\n\n    Must be a valid MIME type such as application/json, application/javascript, application/zip, text/plain, text/css,\n    etc.\n```\n\n_See code: [src/commands/template/generate/static-resource/index.ts](https://github.com/salesforcecli/plugin-templates/blob/56.17.3/src/commands/template/generate/static-resource/index.ts)_\n\n## `sf template generate ui-bundle`\n\nGenerate a UI bundle, which contains the code and metadata to build a UI experience that uses non-native Salesforce frameworks, such as React.\n\n```\nUSAGE\n  $ sf template generate ui-bundle -n \u003cvalue\u003e [--json] [--flags-dir \u003cvalue\u003e] [-t default|reactbasic] [-l \u003cvalue\u003e] [-d \u003cvalue\u003e]\n    [--api-version \u003cvalue\u003e]\n\nFLAGS\n  -d, --output-dir=\u003cvalue\u003e   Directory into which the files are created.\n  -l, --label=\u003cvalue\u003e        Master label for the UI bundle.\n  -n, --name=\u003cvalue\u003e         (required) API name of the generated UI bundle.\n  -t, --template=\u003coption\u003e    [default: default] Template to use when creating the files for a specific UI framework.\n                             \u003coptions: default|reactbasic\u003e\n      --api-version=\u003cvalue\u003e  Override the api version used for api requests made by this command\n\nGLOBAL FLAGS\n  --flags-dir=\u003cvalue\u003e  Import flag values from a directory.\n  --json               Format output as json.\n\nDESCRIPTION\n  Generate a UI bundle, which contains the code and metadata to build a UI experience that uses non-native Salesforce\n  frameworks, such as React.\n\n  Salesforce provides native UI frameworks, such as Lighting Web Components (LWC), to build applications that run on the\n  Salesforce Platform. But you can also use non-native JavaScript- or TypeScript-based UI frameworks, such as React, to\n  build a UI experience for the Salesforce Platform and that you can launch from the App Launcher.\n\n  These non-native UI experiences are defined by the \"UIBundle\" metadata type in your DX project. Use this command to\n  generate the required DX project structure and files. For example, when you run this command and specify the name\n  MyUiBundle, then the files are generated into a \"uiBundles/MyUiBundle\" directory. Use the --output-dir flag to specify\n  a different directory.\n\n  Use the --template flag for generating the files to get started with a speciic UI framework, such as React. Check out\n  the README.md file in the generated \"uiBundles/\u003cbundlename\u003e\" directory for more information about the template.\n\nEXAMPLES\n  Generate a UI bundle called MyUiBundle in the current directory:\n\n    $ sf template generate ui-bundle --name MyUiBundle\n\n  Generate a React-based UI bundle:\n\n    $ sf template generate ui-bundle --name MyReactApp --template reactbasic\n\n  Generate the React-based UI bundle in the \"force-app/main/default/uiBundles\" directory:\n\n    $ sf template generate ui-bundle --name MyUiBundle --template reactbasic --output-dir \\\n      force-app/main/default/uiBundles\n\nFLAG DESCRIPTIONS\n  -d, --output-dir=\u003cvalue\u003e  Directory into which the files are created.\n\n    The location can be an absolute path or relative to the current working directory.\n\n    If not specified, the command reads your sfdx-project.json and defaults to \"uiBundles\" directory within your default\n    package directory. When running outside a Salesforce DX project, defaults to the current directory.\n\n    **Important:** This command automatically ensures the output directory ends with \"uiBundles\". If your specified path\n    doesn't end with \"uiBundles\", it's automatically appended. The UI bundle is created at \"\u003coutput-dir\u003e/\u003cname\u003e\".\n\n    **Examples:**\n\n    - \"--output-dir force-app/main/default\" → Creates a UI bundle at \"force-app/main/default/uiBundles/MyUiBundle/\"\n    - \"--output-dir force-app/main/default/uiBundles\" → Creates a UI bundle at\n    \"force-app/main/default/uiBundles/MyUiBundle/\" (no change)\n\n  -l, --label=\u003cvalue\u003e  Master label for the UI bundle.\n\n    If not specified, the label is derived from the name.\n\n  -n, --name=\u003cvalue\u003e  API name of the generated UI bundle.\n\n    This name can contain only underscores and alphanumeric characters, and must be unique in your org. It must begin\n    with a letter, not include spaces, not end with an underscore, and not contain two consecutive underscores.\n\n  -t, --template=default|reactbasic  Template to use when creating the files for a specific UI framework.\n\n    Supplied parameter values or default values are filled into a copy of the template.\n```\n\n_See code: [src/commands/template/generate/ui-bundle/index.ts](https://github.com/salesforcecli/plugin-templates/blob/56.17.3/src/commands/template/generate/ui-bundle/index.ts)_\n\n## `sf template generate visualforce component`\n\nGenerate a Visualforce Component.\n\n```\nUSAGE\n  $ sf template generate visualforce component -n \u003cvalue\u003e -l \u003cvalue\u003e [--json] [--flags-dir \u003cvalue\u003e] [-t DefaultVFComponent] [-d \u003cvalue\u003e]\n    [--api-version \u003cvalue\u003e]\n\nFLAGS\n  -d, --output-dir=\u003cvalue\u003e   [default: .] Directory for saving the created files.\n  -l, --label=\u003cvalue\u003e        (required) Visualforce Component label.\n  -n, --name=\u003cvalue\u003e         (required) Name of the generated Visualforce Component.\n  -t, --template=\u003coption\u003e    [default: DefaultVFComponent] Template to use for file creation.\n                             \u003coptions: DefaultVFComponent\u003e\n      --api-version=\u003cvalue\u003e  Override the api version used for api requests made by this command\n\nGLOBAL FLAGS\n  --flags-dir=\u003cvalue\u003e  Import flag values from a directory.\n  --json               Format output as json.\n\nDESCRIPTION\n  Generate a Visualforce Component.\n\n  The command generates the .Component file and associated metadata file in the specified directory or the current\n  working directory by default.\n\nALIASES\n  $ sf force visualforce component create\n  $ sf visualforce generate component\n\nEXAMPLES\n  Generate the metadata files for a Visualforce component in the current directory:\n\n    $ sf template generate visualforce component --name mycomponent --label mylabel\n\n  Similar to previous example, but generate the files in the directory \"force-app/main/default/components\":\n\n    $ sf template generate visualforce component --name mycomponent --label mylabel --output-dir components\n\nFLAG DESCRIPTIONS\n  -d, --output-dir=\u003cvalue\u003e  Directory for saving the created files.\n\n    The location can be an absolute path or relative to the current working directory. The default is the current\n    directory.\n\n  -n, --name=\u003cvalue\u003e  Name of the generated Visualforce Component.\n\n    The name can be up to 40 characters and must start with a letter.\n\n  -t, --template=DefaultVFComponent  Template to use for file creation.\n\n    Supplied parameter values or default values are filled into a copy of the template.\n```\n\n_See code: [src/commands/template/generate/visualforce/component.ts](https://github.com/salesforcecli/plugin-templates/blob/56.17.3/src/commands/template/generate/visualforce/component.ts)_\n\n## `sf template generate visualforce page`\n\nGenerate a Visualforce Page.\n\n```\nUSAGE\n  $ sf template generate visualforce page -n \u003cvalue\u003e -l \u003cvalue\u003e [--json] [--flags-dir \u003cvalue\u003e] [-d \u003cvalue\u003e]\n  [--api-version \u003cvalue\u003e]\n\nFLAGS\n  -d, --output-dir=\u003cvalue\u003e   [default: .] Directory for saving the created files.\n  -l, --label=\u003cvalue\u003e        (required) Visualforce Page label.\n  -n, --name=\u003cvalue\u003e         (required) Name of the generated Visualforce Page.\n      --api-version=\u003cvalue\u003e  Override the api version used for api requests made by this command\n\nGLOBAL FLAGS\n  --flags-dir=\u003cvalue\u003e  Import flag values from a directory.\n  --json               Format output as json.\n\nDESCRIPTION\n  Generate a Visualforce Page.\n\n  The command generates the .Page file and associated metadata file in the specified directory or the current working\n  directory by default.\n\nALIASES\n  $ sf force visualforce page create\n  $ sf visualforce generate page\n\nEXAMPLES\n  Generate the metadata files for a Visualforce page in the current directory:\n\n    $ sf template generate visualforce page --name mypage --label mylabel\n\n  Similar to previous example, but generate the files in the directory \"force-app/main/default/pages\":\n\n    $ sf template generate visualforce page --name mypage --label mylabel --output-dir pages\n\nFLAG DESCRIPTIONS\n  -d, --output-dir=\u003cvalue\u003e  Directory for saving the created files.\n\n    The location can be an absolute path or relative to the current working directory. The default is the current\n    directory.\n\n  -n, --name=\u003cvalue\u003e  Name of the generated Visualforce Page.\n\n    The name can be up to 40 characters and must start with a letter.\n```\n\n_See code: [src/commands/template/generate/visualforce/page.ts](https://github.com/salesforcecli/plugin-templates/blob/56.17.3/src/commands/template/generate/visualforce/page.ts)_\n\n\u003c!-- commandsstop --\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsalesforcecli%2Fplugin-templates","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsalesforcecli%2Fplugin-templates","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsalesforcecli%2Fplugin-templates/lists"}