Skip to content
This repository has been archived by the owner on Sep 22, 2023. It is now read-only.

Commit

Permalink
fix: add homebrew instructions to Ampli overview page, code cleanup (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
justin-fiedler authored Sep 18, 2023
1 parent c7c1cfd commit 81039ec
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 22 deletions.
16 changes: 16 additions & 0 deletions includes/ampli/cli-install-only.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
### Install the Ampli CLI

You can install the [Ampli CLI](/data/ampli/cli/) from Homebrew or NPM.

=== "brew"

```bash
brew tap amplitude/ampli
brew install ampli
```

=== "npm"

```bash
npm install -g @amplitude/ampli
```
16 changes: 1 addition & 15 deletions includes/ampli/cli-install-simple.md
Original file line number Diff line number Diff line change
@@ -1,19 +1,5 @@
### Install the Ampli CLI
--8<-- "includes/ampli/cli-install-only.md"

You can install the [Ampli CLI](/data/ampli/cli/) from Homebrew or NPM.

=== "brew"

```bash
brew tap amplitude/ampli
brew install ampli
```

=== "npm"

```bash
npm install -g @amplitude/ampli
```
### Pull the Ampli Wrapper into your project

Run the Ampli CLI `pull` command to log in to Amplitude Data and download the strongly typed Ampli Wrapper for your tracking plan. Ampli CLI commands are usually run from the project root directory.
Expand Down
8 changes: 1 addition & 7 deletions includes/ampli/pages/ampli-overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,13 +87,7 @@ The following examples will reference this tracking plan.

The Ampli CLI connects to Amplitude Data and uses the schema information for a given Source to generate and verify the Ampli Wrapper in your project.

### Install the Ampli CLI

NPM and Homebrew are supported.

```shell
npm install -g @amplitude/ampli
```
--8<-- "includes/ampli/cli-install-only.md"

### Generate the Ampli Wrapper with `ampli pull`

Expand Down

0 comments on commit 81039ec

Please sign in to comment.