cursor-kit-cli 1.5.0 → 1.6.0

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
@@ -46,6 +46,7 @@ ck init
46
46
  - **🔄 Sync** - Keep configurations updated from the community
47
47
  - **🎯 Multi-Target** - Support for Cursor IDE, GitHub Copilot, and Google AntiGravity
48
48
  - **🖥️ Multi-Instance** - Run multiple Cursor accounts simultaneously (macOS)
49
+ - **⚡ Instance Aliases** - Create shell commands to quickly open projects in specific instances
49
50
  - **🎨 Beautiful CLI** - Delightful terminal experience
50
51
 
51
52
  ## 📦 Commands
@@ -139,6 +140,7 @@ This command allows you to create separate Cursor instances, each with its own i
139
140
  cursor-kit instance # Interactive mode
140
141
  cursor-kit instance -l # List existing instances
141
142
  cursor-kit instance -a create -n "Cursor Work" # Create instance
143
+ cursor-kit instance -a alias -n "Cursor Work" # Add/update alias for instance
142
144
  cursor-kit instance -a reinstall -n "Cursor Work" # Reinstall instance (fix after updates)
143
145
  cursor-kit instance -a remove -n "Cursor Work" # Remove instance
144
146
  ```
@@ -152,22 +154,101 @@ cursor-kit instance -a remove -n "Cursor Work" # Remove instance
152
154
  - Each instance can be logged into with a different Cursor account
153
155
  - Reinstall refreshes the instance with the latest Cursor version while preserving your data
154
156
 
157
+ **Shell Aliases:**
158
+
159
+ When creating an instance, you can set up a shell alias to quickly open directories in that instance (similar to the `cursor` command):
160
+
161
+ ```bash
162
+ # Create instance with interactive alias setup
163
+ cursor-kit instance -a create -n "Cursor Work"
164
+ # You'll be prompted: "Would you like to create a shell alias?"
165
+
166
+ # Create instance with alias in one command
167
+ cursor-kit instance -a create -n "Cursor Work" -A cursor-work
168
+
169
+ # Specify alias storage location
170
+ cursor-kit instance -a create -n "Cursor Work" -A cursor-work --aliasLocation shell-config
171
+ cursor-kit instance -a create -n "Cursor Work" -A cursor-work --aliasLocation home-bin
172
+ cursor-kit instance -a create -n "Cursor Work" -A cursor-work --aliasLocation usr-local-bin
173
+
174
+ # Skip alias creation prompt
175
+ cursor-kit instance -a create -n "Cursor Work" --skipAlias
176
+ ```
177
+
178
+ **Managing aliases for existing instances:**
179
+
180
+ Use the `alias` action to add, update, or remove aliases for instances that already exist:
181
+
182
+ ```bash
183
+ # Interactive alias management
184
+ cursor-kit instance -a alias
185
+ # Select an instance, then choose to add/update/remove alias
186
+
187
+ # Add or update alias for a specific instance
188
+ cursor-kit instance -a alias -n "Cursor Work"
189
+
190
+ # Directly specify the alias name
191
+ cursor-kit instance -a alias -n "Cursor Work" -A cursor-work
192
+
193
+ # Specify alias name and storage location
194
+ cursor-kit instance -a alias -n "Cursor Work" -A cursor-work --aliasLocation home-bin
195
+ ```
196
+
197
+ **Alias storage locations:**
198
+
199
+ | Location | Path | Description |
200
+ |----------|------|-------------|
201
+ | `shell-config` | `~/.zshrc` or `~/.bashrc` | Adds a shell function (restart terminal or `source` to activate) |
202
+ | `home-bin` | `~/bin/` | Creates an executable script (add `~/bin` to PATH if needed) |
203
+ | `usr-local-bin` | `/usr/local/bin/` | Creates a system-wide executable (may require sudo) |
204
+
205
+ **Using aliases:**
206
+
207
+ After creating an alias, you can open directories in your Cursor instance:
208
+
209
+ ```bash
210
+ # Open current directory
211
+ cursor-work .
212
+
213
+ # Open a specific project
214
+ cursor-work ~/projects/my-app
215
+
216
+ # The alias works just like the original 'cursor' command
217
+ ```
218
+
155
219
  **Example workflow:**
156
220
 
157
221
  ```bash
158
- # Create an instance for work projects
222
+ # Create an instance for work projects with alias
159
223
  cursor-kit instance -a create -n "Cursor Enterprise"
224
+ # When prompted, set alias to "cursor-work"
160
225
 
161
226
  # Create another for personal use
162
- cursor-kit instance -a create -n "Cursor Personal"
227
+ cursor-kit instance -a create -n "Cursor Personal" -A cursor-personal
163
228
 
164
- # List all your instances
229
+ # List all your instances (shows associated aliases)
165
230
  cursor-kit instance --list
231
+ # Output:
232
+ # ● Cursor Enterprise (alias: cursor-work)
233
+ # └─ ~/Applications/Cursor Enterprise.app
234
+ # ● Cursor Personal (alias: cursor-personal)
235
+ # └─ ~/Applications/Cursor Personal.app
236
+
237
+ # Use the aliases to open projects
238
+ cursor-work ~/work/project-a
239
+ cursor-personal ~/personal/side-project
240
+
241
+ # Add alias to an instance that doesn't have one
242
+ cursor-kit instance -a alias -n "Cursor Enterprise" -A cursor-enterprise
243
+
244
+ # Update an existing alias (change name or storage location)
245
+ cursor-kit instance -a alias -n "Cursor Enterprise"
246
+ # Select "Update alias" to change the alias name
166
247
 
167
- # Fix an instance after Cursor update (preserves your data)
248
+ # Fix an instance after Cursor update (preserves your data and alias)
168
249
  cursor-kit instance -a reinstall -n "Cursor Enterprise"
169
250
 
170
- # Remove an instance when no longer needed
251
+ # Remove an instance (will prompt to remove associated alias)
171
252
  cursor-kit instance -a remove -n "Cursor Personal"
172
253
  ```
173
254