An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

          

# lean(1)

[![Build Status](https://travis-ci.org/leancloud/lean-cli.svg?branch=master)](https://travis-ci.org/leancloud/lean-cli) [![GoDoc](https://godoc.org/github.com/leancloud/lean-cli?status.svg)](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.