https://github.com/leancloud/lean-cli
LeanEngine Command Line Tool
https://github.com/leancloud/lean-cli
cli leancloud
Last synced: 8 months ago
JSON representation
LeanEngine Command Line Tool
- Host: GitHub
- URL: https://github.com/leancloud/lean-cli
- Owner: leancloud
- License: apache-2.0
- Created: 2015-06-23T11:39:48.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2023-05-29T06:07:45.000Z (over 2 years ago)
- Last Synced: 2025-04-23T20:06:57.712Z (8 months ago)
- Topics: cli, leancloud
- Language: Go
- Homepage: https://docs.leancloud.cn/sdk/engine/cli/
- Size: 5.46 MB
- Stars: 84
- Watchers: 30
- Forks: 23
- Open Issues: 9
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# lean(1)
[](https://travis-ci.org/leancloud/lean-cli) [](https://godoc.org/github.com/leancloud/lean-cli)
Command-line tool to develop and manage [LeanCloud](https://leancloud.cn) and TapTap Developer Services apps.
## Install
- Homebrew: `brew install lean-cli`
- Download from [GitHub Release](https://github.com/leancloud/lean-cli/releases)
- Download from [releases.leanapp.cn](https://releases.leanapp.cn/#/leancloud/lean-cli/releases) (CDN Accelerated in China mainland)
lean-cli will send statistics information such as your os version and lean-cli version to Google Analytics.
This statistics information helps us to improve LeanEngine services.
To opt out, you can set the environment variable `NO_ANALYTICS` to `true`.
## Develop
Install the toolchains:
- [go](https://golang.org)
- [msitools](https://wiki.gnome.org/msitools)
- [dpkg](https://wiki.debian.org/Teams/Dpkg)
> You can install them via homebrew
Clone this repo then run `make all` to build releases.
Please run `go mod tidy` and `go mod vendor` to make vendored copy of dependencies after importing new dependencies.
Ensure all codes is formatted by [gofmt](https://golang.org/cmd/gofmt/). Commit message should write in [gitmoji](https://gitmoji.carloscuesta.me/).
Command-line interface design following [docopt](http://docopt.org/).
## Release
Tag the current commit with version name, and create a [release](https://github.com/leancloud/lean-cli/releases) with this tag. run `$ make all` and attach the build result (under `./_build` folder) to the release.
The homebrew guys will update the home brew [formula](https://github.com/Homebrew/homebrew-core/blob/master/Formula/lean-cli.rb). If not, or we are in a hurry, just make a pull request to them.
[Releases](https://releases.leanapp.cn) will fetch from GitHub automatically. If not, or we are in a hurry, just execute cloud function `updateRepo` with argument `{"repo": "leancloud/lean-cli"}` to update.