百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
S

sfdx-falcon-template

> 包管理
开源

扩展的 Salesforce DX 项目目录模板,旨在支持复杂项目和管理的包。

194 stars0 点赞1 次浏览
访问官网GitHub

工具介绍

扩展的 Salesforce DX 项目目录模板,旨在支持复杂项目和管理的包。

SFDX-Falcon 2GP Project Template

This template is a starting point for a Salesforce DX project building a managed second-generation package (2GP).

Getting Started

  1. Copy this template repo.
  2. Clone your copy into a working Salesforce development environment.
  3. Customize sfdx-project.json (details below).
  4. Create a managed 2GP (details below).
  5. Create a package development scratch org (details below).
  6. Start building your app.

Customize sfdx-project.json

1. Customize the name property.

Use only letters, numbers, and hyphens - when choosing a name. For example:

json
  "name": "my-new-app",

2. Customize the namespace property.

Use a namespace that is linked to the Developer Hub you plan to build from. For example:

json
  "namespace": "my_namespace",

Create a Managed 2GP

1. Use the package create command to create a managed package.

Execute this command from the root of your SFDX project folder.

bash
sf package create -n "My New 2GP App" -r sfdx-source/packaged -t Managed

2. Remove the duplicate packageDirectory object from sfdx-project.json.

The package create command will have created a duplicate packageDirectory object in sfdx-project.json. Here's how to fix this.

  1. KEEP the original packageDirectory object near the top of sfdx-project.json by changing the value of the package property from "Package Name" to the name that appears in the packageAliases object.
  2. REMOVE the duplicate packageDirectory object that was added near the bottom of sfdx-project.json.

Create a Package Development Scratch Org

1. Install the SFDX-Falcon toolbelt in your local project.

Execute this command from the root of your SFDX project folder.

bash
npm install --prefix ./scripts/js 

If you get any warnings about security vulernabilities, execute this command

bash
npm audit fix --prefix ./scripts/js 

2. Use the SFDX-Falcon toolbelt to create a package development scratch org.

Execute this command from the root of your SFDX project folder.

bash
./toolbelt

Once this command finishes, you should be ready to start building.

Issues? Questions/Comments?

  • SFDX-Falcon Template Issues
  • SFDX-Falcon Template Questions/Comments

Contributors

  • Vivek M. Chawla

License

This project is licensed under the BSD-3-Clause License - see the LICENSE file for details.

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

JavaScriptmanaged-packagesalesforcesalesforcedxsfdx

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月18日
分类包管理
定价开源

> 相关工具

N
npm
Node.js 默认包管理器
P
pnpm
高效节省磁盘的 Node 包管理器
I
is-gif
Check if a Buffer/Uint8Array is a GIF image