Salesforce CLI Skill for Openclaw

A powerful integration that enables AI agents to query, manage, and automate Salesforce CRM data and metadata using the official Salesforce CLI.

arvorco
v1.0.0
Jan 27, 2026
0
3.9k
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install salesforce

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install salesforce using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is Salesforce CLI Skill?

The Salesforce skill for Openclaw Skills empowers developers and admins to interact with Salesforce orgs directly through an AI agent. By leveraging the Salesforce CLI (sf), this skill provides a robust bridge to run SOQL/SOSL queries, manage record lifecycles, and perform complex metadata deployments.

This integration simplifies CRM workflows by automating repetitive tasks like schema inspection and bulk data operations, all while maintaining strict security through authenticated org management. It is designed to bridge the gap between AI-driven development and the Salesforce ecosystem.

Salesforce CLI Skill Use Cases

  • Executing SOQL queries to extract specific CRM data for analysis or reporting.
  • Performing bulk data imports, exports, and upserts for large datasets using Bulk API 2.0.
  • Automating metadata deployments and retrievals during CI/CD or development cycles.
  • Inspecting object schemas to understand field relationships and picklist values.
  • Running Apex code or tests to validate business logic directly from the agent.

How Salesforce CLI Skill Works

  1. The agent utilizes the sf binary to communicate with Salesforce's APIs via the command line.
  2. Users authenticate their orgs via sf org login web or other supported auth methods like JWT or access tokens.
  3. The agent constructs and executes specific commands based on user prompts, such as querying records or retrieving metadata.
  4. Commands are consistently executed with the --json flag to ensure structured, parseable data is returned.
  5. The agent processes the resulting JSON output to provide human-readable summaries or trigger subsequent automation steps.

Salesforce CLI Skill Setup

Install the Salesforce CLI globally using npm to begin using this skill with Openclaw Skills:

npm install -g @salesforce/cli

After installation, authenticate your Salesforce org to establish a connection:

sf org login web --alias my-org

You can also set a default org to streamline your workflows:

sf config set target-org my-org

Salesforce CLI Skill Data Schema & Taxonomy

The skill interacts with Salesforce's standard and custom objects, returning structured JSON data for every operation. Key data components include:

Component Description
SOQL Results JSON arrays containing record fields requested in the query (e.g., Id, Name).
Object Metadata Detailed field attributes, relationships, and object properties via describe commands.
Bulk Jobs Job IDs and status tracking metadata for large-scale data operations.
Apex Logs Execution logs and test result summaries for debugging and validation.

Salesforce CLI Skill Advanced Features

  • Multi-org management using aliases and configuration variables for seamless switching between environments.
  • Support for the Tooling API to query and manage metadata objects like ApexClass and ApexTrigger.
  • Direct REST and GraphQL API requests for advanced capabilities not covered by standard CLI commands.
  • Polymorphic lookup support and complex relationship querying in SOQL.
  • Automated diagnostic checks using sf doctor to ensure the CLI environment is healthy.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*