{"id":18350472,"url":"https://github.com/dnakov/spm","last_synced_at":"2025-07-03T16:37:17.643Z","repository":{"id":75717906,"uuid":"59515613","full_name":"dnakov/spm","owner":"dnakov","description":null,"archived":false,"fork":false,"pushed_at":"2017-09-01T15:39:47.000Z","size":4431,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-09T23:53:00.866Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dnakov.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-05-23T20:20:16.000Z","updated_at":"2018-03-05T21:18:07.000Z","dependencies_parsed_at":"2023-03-11T20:18:43.946Z","dependency_job_id":null,"html_url":"https://github.com/dnakov/spm","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dnakov%2Fspm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dnakov%2Fspm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dnakov%2Fspm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dnakov%2Fspm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dnakov","download_url":"https://codeload.github.com/dnakov/spm/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248131453,"owners_count":21052819,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-05T21:26:46.331Z","updated_at":"2025-04-09T23:53:35.378Z","avatar_url":"https://github.com/dnakov.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SPM\n\n## What it does\nA command-line tool to deploy local metadata from a directory to a salesforce org using the salesforce metadata API.\n\n## Bamboo Setup\n1. Configure the following variables:\n\t* **username** (SF username)\n\t* **password** (SF password -- append token if necessary)\n\t* **endpointUrl** (https://test.salesforce.com for sandbox or https://login.salesforce.com for production/dev)\n\t* **deployOptions** (additional arguments to be passed to spm)\n\t\t* Example for **test** deploy: `--checkOnly --runAllTests --rollbackOnError --junit tests.xml`\n\t\t* Example for **production** deploy: `--rollbackOnError`\n\t\t* All options\n\t\t\t* `--apiVersion` -- salesforce option\n\t\t\t* `--checkOnly` -- salesforce option\n    \t\t* `--ignoreWarnings` -- salesforce option\n    \t\t* `--performRetrieve` -- salesforce option\n    \t\t* `--purgeOnDelete` -- salesforce option\n      \t\t* `--rollbackOnError` -- salesforce option\n    \t\t* `--runAllTests` -- salesforce option\n            * `--testLevel` -- salesforce option\n            * `--runTests` -- salesforce option\n    \t\t* `--singlePackage` -- salesforce option\n    \t\t* `--allowMissingFiles` -- salesforce option\n    \t\t* `--runPackagedTestsOnly` -- salesforce option\n    \t\t* `--filter [glob_filter]` -- only include files that match this filter\n    \t\t* `--root [root_dir]` -- specify root directory containing salesforce files (defaults to `src`\n    \t\t* `--fullLog` -- outputs the full deployment log from salesforce (JSON)\n    \t\t* `--checkInterval [ms]` -- how often to check for the deployment result (defaults to 2000)\n2. Create a **Source Code Checkout** task if it doesn't exist and set up the repository you'll be deploying\n3. Add an **npm** task with the following command: `install git+https://github.com/dnakov/spm`\n4. Add a **script** or **node.js** task to execute the `spm` command\n\t* Example for **script** task: `./node_modules/spm/bin/spm-cli.js deploy --username ${bamboo.username} --password ${bamboo.password} --endpointUrl ${bamboo.endpointUrl} ${bamboo.deployOptions}`\n\t* Example for **node.js** task:\n\t\t* Script: `node_modules/spm/bin/spm-cli.js`\n\t\t* Arguments: `deploy --username ${bamboo.username} --password ${bamboo.password} --endpointUrl ${bamboo.endpointUrl} ${bamboo.deployOptions}`\n5. If setting up tests, add a **JUnit Parser** task to parse the junit file specified in the spm command\n\t* Example: `**/tests.xml` (for when spm was run with --junit tests.xml)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdnakov%2Fspm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdnakov%2Fspm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdnakov%2Fspm/lists"}