Skip to content

Commit

Permalink
install-and-setup.md: document binary installation with cargo-binstall
Browse files Browse the repository at this point in the history
  • Loading branch information
ilyagr committed Oct 30, 2023
1 parent cccf967 commit cf3eb22
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### New features

* `jj`'s stable release can now be installed with [`cargo binstall jj-cli`](https://github.com/cargo-bins/cargo-binstall).

* `jj workspace add` now takes a `--revision` argument.

* `jj workspace forget` can now forget multiple workspaces at once.
Expand Down
14 changes: 14 additions & 0 deletions docs/install-and-setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,23 @@ There are [pre-built binaries](https://github.com/martinvonz/jj/releases/latest)
of the last released version of `jj` for Windows, Mac, or Linux (the "musl"
version should work on all distributions).


If you'd like to install a prerelease version, you'll need to use one of the
options below.

#### Cargo BInstall

If you use [`cargo-binstall`](https://github.com/cargo-bins/cargo-binstall), you
can install the same release binaries as follows:

```shell
# Will put the jj binary for the latest release in ~/.cargo/bin by default
cargo binstall --strategy crate-meta-data jj-cli
```

Without the `--strategy` option, you may get equivalent binaries compiled from
the same source code.


### Linux

Expand Down

0 comments on commit cf3eb22

Please sign in to comment.