megareviewer 0.2.9 → 0.2.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -20,6 +20,24 @@ npx megareviewer doctor
20
20
 
21
21
  `doctor` checks every credential below and exits 1 if something required is missing.
22
22
 
23
+ ## Install
24
+
25
+ To have `megareviewer` as a command instead of `npx megareviewer`:
26
+
27
+ ```bash
28
+ curl -fsSL https://raw.githubusercontent.com/markdorofeev/megareviewer/main/install.sh | sh
29
+ ```
30
+
31
+ The script checks your Node and installs the npm package globally, or into `~/.local` when npm's global folder needs root. `MEGAREVIEWER_VERSION=0.2.9` before `sh` pins a version.
32
+
33
+ **Without npm.** Where npm is blocked or holds new versions back, install the same package from its GitHub release:
34
+
35
+ ```bash
36
+ curl -fsSL https://raw.githubusercontent.com/markdorofeev/megareviewer/main/install.sh | MEGAREVIEWER_SOURCE=github sh
37
+ ```
38
+
39
+ It goes into `~/.local/share/megareviewer`, linked as `~/.local/bin/megareviewer`, and running it again updates it. With the GitHub CLI signed in, the script checks that the file was built from this repository by its release workflow, and installs nothing if not. Releases from 0.2.10 on have the package.
40
+
23
41
  ## Credentials
24
42
 
25
43
  Set them as environment variables. You need at least one git host.