Skip to content

Commit 196d943

Browse files
authored
Enhance Claude Code CLI with detailed command descriptions and new functionalities (#1235)
1 parent 33ea2a5 commit 196d943

1 file changed

Lines changed: 33 additions & 1 deletion

File tree

custom-completions/claude/claude-completions.nu

Lines changed: 33 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ def "nu-complete claude install-channel" [] {
4141
[stable latest]
4242
}
4343

44-
# Main command
44+
# Claude Code - starts an interactive session by default, use -p/--print for non-interactive output
4545
export extern claude [
4646
--debug(-d) # Enable debug mode
4747
--debug-file: path # Debug output file
@@ -96,17 +96,20 @@ export extern claude [
9696

9797
# --- auth ---
9898

99+
# Manage authentication
99100
export extern "claude auth" [
100101
--help(-h)
101102
...args: string
102103
]
103104

105+
# Sign in to your Anthropic account
104106
export extern "claude auth login" [
105107
--email: string # Login email
106108
--sso # Use SSO login
107109
--help(-h)
108110
]
109111

112+
# Log out from your Anthropic account
110113
export extern "claude auth logout" [
111114
--help(-h)
112115
]
@@ -115,6 +118,7 @@ def "nu-complete claude auth-status-format" [] {
115118
[json text]
116119
}
117120

121+
# Show authentication status
118122
export extern "claude auth status" [
119123
--json # Output as JSON
120124
--text # Output as text
@@ -123,11 +127,13 @@ export extern "claude auth status" [
123127

124128
# --- mcp ---
125129

130+
# Configure and manage MCP servers
126131
export extern "claude mcp" [
127132
--help(-h)
128133
...args: string
129134
]
130135

136+
# Add an MCP server to Claude Code
131137
export extern "claude mcp add" [
132138
--scope(-s): string@"nu-complete claude scope" # Scope
133139
--transport(-t): string@"nu-complete claude transport" # Transport type
@@ -140,38 +146,45 @@ export extern "claude mcp add" [
140146
...args: string
141147
]
142148

149+
# Import MCP servers from Claude Desktop (Mac and WSL only)
143150
export extern "claude mcp add-from-claude-desktop" [
144151
--scope(-s): string@"nu-complete claude scope"
145152
--help(-h)
146153
...args: string
147154
]
148155

156+
# Add an MCP server (stdio or SSE) with a JSON string
149157
export extern "claude mcp add-json" [
150158
--scope(-s): string@"nu-complete claude scope"
151159
--client-secret # Client secret (interactive prompt)
152160
--help(-h)
153161
...args: string
154162
]
155163

164+
# Get details about an MCP server
156165
export extern "claude mcp get" [
157166
--help(-h)
158167
...args: string
159168
]
160169

170+
# List configured MCP servers
161171
export extern "claude mcp list" [
162172
--help(-h)
163173
]
164174

175+
# Remove an MCP server
165176
export extern "claude mcp remove" [
166177
--scope(-s): string@"nu-complete claude scope"
167178
--help(-h)
168179
...args: string
169180
]
170181

182+
# Reset all approved and rejected project-scoped (.mcp.json) servers
171183
export extern "claude mcp reset-project-choices" [
172184
--help(-h)
173185
]
174186

187+
# Start the Claude Code MCP server
175188
export extern "claude mcp serve" [
176189
--debug(-d)
177190
--verbose
@@ -180,109 +193,128 @@ export extern "claude mcp serve" [
180193

181194
# --- plugin ---
182195

196+
# Manage Claude Code plugins
183197
export extern "claude plugin" [
184198
--help(-h)
185199
...args: string
186200
]
187201

202+
# Disable an enabled plugin
188203
export extern "claude plugin disable" [
189204
--all(-a) # Disable all
190205
--scope(-s): string@"nu-complete claude scope"
191206
--help(-h)
192207
...args: string
193208
]
194209

210+
# Enable a disabled plugin
195211
export extern "claude plugin enable" [
196212
--scope(-s): string@"nu-complete claude scope"
197213
--help(-h)
198214
...args: string
199215
]
200216

217+
# Install a plugin from available marketplaces
201218
export extern "claude plugin install" [
202219
--scope(-s): string@"nu-complete claude scope"
203220
--help(-h)
204221
...args: string
205222
]
206223

224+
# List installed plugins
207225
export extern "claude plugin list" [
208226
--available
209227
--json
210228
--help(-h)
211229
]
212230

231+
# Manage Claude Code marketplaces
213232
export extern "claude plugin marketplace" [
214233
--help(-h)
215234
...args: string
216235
]
217236

237+
# Add a marketplace
218238
export extern "claude plugin marketplace add" [
219239
--help(-h)
220240
...args: string
221241
]
222242

243+
# List configured marketplaces
223244
export extern "claude plugin marketplace list" [
224245
--json
225246
--help(-h)
226247
]
227248

249+
# Remove a marketplace
228250
export extern "claude plugin marketplace remove" [
229251
--help(-h)
230252
...args: string
231253
]
232254

255+
# Update a marketplace
233256
export extern "claude plugin marketplace update" [
234257
--help(-h)
235258
...args: string
236259
]
237260

261+
# Uninstall an installed plugin
238262
export extern "claude plugin uninstall" [
239263
--scope(-s): string@"nu-complete claude scope"
240264
--help(-h)
241265
...args: string
242266
]
243267

268+
# Update a plugin to the latest version
244269
export extern "claude plugin update" [
245270
--scope(-s): string@"nu-complete claude scope-with-managed"
246271
--help(-h)
247272
...args: string
248273
]
249274

275+
# Validate a plugin or marketplace manifest
250276
export extern "claude plugin validate" [
251277
--help(-h)
252278
...args: string
253279
]
254280

255281
# --- agents ---
256282

283+
# List configured agents
257284
export extern "claude agents" [
258285
--setting-sources: string@"nu-complete claude scope"
259286
--help(-h)
260287
]
261288

262289
# --- setup-token ---
263290

291+
# Set up a long-lived authentication token (requires Claude subscription)
264292
export extern "claude setup-token" [
265293
--help(-h)
266294
]
267295

268296
# --- doctor ---
269297

298+
# Check the health of your Claude Code auto-updater
270299
export extern "claude doctor" [
271300
--help(-h)
272301
]
273302

274303
# --- update / upgrade ---
275304

305+
# Check for updates and install if available
276306
export extern "claude update" [
277307
--help(-h)
278308
]
279309

310+
# Check for updates and install if available
280311
export extern "claude upgrade" [
281312
--help(-h)
282313
]
283314

284315
# --- install ---
285316

317+
# Install Claude Code native build
286318
export extern "claude install" [
287319
--force
288320
--help(-h)

0 commit comments

Comments
 (0)