Skip to content

Commit

Permalink
Added installation instructions to stackscli about.md (#526)
Browse files Browse the repository at this point in the history
* Added installation instructions to stackscli about.md

* Apply suggestions from code review

Co-authored-by: Andy Durkan <[email protected]>

---------

Co-authored-by: Athy17 <[email protected]>
Co-authored-by: Andy Durkan <[email protected]>
  • Loading branch information
3 people authored Aug 13, 2024
1 parent b737257 commit e525e5a
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions docs/stackscli/about.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,33 @@ The Ensono Stacks CLI is built using Go, which means that it is a single binary

The CLI will help you get started with scaffolding your applications and workspaces using Ensono Stacks! Through a series of questions the CLI will determine how and what to build for your workspace, helping to accelerate your development process!

## Installation

As the CLI is a single binary, the quickest way to install it is to download it and add it to your PATH. The following code snippets show how this can be achieved using Bash and PowerShell.

### Linux and Mac OS

```bash
# Download the binary to a location in the PATH
## Mac OS
curl https://github.com/Ensono/stacks-cli/releases/download/v{stackscli_version}/stacks-cli-darwin-amd64-{stackscli_version} -o /usr/local/bin/stacks-cli

## Linux
curl https://github.com/Ensono/stacks-cli/releases/download/v{stackscli_version}/stacks-cli-linux-amd64-{stackscli_version} -o /usr/local/bin/stacks-cli

## Ensure that the command is executable
chmod +x /usr/local/bin/stacks-cli
```

### Windows

The following PowerShell snippet will download the Stacks CLI executable to the user's Downloads directory. It should be moved somewhere accessible for use through the PATH (or alternatively, use the full path to the app when using it).

```bash
# Download the binary
Invoke-RestMethod -Uri https://github.com/Ensono/stacks-cli/releases/download/v{stackscli_version}/stacks-cli-windows-amd64-{stackscli_version}.exe -OutFile $env:USERPROFILE\Downloads\stacks-cli.exe
```

:::info

We are currently updating this section, please visit the **[`stacks-cli`](https://github.com/Ensono/stacks-cli/releases)** releases page and download the latest releases **Stacks.CLI.Manual** to get started!
Expand Down

0 comments on commit e525e5a

Please sign in to comment.