Salesforce Package Manager
Go Shell
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
test
.gitignore Add install feature Nov 29, 2016
.travis.yml Add .travis.yml Dec 11, 2016
LICENSE
README.md
build.sh Add build script Dec 10, 2016
cli.go
force.go Apply gofmt Dec 10, 2016
logger.go Apply gofmt Dec 18, 2016
metadata.go
spm.go Modify to write test code Dec 10, 2016
spm_test.go Apply gofmt Dec 18, 2016

README.md

Build Status

SPM

Salesforce Package Manager

Install

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

Usage

$ 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

Install Package

$ 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

Contribute

Just send pull request if needed or fill an issue!

License

The MIT License See LICENSE file.