@taurgis/sfccdx
Version:
SFCCDX is a command line interface (CLI) for Salesforce Commerce Cloud. It can be used to easily manage (meta)data (import/export) in relation to your project.
34 lines (26 loc) • 1.1 kB
JavaScript
let program = require('commander');
const PackageConfig = require('./package.json');
const cliInterface = require('./lib/cli-interface');
const projectVersionNo = PackageConfig.version;
/**
* @typedef {Object} commandObj
* @description Represents a roll-up of the CLI command object and its arguments
*
*/
// Initialize the version of the CLI program
program.version(projectVersionNo);
//------------------------------------------------
// Initialize CLI commands
//------------------------------------------------
// Attach the command used to retrieve the complete environment details
program = cliInterface.getEnvironment(program);
program = cliInterface.verify(program);
program = cliInterface.attributeGet(program);
program = cliInterface.attributeDelete(program);
program = cliInterface.attributePush(program);
program = cliInterface.attributeGroupGet(program);
program = cliInterface.attributeGroupDelete(program);
program = cliInterface.attributeGroupPush(program);
program = cliInterface.attributeGroupAssignmentDelete(program);
program.parse(process.argv);