Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update install instructions to use a static url #426

Merged
merged 2 commits into from
Apr 7, 2021
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
18 changes: 12 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,26 +106,32 @@ This repo is organized as a [`cargo` workspace], containing several related proj

#### Linux and MacOS `curl | sh` installer

To install the latest release of Rover:

```bash
curl -sSL https://raw.githubusercontent.com/apollographql/rover/v0.0.7/installers/binstall/scripts/nix/install.sh | sh
curl -sSL https://rover.apollo.dev/nix/latest | sh
```

**To download older versions of Rover**, use the `VERSION` env variable when executing the installer (note: the `v` in the version number):
To install a specific version of Rover (note the `v` prefixing the version number):

> Note: If you're installing Rover in a CI environment, it's best to target a specific version rather than using the latest URL, since future major breaking changes could affect CI workflows otherwise.

```bash
curl -sSL https://raw.githubusercontent.com/apollographql/rover/v0.0.7/installers/binstall/scripts/nix/install.sh | VERSION=v0.0.1 sh
curl -sSL https://rover.apollo.dev/nix/v0.0.7 | sh
```

#### Windows PowerShell installer

```bash
iwr 'https://raw.githubusercontent.com/apollographql/rover/v0.0.7/installers/binstall/scripts/windows/install.ps1' | iex
iwr 'https://rover.apollo.dev/win/latest' | iex
```

**To download older versions of Rover**, use the `VERSION` env variable when executing the installer (note: the `v` in the version number):
To install a specific version of Rover (note the `v` prefixing the version number):

> Note: If you're installing Rover in a CI environment, it's best to target a specific version rather than using the latest URL, since future major breaking changes could affect CI workflows otherwise.

```bash
$Env:VERSION='v0.0.1'; iwr 'https://raw.githubusercontent.com/apollographql/rover/v0.0.7/installers/binstall/scripts/windows/install.ps1' | iex
iwr 'https://rover.apollo.dev/win/v0.0.7' | iex
```

#### npm installer
Expand Down
4 changes: 2 additions & 2 deletions docs/source/ci-cd.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
name: Install
command: |
# download and install Rover
curl -sSL https://raw.githubusercontent.com/apollographql/rover/v0.0.7/installers/binstall/scripts/nix/install.sh | sh
curl -sSL https://rover.apollo.dev/nix/v0.0.7 | sh

# This allows the PATH changes to persist to the next `run` step
echo 'export PATH=$HOME/.rover/bin:$PATH' >> $BASH_ENV
Expand Down Expand Up @@ -97,7 +97,7 @@ jobs:

- name: Install Rover
run: |
curl -sSL https://raw.githubusercontent.com/apollographql/rover/v0.0.7/installers/binstall/scripts/nix/install.sh | sh
curl -sSL https://rover.apollo.dev/nix/v0.0.7 | sh

# Add Rover to the $GITHUB_PATH so it can be used in another step
# https://docs.github.com/en/actions/reference/workflow-commands-for-github-actions#adding-a-system-path
Expand Down
19 changes: 13 additions & 6 deletions docs/source/getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,25 +9,32 @@ The Rover CLI is available for Linux, Mac, and Windows.

#### Linux and MacOS `curl | sh` installer

To install the latest release of Rover:

```bash
curl -sSL https://raw.githubusercontent.com/apollographql/rover/v0.0.7/installers/binstall/scripts/nix/install.sh | sh
curl -sSL https://rover.apollo.dev/nix/latest | sh
```

**To download older versions of Rover**, use the `VERSION` env variable when executing the installer (note: the `v` in the version number):
To install a specific version of Rover (note the `v` prefixing the version number):

> Note: If you're installing Rover in a CI environment, it's best to target a specific version rather than using the latest URL, since future major breaking changes could affect CI workflows otherwise.

```bash
curl -sSL https://raw.githubusercontent.com/apollographql/rover/v0.0.7/installers/binstall/scripts/nix/install.sh | VERSION=v0.0.1 sh
curl -sSL https://rover.apollo.dev/nix/v0.0.7 | sh
```

#### Windows PowerShell installer

```bash
iwr 'https://raw.githubusercontent.com/apollographql/rover/v0.0.7/installers/binstall/scripts/windows/install.ps1' | iex
iwr 'https://rover.apollo.dev/win/latest' | iex
```

**To download older versions of Rover**, use the `VERSION` env variable when executing the installer (note: the `v` in the version number):
To install a specific version of Rover (note the `v` prefixing the version number):

> Note: If you're installing Rover in a CI environment, it's best to target a specific version rather than using the latest URL, since future major breaking changes could affect CI workflows otherwise.

```bash
$Env:VERSION='v0.0.1'; iwr 'https://raw.githubusercontent.com/apollographql/rover/v0.0.7/installers/binstall/scripts/windows/install.ps1' | iex
iwr 'https://rover.apollo.dev/win/v0.0.7' | iex
```

#### npm installer
Expand Down