원클릭으로
sf-apex
Apex development commands including class and trigger generation, anonymous execution, unit test running, and debug log management.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Apex development commands including class and trigger generation, anonymous execution, unit test running, and debug log management.
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.
Authentication commands for connecting to Salesforce orgs. Includes Web Login, JWT, SFDX-URL, and Access Token flows.
| name | sf-apex |
| description | Apex development commands including class and trigger generation, anonymous execution, unit test running, and debug log management. |
sf apex DevelopmentCommands for Apex development.
Create Apex class.
# Create class
sf apex generate class --name MyClass \
--output-dir force-app/main/default/classes
# Create unit test class
sf apex generate class --name MyClassTest \
--template ApexUnitTest \
--output-dir force-app/main/default/classes
DefaultApexClass (default)ApexExceptionApexUnitTestCreate Apex trigger.
# Create trigger
sf apex generate trigger --name AccountTrigger \
--sobject Account \
--event "before insert,after update" \
--output-dir force-app/main/default/triggers
Execute anonymous Apex.
# Execute from file
sf apex run --target-org myOrg --file myScript.apex
# Execute inline
echo "System.debug('Hello World');" | sf apex run --target-org myOrg
# Interactive mode
sf apex run --target-org myOrg
Run Apex tests.
# Run all local tests
sf apex run test --target-org myOrg --test-level RunLocalTests
# Run specific class
sf apex run test --target-org myOrg --tests MyClassTest
# Run with code coverage
sf apex run test --target-org myOrg \
--test-level RunLocalTests \
--code-coverage
Get test results.
# Get test results
sf apex get test --target-org myOrg --test-run-id <test-run-id>
# Get with code coverage
sf apex get test --target-org myOrg \
--test-run-id <test-run-id> \
--code-coverage
Debug log management.
# List logs
sf apex log list --target-org myOrg
# Get specific log
sf apex log get --target-org myOrg --log-id <log-id>
# Tail logs (real-time)
sf apex log tail --target-org myOrg --color