Skip to content
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
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "fyrst-cli"
version = "0.1.0"
version = "0.2.0"
edition = "2021"
rust-version = "1.74"
license = "MIT"
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ disaster recovery. Do not use sync as a backup.

Linux amd64 (`x86_64-unknown-linux-gnu`) and arm64 (`aarch64-unknown-linux-gnu`)
binaries are on [GitHub Releases](https://github.com/fyrst-dev/cli/releases).
Tags look like `0.1.0` (no `v` prefix). macOS and other hosts: build from source.
Tags look like `0.2.0` (no `v` prefix). macOS and other hosts: build from source.

### Script (recommended)

Expand All @@ -30,7 +30,7 @@ is used only when that prefix is not writable.
curl -fsSL https://raw.githubusercontent.com/fyrst-dev/cli/main/scripts/install.sh | PREFIX="$HOME/.local" bash

# pin a release
curl -fsSL https://raw.githubusercontent.com/fyrst-dev/cli/main/scripts/install.sh | FYRST_CLI_VERSION=0.1.0 bash
curl -fsSL https://raw.githubusercontent.com/fyrst-dev/cli/main/scripts/install.sh | FYRST_CLI_VERSION=0.2.0 bash
```

### Manual download
Expand All @@ -39,8 +39,8 @@ From [Releases](https://github.com/fyrst-dev/cli/releases), download the tarball
for your arch and `SHA256SUMS`:

```bash
curl -fsSL -O https://github.com/fyrst-dev/cli/releases/download/0.1.0/fyrst-cli-x86_64-unknown-linux-gnu.tar.gz
curl -fsSL -O https://github.com/fyrst-dev/cli/releases/download/0.1.0/SHA256SUMS
curl -fsSL -O https://github.com/fyrst-dev/cli/releases/download/0.2.0/fyrst-cli-x86_64-unknown-linux-gnu.tar.gz
curl -fsSL -O https://github.com/fyrst-dev/cli/releases/download/0.2.0/SHA256SUMS
sha256sum -c SHA256SUMS --ignore-missing
tar -xzf fyrst-cli-x86_64-unknown-linux-gnu.tar.gz
sudo install -m 0755 fyrst-cli /usr/local/bin/fyrst-cli
Expand Down
6 changes: 3 additions & 3 deletions scripts/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# curl -fsSL https://raw.githubusercontent.com/fyrst-dev/cli/main/scripts/install.sh | bash
#
# Env:
# FYRST_CLI_VERSION Release tag (e.g. 0.1.0). Default: latest.
# FYRST_CLI_VERSION Release tag (e.g. 0.2.0). Default: latest.
# A leading v is stripped if present.
# PREFIX Install prefix. Default: /usr/local
# BINDIR Binary directory. Default: $PREFIX/bin
Expand Down Expand Up @@ -39,7 +39,7 @@ Usage:
install.sh [VERSION]
install.sh --help

VERSION may also be set via FYRST_CLI_VERSION (e.g. 0.1.0). Default: latest.
VERSION may also be set via FYRST_CLI_VERSION (e.g. 0.2.0). Default: latest.

Environment:
PREFIX Install prefix (default: /usr/local)
Expand All @@ -49,7 +49,7 @@ Environment:
Examples:
curl -fsSL https://raw.githubusercontent.com/${REPO}/main/scripts/install.sh | bash
PREFIX="\$HOME/.local" bash scripts/install.sh
FYRST_CLI_VERSION=0.1.0 bash scripts/install.sh
FYRST_CLI_VERSION=0.2.0 bash scripts/install.sh
EOF
}

Expand Down
Loading