GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - neowit/tooling-force.com: Work with force.com Tooling/Meta API from various command line tools and editor plugins like vim-force.com.

BranchesTags
Open more actions menu

Latest commit

 

History

1,022 Commits
1,022 Commits

Folders and files

NameName
Last commit message
Last commit date
project
project
 
 
src
src
 
 
README.md
README.md
 
 
assembly.sbt
assembly.sbt
 
 
build.sbt
build.sbt
 
 

Repository files navigation

A command line utility for working with salesforce.com Tooling & Metadata API

Primary goal of tooling-force.com is to provide the means of interacting with force.com Medatata API and Tooling API from various command line tools and editor plugins like vim-force.com.

DESCRIPTION

Current version of this tool is similar in functionality to Force.com Migration Tool with one important difference - it is designed with scripting languages (shell, .bat, etc) in mind. All operations can be done by constructing appropriate command line, no messing with XML is required. Results are returned in easy to parse formats.

FEATURES

Non project specific:

  • Retrieve - metadata retrieval
  • Deploy (all, specific files)
  • Run Tests (and report code coverage)
  • Describe Metadata - load full metadata description (result is provided in JSON format)
  • List Metadata - list members of specific metadata type (e.g. list all Apex Classes)
  • ExecuteAnonymous - run arbitrary piece of Apex Code
  • ListConflicts - display list of local files which have been updated in SFDC since last deployment
  • Execute SOQL query

Project specific

Also supported a "project like" mode - where relevant metadata about deployments and retrievals is cached in a set of local files and makes possible operations like:

  • Deploy modified files
  • List Modified files
  • Conflict checking before deployment (test if file(s) you are trying to deploy have been modified by someone else in SFDC since your last Refresh or Deployment.
  • list candidates for Apex and SOQL auto-completion (note: current version is "work in progress")
  • find definition (go-to-symbol) in apex classes

System requirements

Java JDK/JRE, Version 8 or greater

Installation

Download lastest .jar file from releases page. Assuming .jar file name is tooling-force.com-0.1.jar you can run it like so:

java -jar tooling-force.com-0.1.jar

This will display main help and list of supported commands/actions. In order to get help for specific command run it like so:

java -jar tooling-force.com-0.1.jar --help=<action-name>

Salesforce CLI setup

  1. Install Salesforce CLI v2.

  2. Authenticate in a browser and assign an org alias:

    sf org login web --alias my-org
    
  3. Set the alias in your configuration or command line:

    sf.orgAlias = my-org
    

The CLI handles token refresh; no connected app or credentials file is needed. If the executable is not named sf or is not on PATH, set the optional sf.cliPath property. On Windows, if lookup fails, set it to the full path to sf.exe; the .cmd npm shim cannot be launched directly. For headless or CI environments, use a non-interactive login option supported by sf org login --help and configure its alias the same way.

Winter 27 compatibility requires Salesforce CLI authentication. Username/password and OAuth2 file authentication have been removed.

Proxy

When connection requires proxy it can be passed as java -D params or as tooling-force.com.jar command line params, e.g.

java -jar tooling-force.com-0.1.jar --action=refresh ... --http.proxyHost=localhost --http.proxyPort=8888 --http.proxyUser=some --http.proxyPassword=pass

CREDITS

Author: Andrey Gavrikov

Legal stuff

Copyright (c) 2013-2018, Andrey Gavrikov. All rights reserved.

License: LGPL v3 http://www.gnu.org/licenses/

Third-Party Licenses:

  • Force.com Web Service Connector (WSC) - see LICENSE.md
  • Apache Commons-logging - Apache 2.0 License
  • Akka - Apache 2.0 License
  • ANTLR 4 - BSD license
  • spray-json - Apache 2.0 License
  • scala-logging - Apache License 2.0 and Eclipse Public License 1.0
  • Logback - logback source code and binaries are dual-licensed under the EPL v1.0 and the LGPL 2.1

About

Work with force.com Tooling/Meta API from various command line tools and editor plugins like vim-force.com.

Topics

salesforcesalesforce-apexsalesforce-developerssalesforce-metadatasfdcsfdc-deployment

Resources

Readme
Activity

Stars

64 stars

Watchers

12 watching

Forks

13 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.