@spree/cli 2.0.0-beta.4 → 2.0.0-beta.6
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 +11 -21
- package/dist/index.js +104 -95
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -37,20 +37,6 @@ Start Docker services, print connection info, and stream web server logs.
|
|
|
37
37
|
spree dev
|
|
38
38
|
```
|
|
39
39
|
|
|
40
|
-
```
|
|
41
|
-
╭ Spree Commerce ─────────────────────╮
|
|
42
|
-
│ │
|
|
43
|
-
│ Admin Dashboard │
|
|
44
|
-
│ http://localhost:3000/admin │
|
|
45
|
-
│ Email: spree@example.com │
|
|
46
|
-
│ Password: spree123 │
|
|
47
|
-
│ │
|
|
48
|
-
│ Store API │
|
|
49
|
-
│ http://localhost:3000/api/v3/store│
|
|
50
|
-
│ │
|
|
51
|
-
╰─────────────────────────────────────╯
|
|
52
|
-
```
|
|
53
|
-
|
|
54
40
|
Press `Ctrl+C` to stop streaming logs (services keep running).
|
|
55
41
|
|
|
56
42
|
### `spree stop`
|
|
@@ -75,6 +61,16 @@ To pin a specific version, edit `SPREE_VERSION_TAG` in your `.env` file:
|
|
|
75
61
|
SPREE_VERSION_TAG=5.4
|
|
76
62
|
```
|
|
77
63
|
|
|
64
|
+
### `spree eject`
|
|
65
|
+
|
|
66
|
+
Switch from the prebuilt Docker image to building from your local `backend/` directory. This lets you customize the Rails app — add gems, override models, add migrations, etc.
|
|
67
|
+
|
|
68
|
+
```bash
|
|
69
|
+
spree eject
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
After ejecting, edit files in `backend/` and run `spree dev` to rebuild and restart.
|
|
73
|
+
|
|
78
74
|
### `spree logs [service]`
|
|
79
75
|
|
|
80
76
|
Stream logs from a service. Defaults to `web`.
|
|
@@ -129,13 +125,6 @@ List all API keys for the default store with their name, type, token/prefix, cre
|
|
|
129
125
|
spree api-key list
|
|
130
126
|
```
|
|
131
127
|
|
|
132
|
-
```
|
|
133
|
-
Name Type Token Created Status
|
|
134
|
-
────────────────────────────────────────────────────────────────────────────────────────────────
|
|
135
|
-
My Storefront publishable pk_abc123def456... 2025-01-15 10:30 active
|
|
136
|
-
Admin Integration secret sk_xyz789qwe... 2025-01-15 10:35 active
|
|
137
|
-
```
|
|
138
|
-
|
|
139
128
|
### `spree api-key revoke`
|
|
140
129
|
|
|
141
130
|
Revoke an API key by its token (publishable) or token prefix (secret).
|
|
@@ -176,6 +165,7 @@ Projects created with `create-spree-app` include convenience scripts in `package
|
|
|
176
165
|
npm run dev # spree dev
|
|
177
166
|
npm run stop # spree stop
|
|
178
167
|
npm run update # spree update
|
|
168
|
+
npm run eject # spree eject
|
|
179
169
|
npm run logs # spree logs
|
|
180
170
|
npm run logs:worker # spree logs worker
|
|
181
171
|
npm run console # spree console
|