Set up an SFDX project with claude-sfdx-iq rules and configuration (alternative to npx claude-sfdx-iq setup-project)
From claude-sfdx-iqnpx claudepluginhub bhanu91221/claude-sfdx-iq --plugin claude-sfdx-iqCopy claude-sfdx-iq rules and configuration templates into the current SFDX project. Use this when npx claude-sfdx-iq setup-project is unavailable (e.g., corporate VPN, blocked npm).
Check that sfdx-project.json exists in the current working directory. If missing, inform the user this must be run from an SFDX project root.
Use Glob to search for the plugin's rules/index.md file in these locations:
~/.claude/plugins/claude-sfdx-iq/rules/index.md.claude/plugins/claude-sfdx-iq/rules/index.md**/claude-sfdx-iq/rules/index.md (fallback broad search)The plugin root is the parent directory of the found rules/ folder.
For each subdirectory in the plugin's rules/ folder (common, apex, lwc, soql, flows, metadata):
.md file from the plugin's rules/<subdomain>/ directory.claude/rules/<subdomain>/ in the current projectrules/index.md to .claude/rules/index.mdIf .claude/rules/ already exists, warn the user and ask before overwriting.
If .claude/settings.json does NOT exist:
.claude-project-template/settings.json from the plugin directory.claude/settings.jsonIf it already exists, skip and inform the user.
If CLAUDE.md does NOT exist in the project root:
.claude-project-template/CLAUDE.md from the plugin directory.claude/CLAUDE.md in the project rootIf it already exists, skip and inform the user.
Setup Complete
---
Rules: 44 copied to .claude/rules/ (~43k tokens)
Settings: [copied / skipped]
CLAUDE.md: [copied / skipped]
Token Optimization:
context-assigner loads only 5-8 rules per task (saves ~30k tokens)
Next steps:
/apex-review — Review your Apex code
/tdd — Start test-driven development
/deploy — Deploy to your org
/setup-projectConfigure scripts and proxies to auto-start when opening this project