New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

mc-sf-query

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mc-sf-query

A Node.js CLI tool to query Salesforce orgs, describe objects, and list metadata, with HTML output using Tailwind CSS.

latest
npmnpm
Version
1.0.4
Version published
Maintainers
1
Created
Source

sf-query

A Node.js CLI tool to query Salesforce orgs, describe objects, and list metadata, with HTML output using Tailwind CSS and DataTables.

Supports CSV export, pagination

Features

  • Login with either:
    • Access Token & Instance URL (optional API version, default: v64.0)
    • Username via Salesforce CLI (sf force org display -o username --json)
  • Execute SOQL queries and render output in HTML
  • Describe Salesforce objects and view fields in HTML
  • List all objects in your org (listObjects)
  • Pagination, column sorting, search, CSV export in HTML table
  • Dark theme with sticky header and footer

Installation

npm install -g mc-sf-query

Screenshots

  • Describe

Usage

  • Query
mc-sf-query query -o myuser@myorg.com -q "SELECT Id, Name FROM Product2"

or using direct authentication:

mc-sf-query query --accessToken <token> --instanceUrl https://myorg.my.salesforce.com -q "SELECT Id, Name FROM Product2"

Options

OptionDescription
-q, --query <soql>SOQL query to execute
-t, --toolingUse Tooling API
--accessToken <token>Salesforce access token
--instanceUrl <url>Salesforce instance URL
--apiVersion <version>Salesforce API version (default: 64.0)
-o, --username <username>Use Salesforce CLI org credentials

Describe

mc-sf-query describe -s Product2 -o myuser@myorg.com

Displays all fields of the object

  • List Objects
mc-sf-query listObjects -o myuser@myorg.com


Lists all Salesforce objects in the org, with search and CSV export.

Keywords

salesforce

FAQs

Package last updated on 10 Oct 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts