Salesforce B2C Commerce WebDAV file operations (listing, upload, download, logs) Skill
/plugin marketplace add SalesforceCommerceCloud/b2c-developer-tooling/plugin install b2c-cli@b2c-developer-toolingThis skill inherits all available tools. When active, it can use any tool Claude has access to.
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.
The --root flag specifies the WebDAV directory:
impex (default) - Import/Export directorytemp - Temporary filescartridges - Code cartridgesrealmdata - Realm datacatalogs - Product catalogslibraries - Content librariesstatic - Static resourceslogs - Application logssecuritylogs - Security logs# 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
Use the logs root to access instance log files:
# 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.log --root=logs
# download a log file to a specific local path
b2c webdav get error-20240115.log --root=logs -o ./downloads/error.log
# output log file content to stdout (for piping to grep, etc.)
b2c webdav get customerror.log --root=logs -o -
# pipe log content to grep to search for errors
b2c webdav get customerror.log --root=logs -o - | grep "ERROR"
# download security logs
b2c webdav ls --root=securitylogs
b2c webdav get security-20240115.log --root=securitylogs
# download a file from IMPEX (default root)
b2c webdav get src/instance/export.zip
# download to a specific local path
b2c webdav get src/instance/export.zip -o ./downloads/export.zip
# download from a specific root
b2c webdav get customerror.log --root=logs
# output file content to stdout
b2c webdav get src/instance/data.xml -o -
# upload a file to IMPEX
b2c webdav put ./local-file.zip src/instance/
# upload to a specific root
b2c webdav put ./my-cartridge.zip --root=cartridges
# create a directory in IMPEX
b2c webdav mkdir src/instance/my-folder
# create a directory in a specific root
b2c webdav mkdir my-folder --root=temp
# delete a file
b2c webdav rm src/instance/old-export.zip
# delete from a specific root
b2c webdav rm old-file.txt --root=temp
# create a zip archive of a remote directory
b2c webdav zip src/instance/my-folder
# extract a remote zip archive
b2c webdav unzip src/instance/archive.zip
See b2c webdav --help for a full list of available commands and options in the webdav topic.
This skill should be used when the user asks to "create an agent", "add an agent", "write a subagent", "agent frontmatter", "when to use description", "agent examples", "agent tools", "agent colors", "autonomous agent", or needs guidance on agent structure, system prompts, triggering conditions, or agent development best practices for Claude Code plugins.
This skill should be used when the user asks to "create a slash command", "add a command", "write a custom command", "define command arguments", "use command frontmatter", "organize commands", "create command with file references", "interactive command", "use AskUserQuestion in command", or needs guidance on slash command structure, YAML frontmatter fields, dynamic arguments, bash execution in commands, user interaction patterns, or command development best practices for Claude Code.
This skill should be used when the user asks to "create a hook", "add a PreToolUse/PostToolUse/Stop hook", "validate tool use", "implement prompt-based hooks", "use ${CLAUDE_PLUGIN_ROOT}", "set up event-driven automation", "block dangerous commands", or mentions hook events (PreToolUse, PostToolUse, Stop, SubagentStop, SessionStart, SessionEnd, UserPromptSubmit, PreCompact, Notification). Provides comprehensive guidance for creating and implementing Claude Code plugin hooks with focus on advanced prompt-based hooks API.