@glash/cli 0.2.17 → 0.2.19

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
@@ -2,12 +2,64 @@
2
2
 
3
3
  The official command-line interface for [glashDB](https://glashdb.com).
4
4
 
5
+ ## Install
6
+
7
+ Pick whichever install style you prefer — all four produce the same `glash` command:
8
+
9
+ ```bash
10
+ # Short-name (recommended)
11
+ npm install -g glash
12
+
13
+ # Scoped package
14
+ npm install -g @glash/cli@latest
15
+
16
+ # pnpm / yarn / bun
17
+ pnpm add -g glash
18
+ yarn global add glash
19
+ bun add -g glash
20
+
21
+ # No install — run on demand
22
+ npx -y glash deploy
5
23
  ```
6
- npm install -g @glash/cli
24
+
25
+ Then:
26
+
27
+ ```bash
7
28
  glash login
8
29
  glash deploy
9
30
  ```
10
31
 
32
+ ### `glash: command not found`
33
+
34
+ If npm says the install completed but your shell can't find `glash`, your npm
35
+ global `bin` folder isn't on `PATH`. Fix it once:
36
+
37
+ ```bash
38
+ npm list -g glash --depth=0 # confirm install
39
+ ls -la "$(npm prefix -g)/bin/glash" # confirm bin exists
40
+ echo 'export PATH="$(npm prefix -g)/bin:$PATH"' >> ~/.zshrc
41
+ source ~/.zshrc
42
+ hash -r
43
+ glash --version
44
+ ```
45
+
46
+ On macOS with Homebrew Node, the global prefix is usually
47
+ `/opt/homebrew/bin` (Apple Silicon) or `/usr/local/bin` (Intel) — both are
48
+ typically already on `PATH`. With `nvm`, re-run `nvm use` in new shells or
49
+ add `nvm use --default` to your shell init.
50
+
51
+ ### EACCES / permission errors
52
+
53
+ Don't `sudo npm install -g`. Instead, point npm at a user-owned prefix:
54
+
55
+ ```bash
56
+ mkdir -p ~/.npm-global
57
+ npm config set prefix ~/.npm-global
58
+ echo 'export PATH="$HOME/.npm-global/bin:$PATH"' >> ~/.zshrc
59
+ source ~/.zshrc
60
+ npm install -g glash
61
+ ```
62
+
11
63
  ## Commands
12
64
 
13
65
  | Command | Purpose |
package/lib/version.mjs CHANGED
@@ -1 +1 @@
1
- export const VERSION = '0.2.17';
1
+ export const VERSION = '0.2.19';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@glash/cli",
3
- "version": "0.2.17",
3
+ "version": "0.2.19",
4
4
  "description": "glashDB command-line interface — deploy projects, pull source + env, manage env vars.",
5
5
  "license": "Apache-2.0",
6
6
  "homepage": "https://glashdb.com",