nighthawk 0.2.0

AI terminal autocomplete — zero config, zero login, zero telemetry
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
{
  "name": "ncu",
  "description": "Upgrade your npm package.json dependencies to the latest versions, ignoring specified versions",
  "options": [
    {
      "names": [
        "--cache"
      ],
      "description": "Cache versions to a local cache file. Default --cacheFile is ~/.ncu-cache.json and default --cacheExpiration is 10 minutes"
    },
    {
      "names": [
        "--cacheClear"
      ],
      "description": "Clear the default cache, or the cache file specified by --cacheFile"
    },
    {
      "names": [
        "--cacheExpiration"
      ],
      "description": "Cache expiration in minutes. Only works with --cache. (default: 10)",
      "takes_arg": true,
      "arg": {
        "name": "min"
      }
    },
    {
      "names": [
        "--cacheFile"
      ],
      "description": "Filepath for the cache file. Only works with --cache. (default: \"~/.ncu-cache.json\")",
      "takes_arg": true,
      "arg": {
        "name": "path",
        "template": "filepaths"
      }
    },
    {
      "names": [
        "--color"
      ],
      "description": "Force color in terminal"
    },
    {
      "names": [
        "--concurrency"
      ],
      "description": "Max number of concurrent HTTP requests to registry. (default: 8)",
      "takes_arg": true,
      "arg": {
        "name": "n"
      }
    },
    {
      "names": [
        "--configFileName"
      ],
      "description": "Config file name. (default: .ncurc.{json,yml,js,cjs})",
      "takes_arg": true,
      "arg": {
        "name": "s",
        "template": "filepaths"
      }
    },
    {
      "names": [
        "--configFilePath"
      ],
      "description": "Directory of .ncurc config file. (default: directory of packageFile)",
      "takes_arg": true,
      "arg": {
        "name": "path",
        "template": "folders"
      }
    },
    {
      "names": [
        "--cwd"
      ],
      "description": "Working directory in which npm will be executed",
      "takes_arg": true,
      "arg": {
        "name": "path",
        "template": "folders"
      }
    },
    {
      "names": [
        "--deep"
      ],
      "description": "Run recursively in current working directory. Alias of (--packageFile '**/package.json')"
    },
    {
      "names": [
        "--dep"
      ],
      "description": "Check one or more sections of dependencies only: dev, optional, peer, prod, or packageManager (comma-delimited). (default: [\"prod\",\"dev\",\"optional\"])",
      "takes_arg": true,
      "arg": {
        "name": "value",
        "suggestions": [
          "dev",
          "optional",
          "peer",
          "prod",
          "packageManager"
        ]
      }
    },
    {
      "names": [
        "--deprecated"
      ],
      "description": "Include deprecated packages"
    },
    {
      "names": [
        "--doctor",
        "-d"
      ],
      "description": "Iteratively installs upgrades and runs tests to identify breaking upgrades. Requires -u to execute. Run \"ncu --help --doctor\" for details"
    },
    {
      "names": [
        "--doctorInstall"
      ],
      "description": "Specifies the install script to use in doctor mode. (default: npm install/yarn)",
      "takes_arg": true,
      "arg": {
        "name": "command"
      }
    },
    {
      "names": [
        "--doctorTest"
      ],
      "description": "Specifies the test script to use in doctor mode. (default: npm test)",
      "takes_arg": true,
      "arg": {
        "name": "command"
      }
    },
    {
      "names": [
        "--enginesNode"
      ],
      "description": "Include only packages that satisfy engines.node as specified in the package file"
    },
    {
      "names": [
        "--errorLevel",
        "-e"
      ],
      "description": "Set the error level. 1: exits with error code 0 if no errors occur. 2: exits with error code 0 if no packages need updating (useful for continuous integration). (default: 1)",
      "takes_arg": true,
      "arg": {
        "name": "n"
      }
    },
    {
      "names": [
        "--filter",
        "-f"
      ],
      "description": "Include only package names matching the given string, wildcard, glob, comma-or-space-delimited list, /regex/, or predicate function",
      "takes_arg": true,
      "arg": {
        "name": "p"
      }
    },
    {
      "names": [
        "--filterResults"
      ],
      "description": "Filters out upgrades based on a user provided function. Run \"ncu --help --filterResults\" for details"
    },
    {
      "names": [
        "--filterVersion"
      ],
      "description": "Filter on package version using comma-or-space-delimited list, /regex/, or predicate function",
      "takes_arg": true,
      "arg": {
        "name": "p"
      }
    },
    {
      "names": [
        "--format"
      ],
      "description": "Modify the output formatting or show additional information. Specify one or more comma-delimited values: group, ownerChanged, repo, time, lines. Run \"ncu --help --format\" for details. (default: [])",
      "takes_arg": true,
      "arg": {
        "name": "value",
        "suggestions": [
          "group",
          "ownerChanged",
          "repo",
          "time",
          "lines"
        ]
      }
    },
    {
      "names": [
        "--global",
        "-g"
      ],
      "description": "Check global packages instead of in the current project"
    },
    {
      "names": [
        "--groupFunction"
      ],
      "description": "Customize how packages are divided into groups when using --format group. Run \"ncu --help --groupFunction\" for details"
    },
    {
      "names": [
        "--help",
        "-h"
      ],
      "description": "Show help"
    },
    {
      "names": [
        "--interactive",
        "-i"
      ],
      "description": "Enable interactive prompts for each dependency; implies -u unless one of the json options are set"
    },
    {
      "names": [
        "--jsonAll",
        "-j"
      ],
      "description": "Output new package file instead of human-readable message"
    },
    {
      "names": [
        "--jsonDeps"
      ],
      "description": "Like jsonAll but only lists dependencies, devDependencies, optionalDependencies, etc of the new package data"
    },
    {
      "names": [
        "--jsonUpgraded"
      ],
      "description": "Output upgraded dependencies in json"
    },
    {
      "names": [
        "--loglevel",
        "-l"
      ],
      "description": "Amount to log: silent, error, minimal, warn, info, verbose, silly. (default: \"warn\")",
      "takes_arg": true,
      "arg": {
        "name": "n",
        "suggestions": [
          "silent",
          "error",
          "minimal",
          "warn",
          "info",
          "verbose",
          "silly"
        ]
      }
    },
    {
      "names": [
        "--mergeConfig"
      ],
      "description": "Merges nested configs with the root config file for --deep or --packageFile options. (default: false)"
    },
    {
      "names": [
        "--minimal",
        "-m"
      ],
      "description": "Do not upgrade newer versions that are already satisfied by the version range according to semver"
    },
    {
      "names": [
        "--packageData"
      ],
      "description": "Package file data (you can also use stdin)",
      "takes_arg": true,
      "arg": {
        "name": "value"
      }
    },
    {
      "names": [
        "--packageFile"
      ],
      "description": "Package file(s) location. (default: ./package.json)",
      "takes_arg": true,
      "arg": {
        "name": "path|glob",
        "template": "filepaths"
      }
    },
    {
      "names": [
        "--packageManager",
        "-p"
      ],
      "description": "Npm, yarn, pnpm, deno, staticRegistry (default: npm). Run \"ncu --help --packageManager\" for details",
      "takes_arg": true,
      "arg": {
        "name": "s",
        "suggestions": [
          "npm",
          "yarn",
          "pnpm",
          "deno",
          "staticRegistry"
        ]
      }
    },
    {
      "names": [
        "--peer"
      ],
      "description": "Check peer dependencies of installed packages and filter updates to compatible versions. Run \"ncu --help --peer\" for details"
    },
    {
      "names": [
        "--pre"
      ],
      "description": "Include prerelease versions, e.g. -alpha.0, -beta.5, -rc.2. Automatically set to 1 when --target is newest or greatest, or when the current version is a prerelease. (default: 0)",
      "takes_arg": true,
      "arg": {
        "name": "n"
      }
    },
    {
      "names": [
        "--prefix"
      ],
      "description": "Current working directory of npm",
      "takes_arg": true,
      "arg": {
        "name": "path",
        "template": "folders"
      }
    },
    {
      "names": [
        "--registry",
        "-r"
      ],
      "description": "Third-party npm registry. Run \"ncu --help --registry\" for details",
      "takes_arg": true,
      "arg": {
        "name": "uri"
      }
    },
    {
      "names": [
        "--reject",
        "-x"
      ],
      "description": "Exclude packages matching the given string, wildcard, glob, comma-or-space-delimited list, /regex/, or predicate function",
      "takes_arg": true,
      "arg": {
        "name": "p"
      }
    },
    {
      "names": [
        "--rejectVersion"
      ],
      "description": "Exclude package.json versions using comma-or-space-delimited list, /regex/, or predicate function",
      "takes_arg": true,
      "arg": {
        "name": "p"
      }
    },
    {
      "names": [
        "--removeRange"
      ],
      "description": "Remove version ranges from the final package version"
    },
    {
      "names": [
        "--retry"
      ],
      "description": "Number of times to retry failed requests for package info. (default: 3)",
      "takes_arg": true,
      "arg": {
        "name": "n"
      }
    },
    {
      "names": [
        "--root"
      ],
      "description": "Runs updates on the root project in addition to specified workspaces. Only allowed with --workspace or --workspaces. (default: false)"
    },
    {
      "names": [
        "--silent",
        "-s"
      ],
      "description": "Don't output anything. Alias for --loglevel silent"
    },
    {
      "names": [
        "--stdin"
      ],
      "description": "Read package.json from stdin"
    },
    {
      "names": [
        "--target",
        "-t"
      ],
      "description": "Determines the version to upgrade to: latest, newest, greatest, minor, patch, @[tag], or [function]. (default: latest) Run \"ncu --help --target\" for details",
      "takes_arg": true,
      "arg": {
        "name": "value",
        "suggestions": [
          "latest",
          "newest",
          "greatest",
          "minor",
          "patch"
        ]
      }
    },
    {
      "names": [
        "--timeout"
      ],
      "description": "Global timeout in milliseconds. (default: no global timeout and 30 seconds per npm-registry-fetch)",
      "takes_arg": true,
      "arg": {
        "name": "ms"
      }
    },
    {
      "names": [
        "--upgrade",
        "-u"
      ],
      "description": "Overwrite package file with upgraded versions instead of just outputting to console"
    },
    {
      "names": [
        "--verbose"
      ],
      "description": "Log additional information for debugging. Alias for --loglevel verbose"
    },
    {
      "names": [
        "--version",
        "-v"
      ],
      "description": "Output the version number of npm-check-updates"
    },
    {
      "names": [
        "--workspace",
        "-w"
      ],
      "description": "Run on one or more specified workspaces. Add --root to also upgrade the root project. (default: [])",
      "takes_arg": true,
      "arg": {
        "name": "s"
      }
    },
    {
      "names": [
        "--workspaces",
        "-ws"
      ],
      "description": "Run on all workspaces. Add --root to also upgrade the root project"
    }
  ],
  "args": [
    {
      "name": "filter",
      "description": "A list or regex of package names to check (all others will be ignored)",
      "is_variadic": true
    }
  ]
}