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

fix: add homebrew instructions to Ampli overview page, code cleanup #975

Merged
merged 1 commit into from
Sep 18, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading