- Clone this plugin repository
git clone https://github.com/s-docs/plugin-sf-sdocs
- Build the plugin using the below command
npm install
- In the directory where you cloned the repo execute the following:
sf plugins link .
If the above step is successful, then the plugin was linked in your local environment successfully.
To ensure the plugin in linked correctly, run the following command:
sf sdocs template export --help
This should print something like below:
Export S-Docs template from an salesforce org
USAGE
$ sf sdocs template export -o <value> -d <value> [--json] [-n <value>] [-a]
FLAGS
-a, --exportall A flag that tells the plugin if you want to export all active templates. Default is `false`
-d, --outputdir=<value> (required) The directory where the templates will be exported
-f, --filters=<value> Specify any fitlers when extracting templates. This is the `WHERE` clause for the extraction
-n, --name=<value> The name of the template to be exported. Should be the value of the `Name` field on the `SDOC___SDTemplate__c` object
-o, --org=<value> (required) The org alias that you want to export the template from
GLOBAL FLAGS
--json Format output as json.
DESCRIPTION
Export S-Docs template from an salesforce org
Export S-Docs template from an salesforce org
This exports a given template or all templates to the file system that can be then imported into another org or environment. See the examples show when you do sf sdocs template export --help
for more specifics
Export a template named NDA 2023
from a sandbox to the templates
output directory
$ sf sdocs template export -o my_dev_sandbox -d ./templates -n "NDA 2023"
Export all templates from my_dev_sandbox
$ sf sdocs template export -o my_dev_sandbox -d ./templates --exportall
This exports a given template from the file system into another org or environment. See the examples show when you do sf sdocs template import --help
for more specifics
Import a template named NDA 2023
to a sandbox from the templates
output directory
$ sf sdocs template import -o my_dev_sandbox -d ./templates -n "NDA 2023"
Import all templates from my_dev_sandbox
$ sf sdocs template import -o my_dev_sandbox -d ./templates --importall