Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -745,7 +745,7 @@ Generate a Salesforce DX project.
```
USAGE
$ sf template generate project -n <value> [--json] [--flags-dir <value>] [-t
standard|empty|analytics|reactb2e|reactb2x|agent] [-d <value>] [-s <value>] [-p <value>] [-x] [--api-version
standard|empty|analytics|reactinternalapp|reactexternalapp|agent] [-d <value>] [-s <value>] [-p <value>] [-x] [--api-version
<value>]

FLAGS
Expand All @@ -754,7 +754,7 @@ FLAGS
-p, --default-package-dir=<value> [default: force-app] Default package directory name.
-s, --namespace=<value> Namespace associated with this project and any connected scratch orgs.
-t, --template=<option> [default: standard] Template to use for project creation.
<options: standard|empty|analytics|reactb2e|reactb2x|agent>
<options: standard|empty|analytics|reactinternalapp|reactexternalapp|agent>
-x, --manifest Generate a manifest (package.xml) for change-set based development.
--api-version=<value> Will set this version as sourceApiVersion in the sfdx-project.json file

Expand Down Expand Up @@ -809,7 +809,7 @@ FLAG DESCRIPTIONS

Metadata items such as classes and Lightning bundles are placed inside this folder.

-t, --template=standard|empty|analytics|reactb2e|reactb2x|agent Template to use for project creation.
-t, --template=standard|empty|analytics|reactinternalapp|reactexternalapp|agent Template to use for project creation.

The template determines the sample configuration files and directories that this command generates. For example, the
empty template provides these files and directory to get you started.
Expand All @@ -833,7 +833,7 @@ FLAG DESCRIPTIONS

The analytics template provides similar files and the force-app/main/default/waveTemplates directory.

The reactb2e and reactb2x templates provide React-based project scaffolding for B2E and B2X web application use
The reactinternalapp and reactexternalapp templates provide React-based project scaffolding for internal and external web application use
cases.

The agent template provides project scaffolding for building Agentforce agents and includes a sample agent called
Expand Down
2 changes: 1 addition & 1 deletion messages/project.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ The standard template provides a complete force-app directory structure so you k

The analytics template provides similar files and the force-app/main/default/waveTemplates directory.

The reactb2e and reactb2x templates provide React-based project scaffolding for B2E and B2X web application use cases.
The reactinternalapp and reactexternalapp templates provide React-based project scaffolding for internal and external web application use cases.

The agent template provides project scaffolding for building Agentforce agents and includes a sample agent called Local Info Agent.

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"dependencies": {
"@salesforce/core": "^8.27.1",
"@salesforce/sf-plugins-core": "^12",
"@salesforce/templates": "^66.5.6"
"@salesforce/templates": "^66.6.2"
},
"devDependencies": {
"@oclif/plugin-command-snapshot": "^5.3.13",
Expand Down
2 changes: 1 addition & 1 deletion src/commands/template/generate/project/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export default class Project extends SfCommand<CreateOutput> {
summary: messages.getMessage('flags.template.summary'),
description: messages.getMessage('flags.template.description'),
default: 'standard',
options: ['standard', 'empty', 'analytics', 'reactb2e', 'reactb2x', 'agent'] as const,
options: ['standard', 'empty', 'analytics', 'reactinternalapp', 'reactexternalapp', 'agent'] as const,
})(),
'output-dir': outputDirFlag,
namespace: Flags.string({
Expand Down
12 changes: 6 additions & 6 deletions test/commands/template/generate/project/index.nut.ts
Original file line number Diff line number Diff line change
Expand Up @@ -243,10 +243,10 @@ describe('template generate project:', () => {
assert.file([path.join(session.project.dir, 'analytics1', 'eslint.config.js')]);
});

it('should create project with reactb2e template', () => {
const projectName = 'react-b2e-test';
const alphanumericName = 'reactb2etest';
execCmd(`template generate project --projectname ${projectName} --template reactb2e`, {
it('should create project with reactinternalapp template', () => {
const projectName = 'react-internal-app-test';
const alphanumericName = 'reactinternalapptest';
execCmd(`template generate project --projectname ${projectName} --template reactinternalapp`, {
ensureExitCode: 0,
});
const projectDir = path.join(session.project.dir, projectName);
Expand All @@ -265,10 +265,10 @@ describe('template generate project:', () => {
assert.fileContent(webappMetaPath, alphanumericName);
});

it('should create project with reactb2x template', () => {
it('should create project with reactexternalapp template', () => {
const projectName = 'react-b2x-test';
const alphanumericName = 'reactb2xtest';
execCmd(`template generate project --projectname ${projectName} --template reactb2x`, {
execCmd(`template generate project --projectname ${projectName} --template reactexternalapp`, {
ensureExitCode: 0,
});
const projectDir = path.join(session.project.dir, projectName);
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1649,10 +1649,10 @@
cli-progress "^3.12.0"
terminal-link "^3.0.0"

"@salesforce/templates@^66.5.6":
version "66.5.6"
resolved "https://registry.yarnpkg.com/@salesforce/templates/-/templates-66.5.6.tgz#1fcece13106882ded54fcd96a5d9bf49fd31a546"
integrity sha512-k18ROus8XUskIT6n2eXsHvoZK3NmrVePSPduCfjWEohMEJ/qy9ltdyMos/eebzc3ejooLBu40/22zKjVZFoFfA==
"@salesforce/templates@^66.6.2":
version "66.6.2"
resolved "https://registry.yarnpkg.com/@salesforce/templates/-/templates-66.6.2.tgz#efc37965d41ba81791d08ecb733a327f4e9f8536"
integrity sha512-ACrKYF586OtPD9PfDivFL9p66Bb08wbVOlp/FnlphjLFmcVNGxNlmG0bJnZqjHQnckZOvtrVfwBaHxS4iFObtg==
dependencies:
"@salesforce/kit" "^3.2.4"
ejs "^3.1.10"
Expand Down