Upload storefront cartridges to Salesforce B2C Commerce WebDAV server
* Maintainer: @intel352
* Commerce Cloud Community Slack
1. Create a fork, if you don't already have one
2. Ensure your fork is caught up (message from Bitbucket shows up on your fork main page, if you are not current on commits)
3. Create a new branch in your fork to hold your changes
4. Submit a pull request
``shell`
:; npm install -g dwupload
Instead of installing this as a global npm package, you can install it locally and access it as ./node_modules/.bin/dwupload.
`shelluploading a cartridge
:; dwupload --hostname example.demandware.net --username admin --password password --cartridge app_storefront_core --code-version version1
In case you're running the command within an other directory than the cartridges directory, don't forget to use the
--root option (in the command or in the dw.json file)
See --help for more information.
$3
Exclude patterns can be declared via the -x or --exclude flag. This work for both file and folder exclude patterns. For example:`
*.swp
/node_modules/
`Please note that the
** after the folder name is important. Without it, child directories of node_modules would still be included.Config file
Instead of passing command line options every single time, you can store your config options in a dw.json file in the current working directory instead. For example:`js
{
"hostname": "example.demandware.net",
"username": "user",
"password": "password",
"cartridge": ["cartridgeA", "cartridgeB"],
"root": "path/to/root",
"code-version": "version2",
"p12": "path/to/file.p12",
"passphrase": "passphrase"
}
``Command line options will always override the options declared in the config file.