@enjoys/context-engine 1.0.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.
Files changed (138) hide show
  1. package/README.md +213 -0
  2. package/data/commands/air.json +59 -0
  3. package/data/commands/ansible.json +24 -0
  4. package/data/commands/apachectl.json +87 -0
  5. package/data/commands/apt-get.json +81 -0
  6. package/data/commands/apt.json +91 -0
  7. package/data/commands/awk.json +26 -0
  8. package/data/commands/aws-vault.json +140 -0
  9. package/data/commands/aws.json +229 -0
  10. package/data/commands/az.json +36 -0
  11. package/data/commands/bazel.json +103 -0
  12. package/data/commands/brew.json +140 -0
  13. package/data/commands/bun.json +230 -0
  14. package/data/commands/caddy.json +194 -0
  15. package/data/commands/cargo.json +1048 -0
  16. package/data/commands/cat.json +18 -0
  17. package/data/commands/cd.json +48 -0
  18. package/data/commands/certbot.json +148 -0
  19. package/data/commands/chmod.json +97 -0
  20. package/data/commands/choco.json +134 -0
  21. package/data/commands/chown.json +59 -0
  22. package/data/commands/clickhouse-client.json +74 -0
  23. package/data/commands/cloudflare.json +226 -0
  24. package/data/commands/cmake.json +110 -0
  25. package/data/commands/cockroach.json +92 -0
  26. package/data/commands/conda.json +94 -0
  27. package/data/commands/consul.json +125 -0
  28. package/data/commands/cp.json +86 -0
  29. package/data/commands/curl.json +44 -0
  30. package/data/commands/cypress.json +100 -0
  31. package/data/commands/deno.json +29 -0
  32. package/data/commands/django-admin.json +86 -0
  33. package/data/commands/dnf.json +137 -0
  34. package/data/commands/docker.json +1100 -0
  35. package/data/commands/doctl.json +156 -0
  36. package/data/commands/eslint.json +69 -0
  37. package/data/commands/find.json +44 -0
  38. package/data/commands/firebase.json +97 -0
  39. package/data/commands/flask.json +79 -0
  40. package/data/commands/flyctl.json +148 -0
  41. package/data/commands/gcloud.json +227 -0
  42. package/data/commands/gh.json +39 -0
  43. package/data/commands/git.json +527 -0
  44. package/data/commands/glab.json +116 -0
  45. package/data/commands/go.json +161 -0
  46. package/data/commands/gofmt.json +51 -0
  47. package/data/commands/golangci-lint.json +89 -0
  48. package/data/commands/gradle.json +44 -0
  49. package/data/commands/grep.json +47 -0
  50. package/data/commands/gunicorn.json +83 -0
  51. package/data/commands/helm.json +1104 -0
  52. package/data/commands/hg.json +92 -0
  53. package/data/commands/httpd.json +147 -0
  54. package/data/commands/influx.json +119 -0
  55. package/data/commands/iptables.json +86 -0
  56. package/data/commands/java.json +31 -0
  57. package/data/commands/jest.json +82 -0
  58. package/data/commands/journalctl.json +88 -0
  59. package/data/commands/just.json +93 -0
  60. package/data/commands/k6.json +84 -0
  61. package/data/commands/kubectl.json +1277 -0
  62. package/data/commands/linode-cli.json +117 -0
  63. package/data/commands/locust.json +83 -0
  64. package/data/commands/ls.json +115 -0
  65. package/data/commands/make.json +86 -0
  66. package/data/commands/mocha.json +75 -0
  67. package/data/commands/mongosh.json +73 -0
  68. package/data/commands/mv.json +68 -0
  69. package/data/commands/mvn.json +45 -0
  70. package/data/commands/mysql.json +81 -0
  71. package/data/commands/nest.json +69 -0
  72. package/data/commands/netlify.json +92 -0
  73. package/data/commands/next.json +71 -0
  74. package/data/commands/nft.json +105 -0
  75. package/data/commands/nginx.json +146 -0
  76. package/data/commands/nmap.json +92 -0
  77. package/data/commands/node.json +43 -0
  78. package/data/commands/nomad.json +139 -0
  79. package/data/commands/npm.json +1265 -0
  80. package/data/commands/npx.json +58 -0
  81. package/data/commands/nx.json +82 -0
  82. package/data/commands/openssl.json +288 -0
  83. package/data/commands/packer.json +92 -0
  84. package/data/commands/pacman.json +82 -0
  85. package/data/commands/pg_dump.json +83 -0
  86. package/data/commands/pg_restore.json +74 -0
  87. package/data/commands/pip.json +95 -0
  88. package/data/commands/pipenv.json +79 -0
  89. package/data/commands/pipx.json +53 -0
  90. package/data/commands/playwright.json +97 -0
  91. package/data/commands/pnpm.json +29 -0
  92. package/data/commands/poetry.json +96 -0
  93. package/data/commands/prettier.json +71 -0
  94. package/data/commands/ps.json +31 -0
  95. package/data/commands/psql.json +124 -0
  96. package/data/commands/pulumi.json +130 -0
  97. package/data/commands/pytest.json +92 -0
  98. package/data/commands/python.json +30 -0
  99. package/data/commands/railway.json +91 -0
  100. package/data/commands/redis-cli.json +148 -0
  101. package/data/commands/render.json +72 -0
  102. package/data/commands/rm.json +79 -0
  103. package/data/commands/rsync.json +36 -0
  104. package/data/commands/rust.json +35 -0
  105. package/data/commands/rustup.json +103 -0
  106. package/data/commands/scp.json +60 -0
  107. package/data/commands/sed.json +28 -0
  108. package/data/commands/sqlite3.json +68 -0
  109. package/data/commands/ssh-keygen.json +112 -0
  110. package/data/commands/ssh.json +37 -0
  111. package/data/commands/sudo.json +147 -0
  112. package/data/commands/supabase.json +108 -0
  113. package/data/commands/svn.json +75 -0
  114. package/data/commands/systemctl.json +31 -0
  115. package/data/commands/tar.json +35 -0
  116. package/data/commands/tcpdump.json +77 -0
  117. package/data/commands/terraform.json +824 -0
  118. package/data/commands/terragrunt.json +83 -0
  119. package/data/commands/tsc.json +85 -0
  120. package/data/commands/turbo.json +72 -0
  121. package/data/commands/ufw.json +76 -0
  122. package/data/commands/unzip.json +59 -0
  123. package/data/commands/uvicorn.json +73 -0
  124. package/data/commands/vault.json +144 -0
  125. package/data/commands/vercel.json +98 -0
  126. package/data/commands/vite.json +63 -0
  127. package/data/commands/vitest.json +88 -0
  128. package/data/commands/wasm-pack.json +90 -0
  129. package/data/commands/wget.json +38 -0
  130. package/data/commands/winget.json +131 -0
  131. package/data/commands/wireshark.json +81 -0
  132. package/data/commands/yarn.json +28 -0
  133. package/data/commands/yum.json +98 -0
  134. package/data/commands/zip.json +59 -0
  135. package/index.d.ts +131 -0
  136. package/index.js +189 -0
  137. package/index.mjs +21 -0
  138. package/package.json +64 -0
@@ -0,0 +1,1048 @@
1
+ {
2
+ "name": "cargo",
3
+ "description": "Rust package manager and build system",
4
+ "category": "rust-ecosystem",
5
+ "platforms": ["linux", "macos", "windows"],
6
+ "shells": ["bash", "zsh", "fish", "powershell"],
7
+ "subcommands": [
8
+ {
9
+ "name": "new",
10
+ "description": "Create a new Cargo package",
11
+ "args": [{ "name": "<path>", "type": "string", "required": true, "description": "Directory path for the new package" }],
12
+ "options": [
13
+ { "name": "--bin", "description": "Create a binary (application) package (default)" },
14
+ { "name": "--lib", "description": "Create a library package" },
15
+ { "name": "--edition", "description": "Rust edition to use (2015, 2018, 2021, 2024)", "type": "string" },
16
+ { "name": "--name", "description": "Set the package name (defaults to directory name)", "type": "string" },
17
+ { "name": "--vcs", "description": "Version control system to initialize (git, hg, pijul, fossil, none)", "type": "string" },
18
+ { "name": "--registry", "description": "Registry to use", "type": "string" }
19
+ ],
20
+ "examples": [
21
+ "cargo new myproject",
22
+ "cargo new --lib mylib",
23
+ "cargo new --edition 2021 myapp",
24
+ "cargo new --name my-crate my_crate_dir",
25
+ "cargo new --vcs none myproject"
26
+ ]
27
+ },
28
+ {
29
+ "name": "init",
30
+ "description": "Create a new Cargo package in an existing directory",
31
+ "args": [{ "name": "<path>", "type": "string", "required": false, "description": "Directory path (defaults to current directory)" }],
32
+ "options": [
33
+ { "name": "--bin", "description": "Create a binary (application) package (default)" },
34
+ { "name": "--lib", "description": "Create a library package" },
35
+ { "name": "--edition", "description": "Rust edition to use", "type": "string" },
36
+ { "name": "--name", "description": "Set the package name", "type": "string" },
37
+ { "name": "--vcs", "description": "Version control system (git, hg, pijul, fossil, none)", "type": "string" }
38
+ ],
39
+ "examples": [
40
+ "cargo init",
41
+ "cargo init --lib",
42
+ "cargo init --edition 2021",
43
+ "cargo init ."
44
+ ]
45
+ },
46
+ {
47
+ "name": "build",
48
+ "description": "Compile the current package and all dependencies",
49
+ "args": [{ "name": "<spec>", "type": "string", "required": false, "description": "Package specification to build" }],
50
+ "options": [
51
+ { "name": "--release", "short": "-r", "description": "Build with optimizations (release profile)" },
52
+ { "name": "--profile", "description": "Build with the specified profile", "type": "string" },
53
+ { "name": "--target", "description": "Build for the target triple", "type": "string" },
54
+ { "name": "--target-dir", "description": "Directory for all generated artifacts", "type": "path" },
55
+ { "name": "--features", "short": "-F", "description": "Space or comma-separated list of features to activate", "type": "string" },
56
+ { "name": "--all-features", "description": "Activate all available features" },
57
+ { "name": "--no-default-features", "description": "Do not activate the default feature" },
58
+ { "name": "--lib", "description": "Build only the library" },
59
+ { "name": "--bin", "description": "Build only the specified binary", "type": "string" },
60
+ { "name": "--bins", "description": "Build all binaries" },
61
+ { "name": "--example", "description": "Build only the specified example", "type": "string" },
62
+ { "name": "--examples", "description": "Build all examples" },
63
+ { "name": "--test", "description": "Build only the specified test target", "type": "string" },
64
+ { "name": "--tests", "description": "Build all test targets" },
65
+ { "name": "--bench", "description": "Build only the specified benchmark", "type": "string" },
66
+ { "name": "--benches", "description": "Build all benchmarks" },
67
+ { "name": "--all-targets", "description": "Build all targets (lib, bins, tests, benches, examples)" },
68
+ { "name": "--workspace", "description": "Build all members of the workspace" },
69
+ { "name": "--package", "short": "-p", "description": "Build only the specified packages", "type": "string" },
70
+ { "name": "--exclude", "description": "Exclude packages from the build", "type": "string" },
71
+ { "name": "--jobs", "short": "-j", "description": "Number of parallel jobs", "type": "number" },
72
+ { "name": "--verbose", "short": "-v", "description": "Use verbose output (-vv for very verbose)" },
73
+ { "name": "--message-format", "description": "Error format (human, json, short)", "type": "string" },
74
+ { "name": "--timings", "description": "Output build timings information" },
75
+ { "name": "--future-incompat-report", "description": "Output a future incompatibility report" }
76
+ ],
77
+ "examples": [
78
+ "cargo build",
79
+ "cargo build --release",
80
+ "cargo build --target x86_64-unknown-linux-musl",
81
+ "cargo build --features \"serde,tokio\"",
82
+ "cargo build --all-features --all-targets",
83
+ "cargo build --no-default-features",
84
+ "cargo build --bin mybin",
85
+ "cargo build --example demo",
86
+ "cargo build -p my-crate --release",
87
+ "cargo build --workspace",
88
+ "cargo build --profile bench",
89
+ "cargo build -j 4",
90
+ "cargo build --timings"
91
+ ]
92
+ },
93
+ {
94
+ "name": "run",
95
+ "description": "Build and execute the main binary of the local package",
96
+ "args": [{ "name": "<args>", "type": "string", "required": false, "description": "Arguments to pass to the binary (after --)" }],
97
+ "options": [
98
+ { "name": "--release", "short": "-r", "description": "Run in release mode with optimizations" },
99
+ { "name": "--profile", "description": "Run with the specified profile", "type": "string" },
100
+ { "name": "--bin", "description": "Run the specified binary", "type": "string" },
101
+ { "name": "--example", "description": "Run the specified example", "type": "string" },
102
+ { "name": "--package", "short": "-p", "description": "Run the specified package's binary", "type": "string" },
103
+ { "name": "--target", "description": "Run for the target triple", "type": "string" },
104
+ { "name": "--features", "short": "-F", "description": "Features to activate", "type": "string" },
105
+ { "name": "--all-features", "description": "Activate all available features" },
106
+ { "name": "--no-default-features", "description": "Do not activate the default feature" },
107
+ { "name": "--jobs", "short": "-j", "description": "Number of parallel jobs", "type": "number" },
108
+ { "name": "--verbose", "short": "-v", "description": "Use verbose output" },
109
+ { "name": "--message-format", "description": "Error format", "type": "string" }
110
+ ],
111
+ "examples": [
112
+ "cargo run",
113
+ "cargo run --release",
114
+ "cargo run -- arg1 arg2",
115
+ "cargo run --bin server",
116
+ "cargo run --example demo",
117
+ "cargo run -p my-crate",
118
+ "cargo run --features \"cli,logging\" -- --verbose"
119
+ ]
120
+ },
121
+ {
122
+ "name": "test",
123
+ "description": "Execute all unit tests, integration tests, and doc tests",
124
+ "args": [
125
+ { "name": "<testname>", "type": "string", "required": false, "description": "Filter tests by name pattern" },
126
+ { "name": "<args>", "type": "string", "required": false, "description": "Arguments to the test binary (after --)" }
127
+ ],
128
+ "options": [
129
+ { "name": "--release", "short": "-r", "description": "Test with release optimizations" },
130
+ { "name": "--profile", "description": "Test with the specified profile", "type": "string" },
131
+ { "name": "--lib", "description": "Test only the library unit tests" },
132
+ { "name": "--bin", "description": "Test only the specified binary", "type": "string" },
133
+ { "name": "--bins", "description": "Test all binaries" },
134
+ { "name": "--test", "description": "Test only the specified integration test", "type": "string" },
135
+ { "name": "--tests", "description": "Test all targets with test = true" },
136
+ { "name": "--example", "description": "Test only the specified example", "type": "string" },
137
+ { "name": "--examples", "description": "Test all examples" },
138
+ { "name": "--doc", "description": "Only run doc tests" },
139
+ { "name": "--bench", "description": "Test only the specified benchmark", "type": "string" },
140
+ { "name": "--benches", "description": "Test all benchmarks" },
141
+ { "name": "--all-targets", "description": "Test all targets" },
142
+ { "name": "--no-run", "description": "Compile but do not run tests" },
143
+ { "name": "--no-fail-fast", "description": "Run all tests regardless of failure" },
144
+ { "name": "--workspace", "description": "Test all members of the workspace" },
145
+ { "name": "--package", "short": "-p", "description": "Test only the specified packages", "type": "string" },
146
+ { "name": "--exclude", "description": "Exclude packages from testing", "type": "string" },
147
+ { "name": "--target", "description": "Test for the target triple", "type": "string" },
148
+ { "name": "--features", "short": "-F", "description": "Features to activate", "type": "string" },
149
+ { "name": "--all-features", "description": "Activate all available features" },
150
+ { "name": "--no-default-features", "description": "Do not activate the default feature" },
151
+ { "name": "--jobs", "short": "-j", "description": "Number of parallel jobs", "type": "number" },
152
+ { "name": "--verbose", "short": "-v", "description": "Use verbose output" },
153
+ { "name": "--message-format", "description": "Error format", "type": "string" },
154
+ { "name": "--future-incompat-report", "description": "Output a future incompatibility report" }
155
+ ],
156
+ "examples": [
157
+ "cargo test",
158
+ "cargo test -- --nocapture",
159
+ "cargo test test_my_function",
160
+ "cargo test --lib",
161
+ "cargo test --doc",
162
+ "cargo test --test integration_tests",
163
+ "cargo test --release",
164
+ "cargo test --workspace",
165
+ "cargo test -p my-crate",
166
+ "cargo test -- --test-threads=1",
167
+ "cargo test -- --ignored",
168
+ "cargo test -- --show-output",
169
+ "cargo test --no-fail-fast",
170
+ "cargo test --features \"test-utils\" -- --exact my_test"
171
+ ]
172
+ },
173
+ {
174
+ "name": "bench",
175
+ "description": "Execute all benchmarks of a local package",
176
+ "args": [
177
+ { "name": "<benchname>", "type": "string", "required": false, "description": "Filter benchmarks by name" },
178
+ { "name": "<args>", "type": "string", "required": false, "description": "Arguments to the benchmark binary (after --)" }
179
+ ],
180
+ "options": [
181
+ { "name": "--bench", "description": "Only the specified benchmark target", "type": "string" },
182
+ { "name": "--benches", "description": "Benchmark all bench targets" },
183
+ { "name": "--lib", "description": "Benchmark only the library" },
184
+ { "name": "--bin", "description": "Benchmark only the specified binary", "type": "string" },
185
+ { "name": "--bins", "description": "Benchmark all binaries" },
186
+ { "name": "--test", "description": "Benchmark only the specified test target", "type": "string" },
187
+ { "name": "--tests", "description": "Benchmark all test targets" },
188
+ { "name": "--all-targets", "description": "Benchmark all targets" },
189
+ { "name": "--no-run", "description": "Compile but do not run benchmarks" },
190
+ { "name": "--workspace", "description": "Benchmark all workspace members" },
191
+ { "name": "--package", "short": "-p", "description": "Benchmark only the specified packages", "type": "string" },
192
+ { "name": "--features", "short": "-F", "description": "Features to activate", "type": "string" },
193
+ { "name": "--all-features", "description": "Activate all available features" },
194
+ { "name": "--no-default-features", "description": "Do not activate the default feature" },
195
+ { "name": "--target", "description": "Benchmark for the target triple", "type": "string" },
196
+ { "name": "--jobs", "short": "-j", "description": "Number of parallel jobs", "type": "number" },
197
+ { "name": "--verbose", "short": "-v", "description": "Use verbose output" }
198
+ ],
199
+ "examples": [
200
+ "cargo bench",
201
+ "cargo bench my_benchmark",
202
+ "cargo bench --bench bench_main",
203
+ "cargo bench --workspace",
204
+ "cargo bench -p my-crate"
205
+ ]
206
+ },
207
+ {
208
+ "name": "check",
209
+ "description": "Analyze the current package and report errors without producing output binary",
210
+ "args": [{ "name": "<spec>", "type": "string", "required": false, "description": "Package specification" }],
211
+ "options": [
212
+ { "name": "--release", "short": "-r", "description": "Check in release mode" },
213
+ { "name": "--profile", "description": "Check with the specified profile", "type": "string" },
214
+ { "name": "--lib", "description": "Check only the library" },
215
+ { "name": "--bin", "description": "Check only the specified binary", "type": "string" },
216
+ { "name": "--bins", "description": "Check all binaries" },
217
+ { "name": "--test", "description": "Check only the specified test target", "type": "string" },
218
+ { "name": "--tests", "description": "Check all test targets" },
219
+ { "name": "--example", "description": "Check only the specified example", "type": "string" },
220
+ { "name": "--examples", "description": "Check all examples" },
221
+ { "name": "--bench", "description": "Check only the specified benchmark", "type": "string" },
222
+ { "name": "--benches", "description": "Check all benchmarks" },
223
+ { "name": "--all-targets", "description": "Check all targets" },
224
+ { "name": "--workspace", "description": "Check all workspace members" },
225
+ { "name": "--package", "short": "-p", "description": "Check only the specified packages", "type": "string" },
226
+ { "name": "--exclude", "description": "Exclude packages", "type": "string" },
227
+ { "name": "--target", "description": "Check for the target triple", "type": "string" },
228
+ { "name": "--features", "short": "-F", "description": "Features to activate", "type": "string" },
229
+ { "name": "--all-features", "description": "Activate all available features" },
230
+ { "name": "--no-default-features", "description": "Do not activate the default feature" },
231
+ { "name": "--jobs", "short": "-j", "description": "Number of parallel jobs", "type": "number" },
232
+ { "name": "--verbose", "short": "-v", "description": "Use verbose output" },
233
+ { "name": "--message-format", "description": "Error format", "type": "string" },
234
+ { "name": "--future-incompat-report", "description": "Output a future incompatibility report" }
235
+ ],
236
+ "examples": [
237
+ "cargo check",
238
+ "cargo check --all-targets",
239
+ "cargo check --workspace",
240
+ "cargo check -p my-crate",
241
+ "cargo check --message-format=json",
242
+ "cargo check --target wasm32-unknown-unknown"
243
+ ]
244
+ },
245
+ {
246
+ "name": "clean",
247
+ "description": "Remove artifacts that cargo has generated in the past",
248
+ "options": [
249
+ { "name": "--release", "description": "Remove only release artifacts" },
250
+ { "name": "--profile", "description": "Remove artifacts for the specified profile", "type": "string" },
251
+ { "name": "--target", "description": "Remove artifacts for the target triple", "type": "string" },
252
+ { "name": "--target-dir", "description": "Directory for generated artifacts", "type": "path" },
253
+ { "name": "--package", "short": "-p", "description": "Clean only the specified packages", "type": "string" },
254
+ { "name": "--doc", "description": "Remove only doc artifacts" },
255
+ { "name": "--verbose", "short": "-v", "description": "Use verbose output" }
256
+ ],
257
+ "examples": [
258
+ "cargo clean",
259
+ "cargo clean --release",
260
+ "cargo clean -p my-crate",
261
+ "cargo clean --doc",
262
+ "cargo clean --target x86_64-unknown-linux-musl"
263
+ ]
264
+ },
265
+ {
266
+ "name": "doc",
267
+ "description": "Build this package's and its dependencies' documentation",
268
+ "options": [
269
+ { "name": "--open", "description": "Open the docs in a browser after building" },
270
+ { "name": "--no-deps", "description": "Do not build documentation for dependencies" },
271
+ { "name": "--document-private-items", "description": "Document private items" },
272
+ { "name": "--lib", "description": "Document only the library" },
273
+ { "name": "--bin", "description": "Document only the specified binary", "type": "string" },
274
+ { "name": "--bins", "description": "Document all binaries" },
275
+ { "name": "--workspace", "description": "Document all workspace members" },
276
+ { "name": "--package", "short": "-p", "description": "Document only the specified packages", "type": "string" },
277
+ { "name": "--exclude", "description": "Exclude packages", "type": "string" },
278
+ { "name": "--release", "short": "-r", "description": "Document in release mode" },
279
+ { "name": "--target", "description": "Document for the target triple", "type": "string" },
280
+ { "name": "--features", "short": "-F", "description": "Features to activate", "type": "string" },
281
+ { "name": "--all-features", "description": "Activate all available features" },
282
+ { "name": "--no-default-features", "description": "Do not activate the default feature" },
283
+ { "name": "--jobs", "short": "-j", "description": "Number of parallel jobs", "type": "number" },
284
+ { "name": "--verbose", "short": "-v", "description": "Use verbose output" }
285
+ ],
286
+ "examples": [
287
+ "cargo doc",
288
+ "cargo doc --open",
289
+ "cargo doc --no-deps",
290
+ "cargo doc --document-private-items",
291
+ "cargo doc --workspace --no-deps",
292
+ "cargo doc -p my-crate --open"
293
+ ]
294
+ },
295
+ {
296
+ "name": "publish",
297
+ "description": "Upload a package to the registry (crates.io by default)",
298
+ "options": [
299
+ { "name": "--dry-run", "description": "Perform all checks without uploading" },
300
+ { "name": "--token", "description": "API token to use for authentication", "type": "string" },
301
+ { "name": "--registry", "description": "Registry to publish to", "type": "string" },
302
+ { "name": "--allow-dirty", "description": "Allow publishing with uncommitted changes" },
303
+ { "name": "--no-verify", "description": "Do not verify the contents by building them" },
304
+ { "name": "--package", "short": "-p", "description": "Package to publish", "type": "string" },
305
+ { "name": "--target", "description": "Build for the target triple", "type": "string" },
306
+ { "name": "--features", "short": "-F", "description": "Features to activate", "type": "string" },
307
+ { "name": "--all-features", "description": "Activate all available features" },
308
+ { "name": "--no-default-features", "description": "Do not activate the default feature" },
309
+ { "name": "--jobs", "short": "-j", "description": "Number of parallel jobs", "type": "number" },
310
+ { "name": "--verbose", "short": "-v", "description": "Use verbose output" }
311
+ ],
312
+ "examples": [
313
+ "cargo publish",
314
+ "cargo publish --dry-run",
315
+ "cargo publish --allow-dirty",
316
+ "cargo publish --token $CARGO_REGISTRY_TOKEN",
317
+ "cargo publish --registry my-registry",
318
+ "cargo publish -p my-crate"
319
+ ]
320
+ },
321
+ {
322
+ "name": "install",
323
+ "description": "Build and install a Rust binary crate",
324
+ "args": [{ "name": "<crate>", "type": "string", "required": false, "description": "Crate to install (omit for current directory)" }],
325
+ "options": [
326
+ { "name": "--version", "description": "Specify a version to install", "type": "string" },
327
+ { "name": "--git", "description": "Install from a git URL", "type": "string" },
328
+ { "name": "--branch", "description": "Branch to use when installing from git", "type": "string" },
329
+ { "name": "--tag", "description": "Tag to use when installing from git", "type": "string" },
330
+ { "name": "--rev", "description": "Specific commit to use when installing from git", "type": "string" },
331
+ { "name": "--path", "description": "Install from a local filesystem path", "type": "path" },
332
+ { "name": "--root", "description": "Installation directory", "type": "path" },
333
+ { "name": "--bin", "description": "Install only the specified binary", "type": "string" },
334
+ { "name": "--bins", "description": "Install all binaries" },
335
+ { "name": "--example", "description": "Install only the specified example", "type": "string" },
336
+ { "name": "--examples", "description": "Install all examples" },
337
+ { "name": "--force", "short": "-f", "description": "Force overwriting existing crates or binaries" },
338
+ { "name": "--no-track", "description": "Do not save tracking information" },
339
+ { "name": "--locked", "description": "Require Cargo.lock is up to date" },
340
+ { "name": "--frozen", "description": "Require Cargo.lock and cache are up to date" },
341
+ { "name": "--features", "short": "-F", "description": "Features to activate", "type": "string" },
342
+ { "name": "--all-features", "description": "Activate all available features" },
343
+ { "name": "--no-default-features", "description": "Do not activate the default feature" },
344
+ { "name": "--target", "description": "Build for the target triple", "type": "string" },
345
+ { "name": "--profile", "description": "Build with the specified profile", "type": "string" },
346
+ { "name": "--jobs", "short": "-j", "description": "Number of parallel jobs", "type": "number" },
347
+ { "name": "--verbose", "short": "-v", "description": "Use verbose output" },
348
+ { "name": "--list", "description": "List all installed packages and their versions" }
349
+ ],
350
+ "examples": [
351
+ "cargo install ripgrep",
352
+ "cargo install cargo-edit",
353
+ "cargo install cargo-watch",
354
+ "cargo install --version 0.9.0 tokio-console",
355
+ "cargo install --git https://github.com/user/repo",
356
+ "cargo install --path .",
357
+ "cargo install --force cargo-audit",
358
+ "cargo install --locked my-tool",
359
+ "cargo install --list"
360
+ ]
361
+ },
362
+ {
363
+ "name": "uninstall",
364
+ "description": "Remove a Rust binary installed with cargo install",
365
+ "args": [{ "name": "<spec>", "type": "string", "required": true, "description": "Package specification to uninstall" }],
366
+ "options": [
367
+ { "name": "--bin", "description": "Only uninstall the specified binary", "type": "string" },
368
+ { "name": "--root", "description": "Directory to uninstall from", "type": "path" },
369
+ { "name": "--verbose", "short": "-v", "description": "Use verbose output" }
370
+ ],
371
+ "examples": [
372
+ "cargo uninstall ripgrep",
373
+ "cargo uninstall cargo-edit",
374
+ "cargo uninstall --bin mybin my-crate"
375
+ ]
376
+ },
377
+ {
378
+ "name": "search",
379
+ "description": "Search packages in crates.io",
380
+ "args": [{ "name": "<query>", "type": "string", "required": true, "description": "Search query string" }],
381
+ "options": [
382
+ { "name": "--limit", "description": "Maximum number of results to display", "type": "number" },
383
+ { "name": "--registry", "description": "Registry to search", "type": "string" },
384
+ { "name": "--verbose", "short": "-v", "description": "Use verbose output" }
385
+ ],
386
+ "examples": [
387
+ "cargo search serde",
388
+ "cargo search async runtime",
389
+ "cargo search http client --limit 20",
390
+ "cargo search --registry my-registry my-crate"
391
+ ]
392
+ },
393
+ {
394
+ "name": "update",
395
+ "description": "Update dependencies as recorded in the local lock file",
396
+ "options": [
397
+ { "name": "--package", "short": "-p", "description": "Update only the specified packages", "type": "string" },
398
+ { "name": "--aggressive", "description": "Force updating all dependencies of the specified packages" },
399
+ { "name": "--precise", "description": "Update a single dependency to exactly the specified version", "type": "string" },
400
+ { "name": "--workspace", "description": "Only update workspace members" },
401
+ { "name": "--dry-run", "description": "Show what would be updated without actually updating" },
402
+ { "name": "--verbose", "short": "-v", "description": "Use verbose output" }
403
+ ],
404
+ "examples": [
405
+ "cargo update",
406
+ "cargo update -p serde",
407
+ "cargo update -p serde --precise 1.0.150",
408
+ "cargo update --workspace",
409
+ "cargo update --dry-run",
410
+ "cargo update -p tokio --aggressive"
411
+ ]
412
+ },
413
+ {
414
+ "name": "add",
415
+ "description": "Add dependencies to a Cargo.toml manifest file",
416
+ "args": [{ "name": "<dep>", "type": "string", "required": true, "description": "Dependency specification (name, name@version, or URL)" }],
417
+ "options": [
418
+ { "name": "--dev", "short": "-D", "description": "Add as a development dependency" },
419
+ { "name": "--build", "short": "-B", "description": "Add as a build dependency" },
420
+ { "name": "--rename", "description": "Rename the dependency", "type": "string" },
421
+ { "name": "--optional", "description": "Mark the dependency as optional" },
422
+ { "name": "--no-optional", "description": "Mark the dependency as required" },
423
+ { "name": "--features", "short": "-F", "description": "Space or comma-separated features to activate", "type": "string" },
424
+ { "name": "--no-default-features", "description": "Disable the default features" },
425
+ { "name": "--default-features", "description": "Re-enable the default features" },
426
+ { "name": "--path", "description": "Filesystem path to local crate", "type": "path" },
427
+ { "name": "--git", "description": "Git URL of the crate", "type": "string" },
428
+ { "name": "--branch", "description": "Git branch", "type": "string" },
429
+ { "name": "--tag", "description": "Git tag", "type": "string" },
430
+ { "name": "--rev", "description": "Git commit hash", "type": "string" },
431
+ { "name": "--registry", "description": "Registry to use", "type": "string" },
432
+ { "name": "--package", "short": "-p", "description": "Package to modify", "type": "string" },
433
+ { "name": "--dry-run", "description": "Show what would be added without actually modifying Cargo.toml" },
434
+ { "name": "--verbose", "short": "-v", "description": "Use verbose output" }
435
+ ],
436
+ "examples": [
437
+ "cargo add serde",
438
+ "cargo add serde@1.0",
439
+ "cargo add serde -F derive",
440
+ "cargo add tokio --features full",
441
+ "cargo add -D pretty_assertions",
442
+ "cargo add -B cc",
443
+ "cargo add --optional wasm-bindgen",
444
+ "cargo add --rename my_serde serde",
445
+ "cargo add --path ../my-local-crate",
446
+ "cargo add --git https://github.com/serde-rs/serde --branch master",
447
+ "cargo add serde serde_json tokio",
448
+ "cargo add --dry-run some-crate"
449
+ ]
450
+ },
451
+ {
452
+ "name": "remove",
453
+ "description": "Remove dependencies from a Cargo.toml manifest file",
454
+ "args": [{ "name": "<dep>", "type": "string", "required": true, "description": "Dependencies to remove" }],
455
+ "options": [
456
+ { "name": "--dev", "short": "-D", "description": "Remove from dev-dependencies" },
457
+ { "name": "--build", "short": "-B", "description": "Remove from build-dependencies" },
458
+ { "name": "--package", "short": "-p", "description": "Package to remove dependency from", "type": "string" },
459
+ { "name": "--dry-run", "description": "Show what would be removed without modifying Cargo.toml" },
460
+ { "name": "--verbose", "short": "-v", "description": "Use verbose output" }
461
+ ],
462
+ "examples": [
463
+ "cargo remove serde",
464
+ "cargo remove -D pretty_assertions",
465
+ "cargo remove -B cc",
466
+ "cargo remove serde serde_json",
467
+ "cargo remove -p my-crate tokio"
468
+ ]
469
+ },
470
+ {
471
+ "name": "tree",
472
+ "description": "Display a tree visualization of the dependency graph",
473
+ "options": [
474
+ { "name": "--depth", "description": "Maximum depth of the dependency tree", "type": "number" },
475
+ { "name": "--invert", "short": "-i", "description": "Invert the tree direction (show what depends on a package)", "type": "string" },
476
+ { "name": "--no-dedupe", "description": "Do not de-duplicate repeated dependencies" },
477
+ { "name": "--duplicates", "short": "-d", "description": "Show packages with multiple versions only" },
478
+ { "name": "--edges", "short": "-e", "description": "Edge types to display (normal, dev, build, all, features, no-dev, no-build, no-normal)", "type": "string" },
479
+ { "name": "--target", "description": "Filter by target triple", "type": "string" },
480
+ { "name": "--format", "short": "-f", "description": "Format string for each package line", "type": "string" },
481
+ { "name": "--prefix", "description": "Tree prefix (indent, depth, none)", "type": "string" },
482
+ { "name": "--workspace", "description": "Display all workspace members" },
483
+ { "name": "--package", "short": "-p", "description": "Display for the specified packages", "type": "string" },
484
+ { "name": "--features", "short": "-F", "description": "Features to activate", "type": "string" },
485
+ { "name": "--all-features", "description": "Activate all available features" },
486
+ { "name": "--no-default-features", "description": "Do not activate the default feature" },
487
+ { "name": "--verbose", "short": "-v", "description": "Use verbose output" }
488
+ ],
489
+ "examples": [
490
+ "cargo tree",
491
+ "cargo tree --depth 1",
492
+ "cargo tree -i serde",
493
+ "cargo tree -d",
494
+ "cargo tree -e features",
495
+ "cargo tree -e no-dev",
496
+ "cargo tree --format \"{p} {f}\"",
497
+ "cargo tree -p my-crate"
498
+ ]
499
+ },
500
+ {
501
+ "name": "metadata",
502
+ "description": "Output resolved dependencies of a package in machine-readable JSON format",
503
+ "options": [
504
+ { "name": "--format-version", "description": "Format version (currently only 1)", "type": "number" },
505
+ { "name": "--no-deps", "description": "Output only workspace members without fetching dependencies" },
506
+ { "name": "--filter-platform", "description": "Only include dependencies for the given target", "type": "string" },
507
+ { "name": "--features", "short": "-F", "description": "Features to activate", "type": "string" },
508
+ { "name": "--all-features", "description": "Activate all available features" },
509
+ { "name": "--no-default-features", "description": "Do not activate the default feature" },
510
+ { "name": "--verbose", "short": "-v", "description": "Use verbose output" }
511
+ ],
512
+ "examples": [
513
+ "cargo metadata",
514
+ "cargo metadata --format-version 1",
515
+ "cargo metadata --no-deps",
516
+ "cargo metadata --format-version 1 --no-deps",
517
+ "cargo metadata --filter-platform x86_64-unknown-linux-gnu"
518
+ ]
519
+ },
520
+ {
521
+ "name": "fix",
522
+ "description": "Automatically fix lint warnings reported by rustc and clippy",
523
+ "options": [
524
+ { "name": "--edition", "description": "Fix code to be compatible with the next edition" },
525
+ { "name": "--edition-idioms", "description": "Fix code to use the current edition idioms" },
526
+ { "name": "--broken-code", "description": "Fix code even if it will not compile after fixes" },
527
+ { "name": "--allow-dirty", "description": "Allow fixing with uncommitted changes" },
528
+ { "name": "--allow-staged", "description": "Allow fixing with staged changes" },
529
+ { "name": "--allow-no-vcs", "description": "Allow fixing without version control" },
530
+ { "name": "--lib", "description": "Fix only the library" },
531
+ { "name": "--bin", "description": "Fix only the specified binary", "type": "string" },
532
+ { "name": "--bins", "description": "Fix all binaries" },
533
+ { "name": "--test", "description": "Fix only the specified test target", "type": "string" },
534
+ { "name": "--tests", "description": "Fix all test targets" },
535
+ { "name": "--example", "description": "Fix only the specified example", "type": "string" },
536
+ { "name": "--examples", "description": "Fix all examples" },
537
+ { "name": "--all-targets", "description": "Fix all targets" },
538
+ { "name": "--workspace", "description": "Fix all workspace members" },
539
+ { "name": "--package", "short": "-p", "description": "Fix only the specified packages", "type": "string" },
540
+ { "name": "--target", "description": "Fix for the target triple", "type": "string" },
541
+ { "name": "--features", "short": "-F", "description": "Features to activate", "type": "string" },
542
+ { "name": "--all-features", "description": "Activate all available features" },
543
+ { "name": "--no-default-features", "description": "Do not activate the default feature" },
544
+ { "name": "--jobs", "short": "-j", "description": "Number of parallel jobs", "type": "number" },
545
+ { "name": "--verbose", "short": "-v", "description": "Use verbose output" }
546
+ ],
547
+ "examples": [
548
+ "cargo fix",
549
+ "cargo fix --edition",
550
+ "cargo fix --edition-idioms",
551
+ "cargo fix --allow-dirty",
552
+ "cargo fix --allow-staged",
553
+ "cargo fix --broken-code --allow-dirty",
554
+ "cargo fix --workspace",
555
+ "cargo fix --all-targets"
556
+ ]
557
+ },
558
+ {
559
+ "name": "clippy",
560
+ "description": "Run Clippy lints on the current package",
561
+ "options": [
562
+ { "name": "--fix", "description": "Automatically apply Clippy suggestions" },
563
+ { "name": "--allow-dirty", "description": "Allow fixing with uncommitted changes (used with --fix)" },
564
+ { "name": "--allow-staged", "description": "Allow fixing with staged changes (used with --fix)" },
565
+ { "name": "--no-deps", "description": "Do not lint dependencies" },
566
+ { "name": "--lib", "description": "Lint only the library" },
567
+ { "name": "--bin", "description": "Lint only the specified binary", "type": "string" },
568
+ { "name": "--bins", "description": "Lint all binaries" },
569
+ { "name": "--test", "description": "Lint only the specified test target", "type": "string" },
570
+ { "name": "--tests", "description": "Lint all test targets" },
571
+ { "name": "--example", "description": "Lint only the specified example", "type": "string" },
572
+ { "name": "--examples", "description": "Lint all examples" },
573
+ { "name": "--bench", "description": "Lint only the specified benchmark", "type": "string" },
574
+ { "name": "--benches", "description": "Lint all benchmarks" },
575
+ { "name": "--all-targets", "description": "Lint all targets" },
576
+ { "name": "--workspace", "description": "Lint all workspace members" },
577
+ { "name": "--package", "short": "-p", "description": "Lint only the specified packages", "type": "string" },
578
+ { "name": "--exclude", "description": "Exclude packages", "type": "string" },
579
+ { "name": "--release", "short": "-r", "description": "Lint in release mode" },
580
+ { "name": "--profile", "description": "Lint with the specified profile", "type": "string" },
581
+ { "name": "--target", "description": "Lint for the target triple", "type": "string" },
582
+ { "name": "--features", "short": "-F", "description": "Features to activate", "type": "string" },
583
+ { "name": "--all-features", "description": "Activate all available features" },
584
+ { "name": "--no-default-features", "description": "Do not activate the default feature" },
585
+ { "name": "--jobs", "short": "-j", "description": "Number of parallel jobs", "type": "number" },
586
+ { "name": "--verbose", "short": "-v", "description": "Use verbose output" },
587
+ { "name": "--message-format", "description": "Error format", "type": "string" }
588
+ ],
589
+ "examples": [
590
+ "cargo clippy",
591
+ "cargo clippy -- -D warnings",
592
+ "cargo clippy -- -W clippy::pedantic",
593
+ "cargo clippy -- -A clippy::needless_return",
594
+ "cargo clippy --fix",
595
+ "cargo clippy --fix --allow-dirty",
596
+ "cargo clippy --all-targets --all-features",
597
+ "cargo clippy --workspace",
598
+ "cargo clippy -p my-crate",
599
+ "cargo clippy --message-format=short"
600
+ ]
601
+ },
602
+ {
603
+ "name": "fmt",
604
+ "description": "Format all Rust files of the current crate using rustfmt",
605
+ "args": [{ "name": "<files>", "type": "file", "required": false, "description": "Specific files to format" }],
606
+ "options": [
607
+ { "name": "--check", "description": "Check formatting without modifying files (exit with error if unformatted)" },
608
+ { "name": "--all", "description": "Format all packages in the workspace" },
609
+ { "name": "--package", "short": "-p", "description": "Format only the specified packages", "type": "string" },
610
+ { "name": "--manifest-path", "description": "Path to Cargo.toml", "type": "path" },
611
+ { "name": "--verbose", "short": "-v", "description": "Use verbose output" },
612
+ { "name": "--message-format", "description": "Format message output (human, short)", "type": "string" }
613
+ ],
614
+ "examples": [
615
+ "cargo fmt",
616
+ "cargo fmt --check",
617
+ "cargo fmt --all",
618
+ "cargo fmt -p my-crate",
619
+ "cargo fmt -- --config max_width=120",
620
+ "cargo fmt -- --edition 2021"
621
+ ]
622
+ },
623
+ {
624
+ "name": "audit",
625
+ "description": "Audit Cargo.lock for crates with security vulnerabilities (requires cargo-audit)",
626
+ "options": [
627
+ { "name": "--db", "description": "Path to the advisory database", "type": "path" },
628
+ { "name": "--deny", "description": "Exit with an error if any vulnerabilities are found matching category", "type": "string" },
629
+ { "name": "--ignore", "description": "Advisory ID to ignore", "type": "string" },
630
+ { "name": "--json", "description": "Output results as JSON" },
631
+ { "name": "--stale", "description": "Allow stale advisory database" },
632
+ { "name": "--no-fetch", "description": "Do not fetch the advisory database" },
633
+ { "name": "--target-arch", "description": "Filter for target architecture", "type": "string" },
634
+ { "name": "--target-os", "description": "Filter for target operating system", "type": "string" },
635
+ { "name": "--file", "short": "-f", "description": "Path to Cargo.lock file", "type": "path" },
636
+ { "name": "--verbose", "short": "-v", "description": "Use verbose output" }
637
+ ],
638
+ "examples": [
639
+ "cargo audit",
640
+ "cargo audit --json",
641
+ "cargo audit --ignore RUSTSEC-2020-0000",
642
+ "cargo audit --deny warnings",
643
+ "cargo audit --no-fetch",
644
+ "cargo audit -f /path/to/Cargo.lock"
645
+ ]
646
+ },
647
+ {
648
+ "name": "outdated",
649
+ "description": "Display when newer versions of dependencies are available (requires cargo-outdated)",
650
+ "options": [
651
+ { "name": "--root-deps-only", "short": "-R", "description": "Only check root dependencies" },
652
+ { "name": "--workspace", "short": "-w", "description": "Check all workspace members" },
653
+ { "name": "--depth", "short": "-d", "description": "How deep in the dependency chain to search", "type": "number" },
654
+ { "name": "--format", "description": "Output format (list, json)", "type": "string" },
655
+ { "name": "--exclude", "short": "-x", "description": "Exclude specific dependencies", "type": "string" },
656
+ { "name": "--ignore", "description": "Ignore a specific dependency", "type": "string" },
657
+ { "name": "--aggressive", "description": "Ignore the SemVer compatibility and check for the latest version" },
658
+ { "name": "--verbose", "short": "-v", "description": "Use verbose output" }
659
+ ],
660
+ "examples": [
661
+ "cargo outdated",
662
+ "cargo outdated -R",
663
+ "cargo outdated --depth 1",
664
+ "cargo outdated --format json",
665
+ "cargo outdated --workspace",
666
+ "cargo outdated --exclude serde"
667
+ ]
668
+ },
669
+ {
670
+ "name": "vendor",
671
+ "description": "Vendor all dependencies locally into a directory",
672
+ "args": [{ "name": "<path>", "type": "path", "required": false, "description": "Destination directory (defaults to 'vendor')" }],
673
+ "options": [
674
+ { "name": "--manifest-path", "description": "Path to Cargo.toml", "type": "path" },
675
+ { "name": "--no-delete", "description": "Do not delete older crates in the vendor directory" },
676
+ { "name": "--respect-source-config", "description": "Respect source replacement configuration" },
677
+ { "name": "--versioned-dirs", "description": "Use versioned subdirectories for crates" },
678
+ { "name": "--sync", "short": "-s", "description": "Additional Cargo.toml to sync", "type": "path" },
679
+ { "name": "--verbose", "short": "-v", "description": "Use verbose output" }
680
+ ],
681
+ "examples": [
682
+ "cargo vendor",
683
+ "cargo vendor third-party",
684
+ "cargo vendor --versioned-dirs",
685
+ "cargo vendor -s ../other_project/Cargo.toml"
686
+ ]
687
+ },
688
+ {
689
+ "name": "generate-lockfile",
690
+ "description": "Generate the lockfile without building anything",
691
+ "options": [
692
+ { "name": "--manifest-path", "description": "Path to Cargo.toml", "type": "path" },
693
+ { "name": "--verbose", "short": "-v", "description": "Use verbose output" }
694
+ ],
695
+ "examples": [
696
+ "cargo generate-lockfile"
697
+ ]
698
+ },
699
+ {
700
+ "name": "package",
701
+ "description": "Assemble the local package into a distributable tarball",
702
+ "options": [
703
+ { "name": "--list", "short": "-l", "description": "Print files included in the package" },
704
+ { "name": "--no-verify", "description": "Do not verify the contents by building them" },
705
+ { "name": "--no-metadata", "description": "Ignore warnings about missing metadata" },
706
+ { "name": "--allow-dirty", "description": "Allow packaging with uncommitted changes" },
707
+ { "name": "--target", "description": "Package for the target triple", "type": "string" },
708
+ { "name": "--target-dir", "description": "Directory for generated artifacts", "type": "path" },
709
+ { "name": "--package", "short": "-p", "description": "Package to assemble", "type": "string" },
710
+ { "name": "--workspace", "description": "Package all workspace members" },
711
+ { "name": "--exclude", "description": "Exclude packages", "type": "string" },
712
+ { "name": "--features", "short": "-F", "description": "Features to activate", "type": "string" },
713
+ { "name": "--all-features", "description": "Activate all available features" },
714
+ { "name": "--no-default-features", "description": "Do not activate the default feature" },
715
+ { "name": "--jobs", "short": "-j", "description": "Number of parallel jobs", "type": "number" },
716
+ { "name": "--verbose", "short": "-v", "description": "Use verbose output" }
717
+ ],
718
+ "examples": [
719
+ "cargo package",
720
+ "cargo package --list",
721
+ "cargo package --allow-dirty",
722
+ "cargo package --no-verify",
723
+ "cargo package -p my-crate"
724
+ ]
725
+ },
726
+ {
727
+ "name": "login",
728
+ "description": "Save an API token to the local credential store",
729
+ "args": [{ "name": "<token>", "type": "string", "required": false, "description": "API token (reads from stdin if not provided)" }],
730
+ "options": [
731
+ { "name": "--registry", "description": "Registry to authenticate with", "type": "string" },
732
+ { "name": "--verbose", "short": "-v", "description": "Use verbose output" }
733
+ ],
734
+ "examples": [
735
+ "cargo login",
736
+ "cargo login mytoken123",
737
+ "cargo login --registry my-registry"
738
+ ]
739
+ },
740
+ {
741
+ "name": "logout",
742
+ "description": "Remove an API token from the local credential store",
743
+ "options": [
744
+ { "name": "--registry", "description": "Registry to remove credentials for", "type": "string" },
745
+ { "name": "--verbose", "short": "-v", "description": "Use verbose output" }
746
+ ],
747
+ "examples": [
748
+ "cargo logout",
749
+ "cargo logout --registry my-registry"
750
+ ]
751
+ },
752
+ {
753
+ "name": "owner",
754
+ "description": "Manage the owners of a crate on the registry",
755
+ "args": [{ "name": "<crate>", "type": "string", "required": false, "description": "Crate name" }],
756
+ "options": [
757
+ { "name": "--add", "short": "-a", "description": "Name of a user or team to invite as an owner", "type": "string" },
758
+ { "name": "--remove", "short": "-r", "description": "Name of a user or team to remove as an owner", "type": "string" },
759
+ { "name": "--list", "short": "-l", "description": "List owners of a crate" },
760
+ { "name": "--token", "description": "API token to use", "type": "string" },
761
+ { "name": "--registry", "description": "Registry to use", "type": "string" },
762
+ { "name": "--verbose", "short": "-v", "description": "Use verbose output" }
763
+ ],
764
+ "examples": [
765
+ "cargo owner --list my-crate",
766
+ "cargo owner --add github:my-org:my-team my-crate",
767
+ "cargo owner --remove user123 my-crate"
768
+ ]
769
+ },
770
+ {
771
+ "name": "yank",
772
+ "description": "Remove a pushed crate from the index (does not delete the crate)",
773
+ "args": [{ "name": "<crate>", "type": "string", "required": false, "description": "Crate name" }],
774
+ "options": [
775
+ { "name": "--version", "description": "Version to yank", "type": "string" },
776
+ { "name": "--undo", "description": "Undo a yank, putting the version back into the index" },
777
+ { "name": "--token", "description": "API token to use", "type": "string" },
778
+ { "name": "--registry", "description": "Registry to use", "type": "string" },
779
+ { "name": "--verbose", "short": "-v", "description": "Use verbose output" }
780
+ ],
781
+ "examples": [
782
+ "cargo yank --version 1.0.0 my-crate",
783
+ "cargo yank --version 1.0.0 --undo my-crate"
784
+ ]
785
+ },
786
+ {
787
+ "name": "fetch",
788
+ "description": "Fetch dependencies of a package from the network",
789
+ "options": [
790
+ { "name": "--target", "description": "Fetch dependencies for the target triple", "type": "string" },
791
+ { "name": "--manifest-path", "description": "Path to Cargo.toml", "type": "path" },
792
+ { "name": "--verbose", "short": "-v", "description": "Use verbose output" }
793
+ ],
794
+ "examples": [
795
+ "cargo fetch",
796
+ "cargo fetch --target x86_64-unknown-linux-gnu"
797
+ ]
798
+ },
799
+ {
800
+ "name": "locate-project",
801
+ "description": "Print the path to the Cargo.toml manifest file",
802
+ "options": [
803
+ { "name": "--workspace", "description": "Locate the root workspace Cargo.toml" },
804
+ { "name": "--message-format", "description": "Output format (json, plain)", "type": "string" },
805
+ { "name": "--manifest-path", "description": "Path to a Cargo.toml", "type": "path" },
806
+ { "name": "--verbose", "short": "-v", "description": "Use verbose output" }
807
+ ],
808
+ "examples": [
809
+ "cargo locate-project",
810
+ "cargo locate-project --workspace",
811
+ "cargo locate-project --message-format plain"
812
+ ]
813
+ },
814
+ {
815
+ "name": "verify-project",
816
+ "description": "Check the correctness of a Cargo.toml manifest",
817
+ "options": [
818
+ { "name": "--manifest-path", "description": "Path to Cargo.toml", "type": "path" },
819
+ { "name": "--verbose", "short": "-v", "description": "Use verbose output" }
820
+ ],
821
+ "examples": [
822
+ "cargo verify-project"
823
+ ]
824
+ },
825
+ {
826
+ "name": "version",
827
+ "description": "Show version information for cargo",
828
+ "options": [
829
+ { "name": "--verbose", "short": "-v", "description": "Show extra version information" }
830
+ ],
831
+ "examples": [
832
+ "cargo version",
833
+ "cargo version --verbose"
834
+ ]
835
+ },
836
+ {
837
+ "name": "rustc",
838
+ "description": "Compile the current package and pass extra flags to the compiler",
839
+ "args": [{ "name": "<args>", "type": "string", "required": false, "description": "Extra flags passed to rustc (after --)" }],
840
+ "options": [
841
+ { "name": "--release", "short": "-r", "description": "Build in release mode" },
842
+ { "name": "--profile", "description": "Build with the specified profile", "type": "string" },
843
+ { "name": "--lib", "description": "Build only the library" },
844
+ { "name": "--bin", "description": "Build only the specified binary", "type": "string" },
845
+ { "name": "--bins", "description": "Build all binaries" },
846
+ { "name": "--test", "description": "Build only the specified test target", "type": "string" },
847
+ { "name": "--tests", "description": "Build all test targets" },
848
+ { "name": "--example", "description": "Build only the specified example", "type": "string" },
849
+ { "name": "--examples", "description": "Build all examples" },
850
+ { "name": "--bench", "description": "Build only the specified benchmark", "type": "string" },
851
+ { "name": "--benches", "description": "Build all benchmarks" },
852
+ { "name": "--all-targets", "description": "Build all targets" },
853
+ { "name": "--target", "description": "Build for the target triple", "type": "string" },
854
+ { "name": "--features", "short": "-F", "description": "Features to activate", "type": "string" },
855
+ { "name": "--all-features", "description": "Activate all available features" },
856
+ { "name": "--no-default-features", "description": "Do not activate the default feature" },
857
+ { "name": "--package", "short": "-p", "description": "Package to build", "type": "string" },
858
+ { "name": "--jobs", "short": "-j", "description": "Number of parallel jobs", "type": "number" },
859
+ { "name": "--verbose", "short": "-v", "description": "Use verbose output" },
860
+ { "name": "--print", "description": "Output compiler information without compiling", "type": "string" }
861
+ ],
862
+ "examples": [
863
+ "cargo rustc -- -D warnings",
864
+ "cargo rustc --lib -- --emit=llvm-ir",
865
+ "cargo rustc --release -- -C target-cpu=native",
866
+ "cargo rustc -- --print cfg",
867
+ "cargo rustc --print native-static-libs",
868
+ "cargo rustc -- -C link-arg=-s"
869
+ ]
870
+ },
871
+ {
872
+ "name": "rustdoc",
873
+ "description": "Build a package's documentation, passing extra flags to rustdoc",
874
+ "args": [{ "name": "<args>", "type": "string", "required": false, "description": "Extra flags passed to rustdoc (after --)" }],
875
+ "options": [
876
+ { "name": "--open", "description": "Open documentation in a browser" },
877
+ { "name": "--lib", "description": "Document only the library" },
878
+ { "name": "--bin", "description": "Document only the specified binary", "type": "string" },
879
+ { "name": "--bins", "description": "Document all binaries" },
880
+ { "name": "--test", "description": "Document only the specified test target", "type": "string" },
881
+ { "name": "--tests", "description": "Document all test targets" },
882
+ { "name": "--example", "description": "Document only the specified example", "type": "string" },
883
+ { "name": "--examples", "description": "Document all examples" },
884
+ { "name": "--release", "short": "-r", "description": "Document in release mode" },
885
+ { "name": "--target", "description": "Document for the target triple", "type": "string" },
886
+ { "name": "--features", "short": "-F", "description": "Features to activate", "type": "string" },
887
+ { "name": "--all-features", "description": "Activate all available features" },
888
+ { "name": "--no-default-features", "description": "Do not activate the default feature" },
889
+ { "name": "--package", "short": "-p", "description": "Package to document", "type": "string" },
890
+ { "name": "--jobs", "short": "-j", "description": "Number of parallel jobs", "type": "number" },
891
+ { "name": "--verbose", "short": "-v", "description": "Use verbose output" }
892
+ ],
893
+ "examples": [
894
+ "cargo rustdoc -- --cfg docsrs",
895
+ "cargo rustdoc --open",
896
+ "cargo rustdoc -- --extend-css extra.css",
897
+ "cargo rustdoc --lib -- --document-private-items"
898
+ ]
899
+ },
900
+ {
901
+ "name": "report",
902
+ "description": "Generate and display various reports",
903
+ "args": [{ "name": "<type>", "type": "string", "required": true, "description": "Report type (future-incompatibilities)" }],
904
+ "options": [
905
+ { "name": "--id", "description": "Report ID to display", "type": "number" },
906
+ { "name": "--package", "short": "-p", "description": "Package to report on", "type": "string" },
907
+ { "name": "--verbose", "short": "-v", "description": "Use verbose output" }
908
+ ],
909
+ "examples": [
910
+ "cargo report future-incompatibilities",
911
+ "cargo report future-incompatibilities --id 1"
912
+ ]
913
+ }
914
+ ],
915
+ "globalOptions": [
916
+ { "name": "--help", "short": "-h", "description": "Show help information" },
917
+ { "name": "--version", "short": "-V", "description": "Show version information" },
918
+ { "name": "--verbose", "short": "-v", "description": "Use verbose output (-vv for very verbose)" },
919
+ { "name": "--quiet", "short": "-q", "description": "Suppress cargo output" },
920
+ { "name": "--color", "description": "Coloring: auto, always, never", "type": "string" },
921
+ { "name": "--frozen", "description": "Require Cargo.lock and cache are up to date" },
922
+ { "name": "--locked", "description": "Require Cargo.lock is up to date" },
923
+ { "name": "--offline", "description": "Run without accessing the network" },
924
+ { "name": "--config", "description": "Override a Cargo configuration value", "type": "string" },
925
+ { "name": "-Z", "description": "Unstable (nightly-only) flags to Cargo", "type": "string" },
926
+ { "name": "--manifest-path", "description": "Path to Cargo.toml", "type": "path" },
927
+ { "name": "--explain", "description": "Run rustc --explain CODE to show detailed error explanation", "type": "string" }
928
+ ],
929
+ "examples": [
930
+ "cargo new myapp && cd myapp && cargo run",
931
+ "cargo build --release",
932
+ "cargo test && cargo clippy && cargo fmt --check",
933
+ "cargo add serde -F derive && cargo add serde_json",
934
+ "cargo build --target wasm32-unknown-unknown --release",
935
+ "cargo install cargo-watch && cargo watch -x run",
936
+ "cargo tree -d",
937
+ "cargo update && cargo audit",
938
+ "cargo doc --open --no-deps",
939
+ "cargo publish --dry-run"
940
+ ],
941
+ "relatedCommands": ["rustup", "rustc", "wasm-pack", "cargo-watch", "cross"],
942
+ "contextEngine": {
943
+ "detectors": [
944
+ {
945
+ "name": "cargo_toml",
946
+ "description": "Read the Cargo.toml manifest for package metadata, dependencies, and features",
947
+ "command": "cat Cargo.toml 2>/dev/null",
948
+ "parser": "text",
949
+ "cacheFor": 10
950
+ },
951
+ {
952
+ "name": "workspace_members",
953
+ "description": "List all workspace member packages and their paths",
954
+ "command": "cargo metadata --format-version 1 --no-deps 2>/dev/null | node -e \"const d=require('fs').readFileSync(0,'utf8');try{const m=JSON.parse(d);m.workspace_members.forEach(w=>console.log(w))}catch{}\"",
955
+ "parser": "lines",
956
+ "cacheFor": 30,
957
+ "requiresCmd": "cargo"
958
+ },
959
+ {
960
+ "name": "installed_binaries",
961
+ "description": "List all globally installed cargo binary crates",
962
+ "command": "cargo install --list 2>/dev/null",
963
+ "parser": "text",
964
+ "cacheFor": 120,
965
+ "requiresCmd": "cargo"
966
+ },
967
+ {
968
+ "name": "targets",
969
+ "description": "List all build targets (bins, libs, tests, examples, benches) in the current package",
970
+ "command": "cargo metadata --format-version 1 --no-deps 2>/dev/null | node -e \"const d=require('fs').readFileSync(0,'utf8');try{const m=JSON.parse(d);m.packages.forEach(p=>p.targets.forEach(t=>console.log(t.kind.join(',')+':'+t.name)))}catch{}\"",
971
+ "parser": "lines",
972
+ "cacheFor": 30,
973
+ "requiresCmd": "cargo"
974
+ },
975
+ {
976
+ "name": "features",
977
+ "description": "Extract feature definitions from Cargo.toml",
978
+ "command": "grep -A 50 '\\[features\\]' Cargo.toml 2>/dev/null | head -50",
979
+ "parser": "text",
980
+ "cacheFor": 15
981
+ },
982
+ {
983
+ "name": "dependencies",
984
+ "description": "List direct dependencies and their versions using cargo tree",
985
+ "command": "cargo tree --depth 1 --no-dedupe 2>/dev/null",
986
+ "parser": "lines",
987
+ "cacheFor": 30,
988
+ "requiresCmd": "cargo"
989
+ },
990
+ {
991
+ "name": "rust_version",
992
+ "description": "Detect the active Rust compiler version",
993
+ "command": "rustc --version 2>/dev/null",
994
+ "parser": "text",
995
+ "cacheFor": 300,
996
+ "requiresCmd": "rustc"
997
+ },
998
+ {
999
+ "name": "cargo_version",
1000
+ "description": "Detect the cargo version",
1001
+ "command": "cargo --version 2>/dev/null",
1002
+ "parser": "text",
1003
+ "cacheFor": 300,
1004
+ "requiresCmd": "cargo"
1005
+ },
1006
+ {
1007
+ "name": "toolchain",
1008
+ "description": "Detect the active Rust toolchain (stable, nightly, etc.)",
1009
+ "command": "rustup show active-toolchain 2>/dev/null",
1010
+ "parser": "text",
1011
+ "cacheFor": 300,
1012
+ "requiresCmd": "rustup"
1013
+ },
1014
+ {
1015
+ "name": "available_targets",
1016
+ "description": "List installed compilation targets (e.g., wasm32, musl)",
1017
+ "command": "rustup target list --installed 2>/dev/null",
1018
+ "parser": "lines",
1019
+ "cacheFor": 300,
1020
+ "requiresCmd": "rustup"
1021
+ },
1022
+ {
1023
+ "name": "test_targets",
1024
+ "description": "Discover compiled test executables for the current package",
1025
+ "command": "cargo test --no-run --message-format=json 2>/dev/null | grep '\"executable\"'",
1026
+ "parser": "lines",
1027
+ "cacheFor": 60,
1028
+ "requiresCmd": "cargo"
1029
+ },
1030
+ {
1031
+ "name": "clippy_warnings",
1032
+ "description": "Get a summary of current Clippy lint warnings",
1033
+ "command": "cargo clippy --message-format=short 2>&1 | head -20",
1034
+ "parser": "lines",
1035
+ "cacheFor": 30,
1036
+ "requiresCmd": "cargo"
1037
+ },
1038
+ {
1039
+ "name": "outdated_deps",
1040
+ "description": "List dependencies with newer versions available (requires cargo-outdated)",
1041
+ "command": "cargo outdated -R 2>/dev/null",
1042
+ "parser": "text",
1043
+ "cacheFor": 120,
1044
+ "requiresCmd": "cargo"
1045
+ }
1046
+ ]
1047
+ }
1048
+ }