
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
apex-utils-cli
Advanced tools
AI-powered Apex code utilities - generate inline documentation and test classes
A powerful Node.js CLI tool for Salesforce Apex developers that leverages AI to generate inline documentation and comprehensive test classes for your Apex code.

npm install -g apex-utils-cli
Using Ollama (Local, No API Key Required):
apex-utils inlinedoc \
-a MyApexClass.cls \
-m ollama \
--model-name llama3.2
Using OpenAI:
apex-utils inlinedoc \
-a MyApexClass.cls \
-m openai \
--api-key sk-your-openai-key \
--model-name gpt-4
Using Anthropic:
apex-utils inlinedoc \
-a MyApexClass.cls \
-m anthropic \
--api-key sk-ant-your-key \
--model-name claude-sonnet-4.5-20250929
Using Groq:
apex-utils inlinedoc \
-a MyApexClass.cls \
-m groq \
--api-key gsk-your-groq-key \
--model-name mixtral-8x7b-32768
Using Ollama:
apex-utils test-class \
-a MyApexClass.cls \
-m ollama
apex-utils test-class -m ollama --model-name llama3.2:latest -a ~/pricesync2/force-app/main/default/classes/PriceBookSyncController.cls
Using OpenAI:
apex-utils test-class \
-a MyApexClass.cls \
-m openai \
--api-key sk-your-openai-key \
--model-name gpt-4-turbo
Using Groq
apex-utils test-class -m groq --model-name openai/gpt-oss-20b --api-key key -a ~/pricesync2/force-app/main/default/classes/PriceBookSyncController.cls
| Option | Alias | Description | Required |
|---|---|---|---|
--apex <file> | -a | Path to Apex class file | ✅ |
--model <provider> | -m | AI provider (ollama, openai, anthropic, groq) | ✅ |
--api-key <key> | API key (not needed for Ollama) | ⚠️ | |
--model-name <name> | Specific model name | ❌ | |
--ollama-url <url> | Ollama server URL (default: http://localhost:11434) | ❌ |
inlinedocGenerates comprehensive inline documentation with JavaDoc comments for classes, methods, and important code blocks.
test-classGenerates a complete test class with:
llama3.2codellama, llama2, mistral, etc.gpt-4, gpt-4-turbogpt-3.5-turboclaude-sonnet-4.5-20250929claude-opus-4.1, claude-sonnet-4mixtral-8x7b-32768llama2-70b-4096, gemma-7b-itThe tool automatically opens a beautiful web interface with:
public class AccountController {
public static List<Account> getAccounts() {
return [SELECT Id, Name FROM Account LIMIT 10];
}
}
apex-utils inlinedoc -a AccountController.cls -m ollama
Review in browser - The tool opens an HTML viewer automatically
Download documented version - Click "Download Generated"
Generate tests:
apex-utils test-class -a AccountController.cls -m ollama
AccountControllerTest.cls.env files for sensitive data (not included in this basic version)MIT License - feel free to use this tool in your projects!
Happy Coding! 🎉 If you find this tool helpful, let the author knows about it!
FAQs
AI-powered Apex code utilities - generate inline documentation and test classes
We found that apex-utils-cli demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.