원클릭으로
sf-org
Org management commands including listing, displaying, opening, and creating Scratch Orgs and Sandboxes.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Org management commands including listing, displaying, opening, and creating Scratch Orgs and Sandboxes.
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.
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.
Authentication commands for connecting to Salesforce orgs. Includes Web Login, JWT, SFDX-URL, and Access Token flows.
| name | sf-org |
| description | Org management commands including listing, displaying, opening, and creating Scratch Orgs and Sandboxes. |
sf org ManagementCommands for managing Salesforce orgs.
List all authenticated orgs.
# List all orgs
sf org list
# List with JSON output
sf org list --json
sf org list is global and does not accept --target-org.
List all authenticated orgs (auth-focused view).
sf org list auth
List org limits.
sf org list limits --target-org myOrg
List metadata in org.
sf org list metadata --metadata ApexClass --target-org myOrg
List all metadata types available in org.
sf org list metadata-types --target-org myOrg
List users in org.
sf org list users --target-org myOrg
Display org information.
sf org display --target-org myOrg --verbose
Open org in browser.
sf org open --target-org myOrg --path /lightning/page/home
Logout from orgs.
sf org logout --target-org myOrg --no-prompt
Create a scratch org.
sf org create scratch --definition-file config/project-scratch-def.json \
--alias myScratchOrg \
--duration-days 30 \
--set-default
{
"orgName": "My Scratch Org",
"edition": "Developer",
"features": ["EnableSetPasswordInApi"]
}
Delete a scratch org.
sf org delete scratch --target-org myScratchOrg --no-prompt
Create a sandbox org.
sf org create sandbox --name mysandbox --license-type Developer \
--alias MyDevSandbox --target-org prodOrg --set-default
DeveloperDeveloperProPartialFullRefresh a sandbox org.
sf org refresh sandbox --name MySandbox --target-org prodOrg
Delete a sandbox org.
sf org delete sandbox --target-org mySandbox --no-prompt
Assign permission set to user.
sf org assign permset --name MyPermissionSet --target-org myOrg
Generate password for scratch org user.
# Generate password for default user
sf org generate password --target-org myScratchOrg
# Generate for specific user
sf org generate password --target-org myScratchOrg \
--on-behalf-of test-user@example.com
# Generate complex password (minimum length is now 20)
sf org generate password --target-org myScratchOrg --length 20 --complex-password
[!IMPORTANT] Starting in version 2.128.5, the minimum (and default) value for the
--lengthflag is now 20. If a value less than 20 is specified, the CLI will use 20.
Enable source tracking for org.
sf org enable tracking --target-org myOrg
Disable source tracking for org.
sf org disable tracking --target-org myOrg