Skip to content
Back to skills

973 Sf Cli Data Commands 591fac72

ASecurity

Complete reference for Salesforce CLI v2 data commands.

  • 9 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added October 11, 2026
toolsbashapi

Works with

  • cli
  • api

Security analysis

A100/100

Scanned October 11, 2026

npx -y skills add tools-only/X-Skills --skill 973-sf-cli-data-commands_591fac72 --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of 973 Sf Cli Data Commands 591fac72?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for 973 Sf Cli Data Commands 591fac72
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/tools-only-973-sf-cli-data-commands-591fac72/badge)](https://www.skillsdirectory.com/skills/tools-only-973-sf-cli-data-commands-591fac72)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

SKILL.md
<!-- Parent: sf-data/SKILL.md -->
# sf CLI Data Commands Reference

Complete reference for Salesforce CLI v2 data commands.

## Query Commands

### SOQL Query
```bash
sf data query \
  --query "SELECT Id, Name FROM Account LIMIT 10" \
  --target-org myorg \
  --json
```

### SOSL Search
```bash
sf data search \
  --query "FIND {Acme}" \
  --target-org myorg
```

### Bulk Export
```bash
sf data export bulk \
  --query "SELECT Id, Name FROM Account" \
  --output-file accounts.csv \
  --target-org myorg \
  --wait 30
```

## Record Operations

### Create Record
```bash
sf data create record \
  --sobject Account \
  --values "Name='Acme' Industry='Technology'" \
  --target-org myorg
```

### Update Record
```bash
sf data update record \
  --sobject Account \
  --record-id 001XXXXXXXXXXXX \
  --values "Industry='Healthcare'" \
  --target-org myorg
```

### Delete Record
```bash
sf data delete record \
  --sobject Account \
  --record-id 001XXXXXXXXXXXX \
  --target-org myorg
```

### Get Record
```bash
sf data get record \
  --sobject Account \
  --record-id 001XXXXXXXXXXXX \
  --target-org myorg
```

## Bulk Operations

### Bulk Import
```bash
sf data import bulk \
  --file data.csv \
  --sobject Account \
  --target-org myorg \
  --wait 30
```

### Bulk Update
```bash
sf data update bulk \
  --file updates.csv \
  --sobject Account \
  --target-org myorg \
  --wait 30
```

### Bulk Upsert
```bash
sf data upsert bulk \
  --file data.csv \
  --sobject Account \
  --external-id External_Id__c \
  --target-org myorg \
  --wait 30
```

### Bulk Delete
```bash
sf data delete bulk \
  --file ids.csv \
  --sobject Account \
  --target-org myorg \
  --wait 30
```

## Tree Operations

### Export Tree
```bash
sf data export tree \
  --query "SELECT Id, Name, (SELECT Id, Name FROM Contacts) FROM Account" \
  --output-dir ./data \
  --target-org myorg
```

### Import Tree
```bash
sf data import tree \
  --files data.json \
  --target-org myorg
```

## Common Flags

| Flag | Description |
|------|-------------|
| `--target-org`, `-o` | Target org alias |
| `--json` | JSON output format |
| `--result-format` | human, csv, json |
| `--wait` | Minutes to wait for bulk jobs |
| `--use-tooling-api` | Query Tooling API |

## Apex Execution

```bash
sf apex run --file script.apex --target-org myorg
```

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.