Salesforce Package Manager
Download binary file from release page and copy it to executable path.
If you want to use latest version, execute following command.
$ go get github.com/tzmfreedom/spm
$ spm [global options] command [command options] [arguments...]
COMMANDS:
install, i Install salesforce packages on public remote repository(i.g. github)
help, h Shows a list of commands or help for one command
GLOBAL OPTIONS:
--help, -h show help
--version, -v print the version
$ spm install [command options] [arguments...]
OPTIONS:
--username value, -u value [$SF_USERNAME]
--password value, -p value [$SF_PASSWORD]
--endpoint value, -e value (default: "login.salesforce.com") [$SF_ENDPOINT]
--apiversion value (default: "38.0") [$SF_APIVERSION]
--pollSeconds value (default: 5) [$SF_POLLSECONDS]
--timeoutSeconds value (default: 0) [$SF_TIMEOUTSECONDS]
--packages value, -P value
- Install package from remote repository
$ spm install github.com/{USER}/{REPOSITORY} -u {USERNAME} -p {PASSWORD}
- Install packages from package.yml
$ spm install -u {USERNAME} -p {PASSWORD} -P package.yml
package.yml format
packages:
- github.com/tzmfreedom/apex-util1
- github.com/tzmfreedom/apex-util2
- github.com/tzmfreedom/apex-util3
Sandbox
$ spm install github.com/{USER}/{REPOSITORY} -u {USERNAME} -p {PASSWORD} -e test.salesforce.com
Just send pull request if needed or fill an issue!
The MIT License See LICENSE file.