Package Exports
- jsforce-metadata-tools
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (jsforce-metadata-tools) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
jsforce-metadata-tools 
Tools for deploying/retrieving package files using Salesforce Metadata API via JSforce.
Provides command line interface (CLI) to easily deploy/retrieve packages.
Install
$ npm install jsforce-metadata-tools -gUsage
Deploy
Deploy package from local directory
$ jsforce-deploy -u username@example.org -p ${SF_PASSWORD} -D ./path/to/packageDirDeploy package from ZIP archive file
$ jsforce-deploy -u username@example.org -p ${SF_PASSWORD} -Z ./path/to/package.zipRetrieve
Retrieve package files and write them under the directory
(Assuming that ./path/to/packageDir directory has a package.xml file inside)
$ jsforce-retrieve -u username@example.org -p ${SF_PASSWORD} -D ./path/to/packageDirRetrieve package files by specifying metadata types/members to retrieve
$ jsforce-retrieve -u username@example.org -p ${SF_PASSWORD} --memberTypes "ApexClass:Class1,Class2;ApexPage:*" -D ./path/to/distDirRetrieve package files by specifying package names to retrieve
$ jsforce-retrieve -u username@example.org -p ${SF_PASSWORD} --packageNames "Package1,Package2" -D "./path/to/distDir1,./path/to/distDir2"Retrieve package files by specifying package.xml file
$ jsforce-retrieve -u username@example.org -p ${SF_PASSWORD} -P ./path/to/package.xml -D ./path/to/distDirRetrieve package and output as a ZIP archive file
$ jsforce-retrieve -u username@example.org -p ${SF_PASSWORD} --packageName Package1 -Z ./path/to/package.zipOAuth-based Authorization
Once the authorization is done in JSforce REPL, the same connection is also valid here (no password required)
$ jsforce
> .authorize
...
(OAuth authorization flow)
...
Received authorization code. Please close the opened browser window.
Authorized. Fetching user info...
Logged in as : username@example.org
> .exit
$ jsforce-deploy -c username@example.org -D ./path/to/packageDir