A CLI tool to make git changes across many repos.
Learn more about microplane in this introductory blogpost.
"the lemon is Git{Hub,Lab}"
Here are several ways to install microplane:
go install github.com/Clever/microplane@latest
. In this case the binary will be installed to $GOPATH/bin/microplane
. Alternately, you can follow the steps under "Development", below.brew install microplane
. The latest homebrew formula is hereThe GITHUB_API_TOKEN
environment variable must be set for Github. This should be a GitHub Token with repo
scope.
Optional: If you use self-hosted Github, you can specify its URL by passing --provider-url=<your URL>
when running mp init
.
This URL should look like: https://[hostname]
. Don't include path parameters like /api/v3
or /api/uploads
.
Self-hosted Github setup with different URLs for the main API and uploads API are not yet supported. If this is a blocker for you, please file an issue or make a PR.
The GITLAB_API_TOKEN
environment variable must be set for Gitlab. This should be a GitLab access token
To use Gitlab, you must specifically pass --provider=gitlab
when running mp init
.
Optional: If you use a self-hosted Gitlab, you can specify its URL by passing --provider-url=<your URL>
when running mp init
.
Microplane has an opinionated workflow for how you should manage git changes across many repos. To make a change, use the following series of commands.
For an in-depth example, check out the introductory blogpost.
See Development.md
.