You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
`jwt-cli` is a command line tool to help you work with JSON Web Tokens (JWTs). Like most JWT command line tools out there, you can decode almost any JWT header and claims body. Unlike any that I've found, however, `jwt-cli` allows you to encode a new JWT with nearly any piece of data you can think of. Custom header values (some), custom claim bodies (as long as it's JSON, it's game), and using any secret you need.
12
11
13
-
On top of all that, it's written in Rust so it's fast and extremely portable (windows, macOS, and linux supported right now).
12
+
On top of all that, it's written in Rust so it's fast and portable (windows, macOS, and linux supported right now).
14
13
15
14
# Installation
16
15
17
-
Currently, installation is supported via [Homebrew](https://brew.sh) (macOS), [Cargo](https://www.rust-lang.org/tools/install) (cross-platform), and [FreshPorts](https://www.freshports.org/www/jwt-cli) (FreeBSD). If you intend to use one of these methods, [skip ahead](#homebrew).
16
+
Install `jwt-cli` via [Homebrew](https://brew.sh) (macOS), [Cargo](https://www.rust-lang.org/tools/install) (cross-platform), and [FreshPorts](https://www.freshports.org/www/jwt-cli) (FreeBSD). If you intend to use one of these methods, [skip ahead](#homebrew).
18
17
19
18
You may also install the binary from the [release](https://github.com/mike-engel/jwt-cli/releases) page, if you're unable to use Homebrew or Cargo install methods below.
20
19
21
20
Only 64bit linux, macOS, and Windows targets are pre-built. Sorry if you're not on one of those! You'll need to build it from the source. See the [contributing](#contributing) section on how to install and build the project.
22
21
23
-
As to where you should install it, it should optimally go somewhere in your `PATH`. For Linux and macOS, a good place is generally `/usr/local/bin`. For Windows, there really isn't a good place by default :(.
22
+
You should install itsomewhere in your `$PATH`. For Linux and macOS, a good place is generally `/usr/local/bin`. For Windows, there isn't a good place by default :(.
24
23
25
24
## Homebrew
26
25
27
-
For those with Homebrew, you'll need to `brew tap mike-engel/jwt-cli` repo in order to install it.
26
+
For those with Homebrew, you'll need to `brew tap mike-engel/jwt-cli` repo to install it.
28
27
29
28
```sh
30
29
# Tap and install jwt-cli
@@ -43,7 +42,7 @@ If your system [supports](https://forge.rust-lang.org/platform-support.html) it,
43
42
cargo install jwt-cli
44
43
```
45
44
46
-
The binary will be installed in your Cargo bin path (`~/.cargo/bin`). Make sure this path is included in your PATH environment variable.
45
+
The binary installs to your Cargo bin path (`~/.cargo/bin`). Make sure your `$PATH` environment variable includes this path.
47
46
48
47
## FreshPorts
49
48
@@ -57,10 +56,10 @@ Big thanks to Sergey Osokin, the FreeBSD contributor who added `jwt-cli` to the
57
56
58
57
## GoFish
59
58
60
-
`jwt-cli` is also avaible on Windows, MacOSX and Linux using GoFish.
59
+
`jwt-cli` is also available on Windows, macOS, and Linux using GoFish.
61
60
See [gofi.sh](https://gofi.sh/index.html#install) for instructions for getting GoFish.
62
61
63
-
After installing GoFish, getting`jwt-cli`is just running:
62
+
After installing GoFish, run`jwt-cli`with:
64
63
65
64
```sh
66
65
gofish install jwt-cli
@@ -86,7 +85,7 @@ The `-` argument tells `jwt-cli` to read from standard input:
0 commit comments