-
Notifications
You must be signed in to change notification settings - Fork 265
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #60 from create-go-app/dev
Add Homebrew formula to README
- Loading branch information
Showing
1 changed file
with
8 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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: | ||
|
@@ -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] | ||
``` | ||
|
||
|