ワンクリックで
sf-troubleshoot
Troubleshooting and diagnostics commands including CLI doctor, common error resolution, and CI/CD examples.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Troubleshooting and diagnostics commands including CLI doctor, common error resolution, and CI/CD examples.
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-troubleshoot |
| description | Troubleshooting and diagnostics commands including CLI doctor, common error resolution, and CI/CD examples. |
sf TroubleshootingDiagnostics and common issue resolution for the Salesforce CLI.
Run diagnostics on the CLI and its environment.
sf doctor
# Checks:
# - CLI installation and version
# - Plugin status
# - Configuration files
# - Authentication status
# - Network connectivity
Show which plugin provides a given command.
sf which org list
# Logout from all orgs
sf org logout --no-prompt
# Clear config and auth data
rm -rf ~/.sf ~/.config/sf
# Re-authenticate
sf org login web --alias myOrg
sf config unset target-org --global
sf config unset defaultdevhubusername --global
SF_DEBUG=1 sf org list
export HTTPS_PROXY=http://proxy:port
export HTTP_PROXY=http://proxy:port
sf org list
sf config set disable-telemetry=true --global
name: Deploy to Salesforce
on: [push]
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Salesforce CLI
run: npm install -g @salesforce/cli
- name: Authenticate
env:
SF_AUTH_URL: ${{ secrets.SF_AUTH_URL }}
run: echo "$SF_AUTH_URL" | sf org login sfdx-url --stdin --alias targetOrg
- name: Deploy
run: sf project deploy start --source-dir force-app --target-org targetOrg --wait 10
deploy:
image: node:18
stage: deploy
script:
- npm install -g @salesforce/cli
- echo "$SF_AUTH_URL" | sf org login sfdx-url --stdin --alias targetOrg
- sf project deploy start --source-dir force-app --target-org targetOrg --wait 10
only:
- main