SFDX javascript wrapper.
A TypeScript compatible JavaScript wrapper for Salesforce DX CLI.
Usage
const sfdx = require('sfdx-js').Client.createUsingPath('sfdx')
sfdx.auth.webLogin().then(function() {
console.log('done!');
})
Documentation
Read our doc here: https://coveo.github.io/sfdx-js/
dev scripts
npm t
: Run test suite.
npm start
: Runs npm run build
in watch mode.
npm run test:watch
: Run test suite in interactive watch mode.
npm run test:prod
: Run linting and generate coverage.
npm run build
: Generage bundles and typings, create docs.
npm run lint
: Lints code.
npm run commit
: Commit using conventional commit style (husky will tell you to use it if you haven't