List, upload, download, and manage files on B2C Commerce instances via WebDAV with the b2c cli. Use when reading error logs (customerror, debug), downloading job logs, uploading to IMPEX directories, or managing files in cartridges/catalogs/static folders.
View on GitHubSalesforceCommerceCloud/b2c-developer-tooling
b2c-cli
February 1, 2026
Select agents to install to:
npx add-skill https://github.com/SalesforceCommerceCloud/b2c-developer-tooling/blob/main/skills/b2c-cli/skills/b2c-webdav/SKILL.md -a claude-code --skill b2c-webdavInstallation paths:
.claude/skills/b2c-webdav/# B2C WebDAV Skill Use the `b2c` CLI plugin to perform WebDAV file operations on Salesforce B2C Commerce instances. This includes listing files, uploading, downloading, and managing files across different WebDAV roots. > **Tip:** If `b2c` is not installed globally, use `npx @salesforce/b2c-cli` instead (e.g., `npx @salesforce/b2c-cli webdav ls`). ## WebDAV Roots The `--root` flag specifies the WebDAV directory: - `impex` (default) - Import/Export directory - `temp` - Temporary files - `cartridges` - Code cartridges - `realmdata` - Realm data - `catalogs` - Product catalogs - `libraries` - Content libraries - `static` - Static resources - `logs` - Application logs - `securitylogs` - Security logs ## Examples ### List Files ```bash # list files in the default IMPEX root b2c webdav ls # list files in a specific path b2c webdav ls src/instance # list files in the cartridges root b2c webdav ls --root=cartridges # list files with JSON output b2c webdav ls --root=impex --json ``` ### Reading Log Files Use the `logs` root to access instance log files: ```bash # list all log files b2c webdav ls --root=logs # list log files with JSON output for parsing b2c webdav ls --root=logs --json # download a specific log file (e.g., customerror log) b2c webdav get customerror-blade0-1-appserver-20240115.log --root=logs # download a log file to a specific local path b2c webdav get error-blade0-1-appserver-20240115.log --root=logs -o ./downloads/error.log # output log file content to stdout (for piping to grep, etc.) b2c webdav get customerror-blade0-1-appserver-20240115.log --root=logs -o - # pipe log content to grep to search for errors b2c webdav get customerror-blade0-1-appserver-20240115.log --root=logs -o - | grep "OrderNo" # download security logs b2c webdav ls --root=securitylogs b2c webdav get security-blade0-1-20240115.log --root=securitylogs # list archived logs (compressed after 3 days) b2c webdav ls log_archive --root=logs ``` ## Log File Reference ### L