원클릭으로
sf-lightning
Lightning component and application development commands including generation and local preview.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Lightning component and application development commands including generation and local preview.
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-lightning |
| description | Lightning component and application development commands including generation and local preview. |
sf lightning DevelopmentCommands for Lightning components.
Create Lightning component.
# Create LWC
sf lightning generate component --name myComponent \
--type lwc \
--output-dir force-app/main/default/lwc
# Create Aura component
sf lightning generate component --name myAuraComponent \
--type aura \
--output-dir force-app/main/default/aura
Create other Lightning artifacts.
# Create Lightning app
sf lightning generate app --name MyApp \
--output-dir force-app/main/default/applications
# Create Lightning event
sf lightning generate event --name MyEvent \
--output-dir force-app/main/default/aura
# Create Lightning interface
sf lightning generate interface --name MyInterface \
--output-dir force-app/main/default/aura
Preview components and sites locally in real-time. These commands are now JIT (Just-in-Time) installed.
Preview a Lightning Experience app locally and in real-time.
# Preview app
sf lightning dev app --name MyApp --target-org myOrg
# Preview for specific device
sf lightning dev app --name MyApp --device-type android --target-org myOrg
Preview LWC components in isolation.
# Preview component
sf lightning dev component --name myComponent --target-org myOrg
Preview an Experience Builder site locally.
# Preview site
sf lightning dev site --name "Customer Portal" --target-org myOrg
[!TIP] These commands automatically install the
plugin-lightning-devif it's not present.
| Flag | Description |
|---|---|
--name | Name of the app, component, or site to preview |
--device-type | Device type: desktop (default), ios, android |
-o, --target-org | Target org alias or username |
--device-id | ID of mobile device (for ios or android) |