b2c-logs

Installation
SKILL.md

B2C Logs Skill

Use the b2c CLI to retrieve and monitor log files on Salesforce B2C Commerce instances. The logs get command is designed for agent-friendly, non-interactive log retrieval with structured JSON output.

Tip: If b2c is not installed globally, use npx @salesforce/b2c-cli instead (e.g., npx @salesforce/b2c-cli logs get).

Agent-Friendly Log Retrieval

The logs get command is optimized for coding agents:

  • Exits immediately after retrieving logs (non-interactive)
  • Supports --json for structured output
  • Filters by time, level, and text search
  • Auto-normalizes file paths for IDE click-to-open

Examples

Get Recent Logs

Related skills

More from salesforcecommercecloud/b2c-developer-tooling

Installs
79
GitHub Stars
42
First Seen
Feb 17, 2026