decoupled-cli 2.4.2 → 2.4.4

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.
Files changed (2) hide show
  1. package/README.md +41 -0
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -13,10 +13,35 @@ A command-line interface for managing Decoupled Drupal spaces, monitoring usage,
13
13
 
14
14
  ## Installation
15
15
 
16
+ ### Option 1: Global Installation
17
+
16
18
  ```bash
17
19
  npm install -g decoupled-cli
18
20
  ```
19
21
 
22
+ ### Option 2: Use with npx (No Installation Required)
23
+
24
+ You can run the CLI without installing it globally using `npx`:
25
+
26
+ ```bash
27
+ npx decoupled-cli@latest auth login
28
+ npx decoupled-cli@latest spaces list
29
+ npx decoupled-cli@latest mcp configure
30
+ ```
31
+
32
+ **Benefits:**
33
+ - ✅ Always runs the latest version
34
+ - ✅ No global installation needed
35
+ - ✅ Perfect for quick setup or one-time use
36
+ - ✅ Works great in CI/CD environments
37
+
38
+ **Quick Start Example:**
39
+ ```bash
40
+ # Authenticate and configure MCP in two commands
41
+ npx decoupled-cli@latest auth login
42
+ npx decoupled-cli@latest mcp configure --ide claude-code
43
+ ```
44
+
20
45
  ## Authentication
21
46
 
22
47
  ### Initial Setup
@@ -24,7 +49,11 @@ npm install -g decoupled-cli
24
49
  Before using the CLI, you need to authenticate with your Decoupled Drupal personal access token:
25
50
 
26
51
  ```bash
52
+ # With global installation
27
53
  decoupled-cli auth login
54
+
55
+ # With npx (no installation)
56
+ npx decoupled-cli@latest auth login
28
57
  ```
29
58
 
30
59
  This will:
@@ -37,6 +66,8 @@ Alternatively, you can use manual token entry:
37
66
 
38
67
  ```bash
39
68
  decoupled-cli auth login --manual
69
+ # or with npx
70
+ npx decoupled-cli@latest auth login --manual
40
71
  ```
41
72
 
42
73
  This will prompt you for:
@@ -143,6 +174,7 @@ The CLI supports the Model Context Protocol (MCP), enabling AI assistants in **C
143
174
 
144
175
  ### Setup
145
176
 
177
+ **With global installation:**
146
178
  ```bash
147
179
  # Log in first (if not already)
148
180
  decoupled-cli auth login
@@ -154,6 +186,13 @@ decoupled-cli mcp configure --ide claude-code
154
186
  decoupled-cli mcp configure --ide cursor
155
187
  ```
156
188
 
189
+ **With npx (no installation):**
190
+ ```bash
191
+ # Quick two-step setup
192
+ npx decoupled-cli@latest auth login
193
+ npx decoupled-cli@latest mcp configure --ide claude-code
194
+ ```
195
+
157
196
  After configuration, restart your IDE and you can interact with your platform naturally:
158
197
 
159
198
  **Example conversations:**
@@ -205,6 +244,8 @@ All operations use your existing authentication and permissions.
205
244
 
206
245
  ## Commands
207
246
 
247
+ **Note:** All commands below assume global installation. If using npx, prefix each command with `npx decoupled-cli@latest`, for example: `npx decoupled-cli@latest spaces list`
248
+
208
249
  ### Spaces Management
209
250
 
210
251
  #### List Spaces
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "decoupled-cli",
3
- "version": "2.4.2",
3
+ "version": "2.4.4",
4
4
  "description": "Command-line interface for managing Decoupled Drupal spaces, deploying content, and automating workflows. Features AI-powered quick-start, content import, and CI/CD integration.",
5
5
  "main": "dist/index.js",
6
6
  "bin": {