一键导入
sf-package
Package development commands including creating, versioning, installing, listing, and promoting packages.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Package development commands including creating, versioning, installing, listing, and promoting packages.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Salesforce CLI (sf command) reference and best practices. Use this skill when working with Salesforce development, deployment, org management, data operations, or CI/CD workflows. Covers modern sf v2 commands from version 2.140.6 (June 28, 2026).
Raw REST API and GraphQL requests via sf CLI. Use for custom endpoints, GraphQL queries/mutations, and arbitrary HTTP calls to Salesforce APIs.
Data operations including SOQL queries, single record CRUD, bulk import/export/update, and search.
Org management commands including listing, displaying, opening, and creating Scratch Orgs and Sandboxes.
Agentforce agent management commands including creation, activation, deactivation, and testing.
Apex development commands including class and trigger generation, anonymous execution, unit test running, and debug log management.
| name | sf-package |
| description | Package development commands including creating, versioning, installing, listing, and promoting packages. |
sf package DevelopmentCommands for package development.
Create package.
# Create unlocked package
sf package create --name MyPackage --package-type Unlocked --path force-app
# Create managed package
sf package create --name MyManagedPackage --package-type Managed --path force-app
Create package version.
# Create version
sf package version create --package MyPackage \
--code-coverage \
--installation-key MyKey123 \
--wait 10
Install package.
# Install by ID
sf package install --package 04txx --target-org myOrg
# Install by alias
sf package install --package "MyPackage@1.0.0" --target-org myOrg
# Install with wait
sf package install --package 04txx --target-org myOrg --wait 10
List packages and versions.
# List packages
sf package list --target-org myDevHub
# List versions for specific package
sf package version list --target-org myDevHub --packages MyPackage
Promote package version to released status.
sf package version promote --package "MyPackage@1.0.0" --target-org myDevHub
Uninstall package and report status.
# Uninstall package
sf package uninstall --package "MyPackage@1.0.0" --target-org myOrg
# Report status
sf package uninstall report --request-id <request-id> --target-org myOrg
Display package ancestry and dependencies.
# Display ancestry
sf package version displayancestry --package MyPackage --target-org myDevHub
# Display dependencies
sf package version displaydependencies --package 04txx --target-org myDevHub
Manage push upgrades (managed packages).
# Schedule push upgrade
sf package push-upgrade schedule --package 04txx --start-time "2024-01-15T10:00:00"
# Report status
sf package push-upgrade report --request-id <id>