Skip to content

Commit

Permalink
Merge pull request #60 from create-go-app/dev
Browse files Browse the repository at this point in the history
Add Homebrew formula to README
  • Loading branch information
Vic Shóstak authored Feb 26, 2021
2 parents afafe8c + fda00d9 commit a0a6aed
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,20 @@

First of all, [download](https://golang.org/dl/) and install **Go**. Version `1.16` or higher is required.

Next, download the **latest** version of the Create Go App CLI to your system:
Installation is done by using the [`go install`](https://golang.org/cmd/go/#hdr-Compile_and_install_packages_and_dependencies) command and rename installed binary in `$GOPATH/bin`:

```bash
go get -u github.com/create-go-app/cli
go install -ldflags="-s -w" github.com/create-go-app/cli && mv $GOPATH/bin/cli $GOPATH/bin/cgapp
```

Installation is done by using the [`go install`](https://golang.org/cmd/go/#hdr-Compile_and_install_packages_and_dependencies) command and rename installed binary in `$GOPATH/bin`:
Also, macOS and GNU/Linux users available way to install via [Homebrew](https://brew.sh/):

```bash
go install -ldflags="-s -w" github.com/create-go-app/cli && mv $GOPATH/bin/cli $GOPATH/bin/cgapp
# Tap a new formula:
brew tap create-go-app/cli

# Installation:
brew install create-go-app/cli/cgapp
```

Let's create a new project via **interactive console UI** (or **CUI** for short) into current folder:
Expand Down Expand Up @@ -291,7 +295,6 @@ project:
You can do it by using a version suffix in `go install` command:

```bash
# With an indication of the exact versions:
go install github.com/create-go-app/[email protected]
```

Expand Down

0 comments on commit a0a6aed

Please sign in to comment.