@ind-rcg/modeler-sfdx-cli-plugin
v252.1021.0
Published
This plugin is an enhancement of the sfdx cli and provide you features to customize the Consumer Goods Cloud Mobility application. This version will be the replacement for the Consumer Goods Mobile Modeler which was hosted on a Windows Server machine.
Downloads
518
Keywords
Readme
modeler-sfdx-cli-plugin
This plugin is an enhancement of the salesforce cli and provide you features to customize the Consumer Goods Cloud Mobility application. This version will be the replacement for the Consumer Goods Mobile Modeler which was hosted on a Windows Server machine.
Getting Started
# Install the plugin on your local system
$ sf plugins install @ind-rcg/modeler-sfdx-cli-plugin
# --- OR ---
$ sfdx plugins install @ind-rcg/modeler-sfdx-cli-plugin
# Verify that installation was successful
$ sf plugins
# --- OR ---
$ sfdx plugins
# Output: @ind-rcg/modeler-sfdx-cli-plugin xxx.xxxx.x (x being the version number which was installed)
...
The plugin provides many commands you can use for your customization and simulation
In this section we will provide a quick overview about the existing commands
sf mdl:add
sf mdl:build
sf mdl:clean
sf mdl:cleanup
sf mdl:package
sf mdl:simulate
sf mdl:validate
sf mdl:ws:add
sf mdl:ws:build
sf mdl:ws:clean
sf mdl:ws:cleanup
sf mdl:ws:package
sf mdl:ws:server:start
sf mdl:ws:simulate
sf mdl:ws:validate
sf modeler:workspace:add
sf modeler:workspace:build
sf modeler:workspace:cleanup
sf modeler:workspace:create
sf modeler:workspace:package
sf modeler:workspace:refreshLocale
sf modeler:workspace:server:start
sf modeler:workspace:upgrade
sf modeler:workspace:utils:base64encode
sf modeler:workspace:utils:importContracts
sf modeler:workspace:utils:migrateContracts
sf modeler:workspace:validate
sf mdl:add
Adds a new resource to a Modeler workspace.
USAGE
$ sf mdl:add [--json] [-t <value>] [-m <value>] [-n <value>] [-p <value>]
FLAGS
-m, --module=<value> Name of the module to which the resource should be added.
-n, --name=<value> Name of the resource to add.
-p, --path=<value> path to the Modeler workspace
-t, --type=<value> Type of the resource to add.
GLOBAL FLAGS
--json Format output as json.
DESCRIPTION
Adds a new resource to a Modeler workspace.
ALIASES
$ sf mdl:add
$ sf mdl:ws:add
EXAMPLES
$ sf mdl:add
$ sf mdl:add --type businessobject --module Visit --name VisitKpi
$ sf mdl:add --path ./workspacePath --type businessobject --module Visit --name VisitKpi
sf mdl:build
Build a Modeler workspace.
USAGE
$ sf mdl:build [--json] [-p <value>]
FLAGS
-p, --path=<value> path to the Modeler workspace
GLOBAL FLAGS
--json Format output as json.
DESCRIPTION
Build a Modeler workspace.
ALIASES
$ sf mdl:ws:build
$ sf mdl:build
EXAMPLES
$ sf mdl:build
$ sf mdl:build --path ./testWorkspace
sf mdl:clean
Clean up an existing Modeler workspace.
USAGE
$ sf mdl:clean [--json] [-p <value>]
FLAGS
-p, --path=<value> path to the Modeler workspace
GLOBAL FLAGS
--json Format output as json.
DESCRIPTION
Clean up an existing Modeler workspace.
ALIASES
$ sf mdl:ws:cleanup
$ sf mdl:ws:clean
$ sf mdl:cleanup
$ sf mdl:clean
EXAMPLES
$ sf mdl:clean
$ sf mdl:clean --path ./workspacePath
sf mdl:cleanup
Clean up an existing Modeler workspace.
USAGE
$ sf mdl:cleanup [--json] [-p <value>]
FLAGS
-p, --path=<value> path to the Modeler workspace
GLOBAL FLAGS
--json Format output as json.
DESCRIPTION
Clean up an existing Modeler workspace.
ALIASES
$ sf mdl:ws:cleanup
$ sf mdl:ws:clean
$ sf mdl:cleanup
$ sf mdl:clean
EXAMPLES
$ sf mdl:cleanup
$ sf mdl:cleanup --path ./workspacePath
sf mdl:package
Create a deployment package of a Modeler workspace.
USAGE
$ sf mdl:package [--json] [-p <value>]
FLAGS
-p, --path=<value> path to the Modeler workspace
GLOBAL FLAGS
--json Format output as json.
DESCRIPTION
Create a deployment package of a Modeler workspace.
ALIASES
$ sf mdl:ws:package
$ sf mdl:package
EXAMPLES
$ sf mdl:package
$ sf mdl:package --path ./workspacePath
sf mdl:simulate
Start the server
USAGE
$ sf mdl:simulate [--json] [-p <value>]
FLAGS
-p, --path=<value> path to the Modeler workspace
GLOBAL FLAGS
--json Format output as json.
DESCRIPTION
Start the server
ALIASES
$ sf mdl:ws:server:start
$ sf mdl:ws:simulate
$ sf mdl:simulate
EXAMPLES
$ sf mdl:simulate
$ sf mdl:simulate --path ./testWorkspace
sf mdl:validate
Validate the contracts in a modeler workspace
USAGE
$ sf mdl:validate [--json] [-p <value>]
FLAGS
-p, --path=<value> path to the Modeler workspace
GLOBAL FLAGS
--json Format output as json.
DESCRIPTION
Validate the contracts in a modeler workspace
ALIASES
$ sf mdl:ws:validate
$ sf mdl:validate
EXAMPLES
$ sf mdl:validate
$ sf mdl:validate --path ./testWorkspace
sf mdl:ws:add
Adds a new resource to a Modeler workspace.
USAGE
$ sf mdl:ws:add [--json] [-t <value>] [-m <value>] [-n <value>] [-p <value>]
FLAGS
-m, --module=<value> Name of the module to which the resource should be added.
-n, --name=<value> Name of the resource to add.
-p, --path=<value> path to the Modeler workspace
-t, --type=<value> Type of the resource to add.
GLOBAL FLAGS
--json Format output as json.
DESCRIPTION
Adds a new resource to a Modeler workspace.
ALIASES
$ sf mdl:add
$ sf mdl:ws:add
EXAMPLES
$ sf mdl:ws:add
$ sf mdl:ws:add --type businessobject --module Visit --name VisitKpi
$ sf mdl:ws:add --path ./workspacePath --type businessobject --module Visit --name VisitKpi
sf mdl:ws:build
Build a Modeler workspace.
USAGE
$ sf mdl:ws:build [--json] [-p <value>]
FLAGS
-p, --path=<value> path to the Modeler workspace
GLOBAL FLAGS
--json Format output as json.
DESCRIPTION
Build a Modeler workspace.
ALIASES
$ sf mdl:ws:build
$ sf mdl:build
EXAMPLES
$ sf mdl:ws:build
$ sf mdl:ws:build --path ./testWorkspace
sf mdl:ws:clean
Clean up an existing Modeler workspace.
USAGE
$ sf mdl:ws:clean [--json] [-p <value>]
FLAGS
-p, --path=<value> path to the Modeler workspace
GLOBAL FLAGS
--json Format output as json.
DESCRIPTION
Clean up an existing Modeler workspace.
ALIASES
$ sf mdl:ws:cleanup
$ sf mdl:ws:clean
$ sf mdl:cleanup
$ sf mdl:clean
EXAMPLES
$ sf mdl:ws:clean
$ sf mdl:ws:clean --path ./workspacePath
sf mdl:ws:cleanup
Clean up an existing Modeler workspace.
USAGE
$ sf mdl:ws:cleanup [--json] [-p <value>]
FLAGS
-p, --path=<value> path to the Modeler workspace
GLOBAL FLAGS
--json Format output as json.
DESCRIPTION
Clean up an existing Modeler workspace.
ALIASES
$ sf mdl:ws:cleanup
$ sf mdl:ws:clean
$ sf mdl:cleanup
$ sf mdl:clean
EXAMPLES
$ sf mdl:ws:cleanup
$ sf mdl:ws:cleanup --path ./workspacePath
sf mdl:ws:package
Create a deployment package of a Modeler workspace.
USAGE
$ sf mdl:ws:package [--json] [-p <value>]
FLAGS
-p, --path=<value> path to the Modeler workspace
GLOBAL FLAGS
--json Format output as json.
DESCRIPTION
Create a deployment package of a Modeler workspace.
ALIASES
$ sf mdl:ws:package
$ sf mdl:package
EXAMPLES
$ sf mdl:ws:package
$ sf mdl:ws:package --path ./workspacePath
sf mdl:ws:server:start
Start the server
USAGE
$ sf mdl:ws:server:start [--json] [-p <value>]
FLAGS
-p, --path=<value> path to the Modeler workspace
GLOBAL FLAGS
--json Format output as json.
DESCRIPTION
Start the server
ALIASES
$ sf mdl:ws:server:start
$ sf mdl:ws:simulate
$ sf mdl:simulate
EXAMPLES
$ sf mdl:ws:server:start
$ sf mdl:ws:server:start --path ./testWorkspace
sf mdl:ws:simulate
Start the server
USAGE
$ sf mdl:ws:simulate [--json] [-p <value>]
FLAGS
-p, --path=<value> path to the Modeler workspace
GLOBAL FLAGS
--json Format output as json.
DESCRIPTION
Start the server
ALIASES
$ sf mdl:ws:server:start
$ sf mdl:ws:simulate
$ sf mdl:simulate
EXAMPLES
$ sf mdl:ws:simulate
$ sf mdl:ws:simulate --path ./testWorkspace
sf mdl:ws:validate
Validate the contracts in a modeler workspace
USAGE
$ sf mdl:ws:validate [--json] [-p <value>]
FLAGS
-p, --path=<value> path to the Modeler workspace
GLOBAL FLAGS
--json Format output as json.
DESCRIPTION
Validate the contracts in a modeler workspace
ALIASES
$ sf mdl:ws:validate
$ sf mdl:validate
EXAMPLES
$ sf mdl:ws:validate
$ sf mdl:ws:validate --path ./testWorkspace
sf modeler:workspace:add
Adds a new resource to a Modeler workspace.
USAGE
$ sf modeler:workspace:add [--json] [-t <value>] [-m <value>] [-n <value>] [-p <value>]
FLAGS
-m, --module=<value> Name of the module to which the resource should be added.
-n, --name=<value> Name of the resource to add.
-p, --path=<value> path to the Modeler workspace
-t, --type=<value> Type of the resource to add.
GLOBAL FLAGS
--json Format output as json.
DESCRIPTION
Adds a new resource to a Modeler workspace.
ALIASES
$ sf mdl:add
$ sf mdl:ws:add
EXAMPLES
$ sf modeler:workspace:add
$ sf modeler:workspace:add --type businessobject --module Visit --name VisitKpi
$ sf modeler:workspace:add --path ./workspacePath --type businessobject --module Visit --name VisitKpi
sf modeler:workspace:build
Build a Modeler workspace.
USAGE
$ sf modeler:workspace:build [--json] [-p <value>]
FLAGS
-p, --path=<value> path to the Modeler workspace
GLOBAL FLAGS
--json Format output as json.
DESCRIPTION
Build a Modeler workspace.
ALIASES
$ sf mdl:ws:build
$ sf mdl:build
EXAMPLES
$ sf modeler:workspace:build
$ sf modeler:workspace:build --path ./testWorkspace
sf modeler:workspace:cleanup
Clean up an existing Modeler workspace.
USAGE
$ sf modeler:workspace:cleanup [--json] [-p <value>]
FLAGS
-p, --path=<value> path to the Modeler workspace
GLOBAL FLAGS
--json Format output as json.
DESCRIPTION
Clean up an existing Modeler workspace.
ALIASES
$ sf mdl:ws:cleanup
$ sf mdl:ws:clean
$ sf mdl:cleanup
$ sf mdl:clean
EXAMPLES
$ sf modeler:workspace:cleanup
$ sf modeler:workspace:cleanup --path ./workspacePath
sf modeler:workspace:create
Create a Modeler workspace.
USAGE
$ sf modeler:workspace:create [--json] [-p <value>]
FLAGS
-p, --path=<value> path to the Modeler workspace
GLOBAL FLAGS
--json Format output as json.
DESCRIPTION
Create a Modeler workspace.
EXAMPLES
$ sf modeler:workspace:create
$ sf modeler:workspace:create --path ./workspacePath
sf modeler:workspace:package
Create a deployment package of a Modeler workspace.
USAGE
$ sf modeler:workspace:package [--json] [-p <value>]
FLAGS
-p, --path=<value> path to the Modeler workspace
GLOBAL FLAGS
--json Format output as json.
DESCRIPTION
Create a deployment package of a Modeler workspace.
ALIASES
$ sf mdl:ws:package
$ sf mdl:package
EXAMPLES
$ sf modeler:workspace:package
$ sf modeler:workspace:package --path ./workspacePath
sf modeler:workspace:refreshLocale
Refresh locale translation in workspace.
USAGE
$ sf modeler:workspace:refreshLocale [--json] [-c <value>] [-p <value>]
FLAGS
-c, --contract=<value> Name of the locale contracts to be refreshed. To specify multiple values, use a comma (,)
separator.
-p, --path=<value> path to the Modeler workspace
GLOBAL FLAGS
--json Format output as json.
DESCRIPTION
Refresh locale translation in workspace.
sf modeler:workspace:server:start
Start the server
USAGE
$ sf modeler:workspace:server:start [--json] [-p <value>]
FLAGS
-p, --path=<value> path to the Modeler workspace
GLOBAL FLAGS
--json Format output as json.
DESCRIPTION
Start the server
ALIASES
$ sf mdl:ws:server:start
$ sf mdl:ws:simulate
$ sf mdl:simulate
EXAMPLES
$ sf modeler:workspace:server:start
$ sf modeler:workspace:server:start --path ./testWorkspace
sf modeler:workspace:upgrade
Upgrades a Modeler workspace.
USAGE
$ sf modeler:workspace:upgrade [--json] [-p <value>]
FLAGS
-p, --path=<value> path to the Modeler workspace
GLOBAL FLAGS
--json Format output as json.
DESCRIPTION
Upgrades a Modeler workspace.
EXAMPLES
$ sf modeler:workspace:upgrade
$ sf modeler:workspace:upgrade --path ./workspacePath
sf modeler:workspace:utils:base64encode
Returns a Base64-encoded string from a given input file.
USAGE
$ sf modeler:workspace:utils:base64encode -i <value> [--json] [-p <value>]
FLAGS
-i, --input=<value> (required) path to the input file for Base64 encoding
-p, --path=<value> path to the Modeler workspace
GLOBAL FLAGS
--json Format output as json.
DESCRIPTION
Returns a Base64-encoded string from a given input file.
EXAMPLES
$ sf modeler:workspace:utils:base64encode --input ./image.svg
$ sf modeler:workspace:utils:base64encode --input ./c3js.zip
sf modeler:workspace:utils:importContracts
Imports design contracts to the specified workspace.
USAGE
$ sf modeler:workspace:utils:importContracts -i <value> [--json] [-p <value>] [-c]
FLAGS
-c, --core Use the flag to import only the core contracts (.core.xml) from a custom Modeler Content Package
(MCP) zip. Custom
contracts are skipped during import. If this flag is not set, only the custom contracts (*.xml)
are imported from the
custom MCP.zip.
-i, --input=<value> (required) Path to the Modeler Content Package (MCP) zip.
-p, --path=<value> path to the Modeler workspace
GLOBAL FLAGS
--json Format output as json.
DESCRIPTION
Imports design contracts to the specified workspace.
sf modeler:workspace:utils:migrateContracts
Migrate existing contracts in your Modeler workspace to support the latest version of Modeler.
USAGE
$ sf modeler:workspace:utils:migrateContracts [--json] [-p <value>]
FLAGS
-p, --path=<value> path to the Modeler workspace
GLOBAL FLAGS
--json Format output as json.
DESCRIPTION
Migrate existing contracts in your Modeler workspace to support the latest version of Modeler.
sf modeler:workspace:validate
Validate the contracts in a modeler workspace
USAGE
$ sf modeler:workspace:validate [--json] [-p <value>]
FLAGS
-p, --path=<value> path to the Modeler workspace
GLOBAL FLAGS
--json Format output as json.
DESCRIPTION
Validate the contracts in a modeler workspace
ALIASES
$ sf mdl:ws:validate
$ sf mdl:validate
EXAMPLES
$ sf modeler:workspace:validate
$ sf modeler:workspace:validate --path ./testWorkspace