Skip to content
This repository has been archived by the owner on Dec 30, 2023. It is now read-only.

Latest commit

 

History

History
75 lines (56 loc) · 3.09 KB

README.md

File metadata and controls

75 lines (56 loc) · 3.09 KB

⚠️ Archived Repository: This project is no longer maintained and is kept here for archival purposes only. Please note that the code may be outdated and no longer functional.

Salesforce Deploy CLI

cartridges deploy made easy

build status npm version dependencies devDependencies vulnerabilities javascript style guide conventional commits

CLI to deploy cartridges on a Salesforce Commerce Cloud instance.

Quick Overview

Installation

npm install -g salesforce-deploy-cli

Usage

Usage: salesforce-deploy [options]

Options:
  --hostname, -h      Hostname of the SFCC instance                   [required]
  --username, -u      Business Manager username for instance          [required]
  --password, -p      Business Manager password for instance          [required]
  --cartridges, -c    Paths to cartridges folder to deploy    [array] [required]
  --code-version, -v  Name of the code version to deploy              [required]
  --force, -f         Remove code version before deploy         [default: false]
  --help              Show help                                        [boolean]
  --version           Show version number                              [boolean]

Example - Deploy cartridges from a single folder

$ salesforce-deploy \
  --hostname 'dev01-realm-customer.demandware.net' \
  --username 'bm_user' \
  --password 'bm_pass' \
  --cartridges './cartridges/project_1' \
  --code-version 'v1.0.0-rc.0' 

Example - Deploy cartridges from multi folder

$ salesforce-deploy \
  --hostname 'dev01-realm-customer.demandware.net' \
  --username 'bm_user' \
  --password 'bm_pass' \
  --cartridges './cartridges/project_1' \
  --cartridges './cartridges/project_2:**/{cart,checkout}/**' \
  --cartridges './cartridges/project_3:**/{adyen}/**' \
  --code-version 'v1.0.0-rc.0'
  --force

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

MIT. Copyright (C) 2019 Francesco Pasqua.