@tabsmith/autocomplete-specs 1.0.0 → 1.0.15
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/build/@magnolia/cli.js +2 -2
- package/build/@withfig/autocomplete-tools.js +2 -2
- package/build/airflow.js +2 -2
- package/build/ansible-playbook.js +2 -2
- package/build/apt.js +4 -4
- package/build/asr.js +2 -2
- package/build/bun.js +9 -9
- package/build/cargo.js +4 -4
- package/build/cd.js +2 -2
- package/build/chezmoi.js +2 -2
- package/build/cloudflared.js +2 -2
- package/build/coda.js +3 -3
- package/build/codeburn.js +1 -0
- package/build/codesign.js +2 -2
- package/build/dapr.js +2 -2
- package/build/deno/generators.js +4 -4
- package/build/deno.js +2 -2
- package/build/deployctl.js +2 -2
- package/build/direnv.js +2 -2
- package/build/docker.js +18 -18
- package/build/dotenv-vault.js +2 -2
- package/build/dotnet/dotnet-add.js +2 -2
- package/build/dotnet/dotnet-build.js +2 -2
- package/build/dotnet/dotnet-clean.js +2 -2
- package/build/dotnet/dotnet-format.js +2 -2
- package/build/dotnet/dotnet-list.js +2 -2
- package/build/dotnet/dotnet-migrate.js +2 -2
- package/build/dotnet/dotnet-nuget.js +3 -3
- package/build/dotnet/dotnet-pack.js +2 -2
- package/build/dotnet/dotnet-publish.js +2 -2
- package/build/dotnet/dotnet-remove.js +2 -2
- package/build/dotnet/dotnet-restore.js +2 -2
- package/build/dotnet/dotnet-sln.js +2 -2
- package/build/dotnet/dotnet-store.js +2 -2
- package/build/dotnet/dotnet-test.js +2 -2
- package/build/dotnet/dotnet-tool.js +3 -3
- package/build/dotnet.js +2 -2
- package/build/dsh.js +2 -0
- package/build/dtm.js +3 -3
- package/build/dynamic/index.js +1 -1
- package/build/elixir.js +2 -2
- package/build/elm-json.js +2 -2
- package/build/esbuild.js +3 -3
- package/build/file.js +2 -2
- package/build/flutter.js +5 -5
- package/build/gh.js +6 -37
- package/build/git.js +20 -20
- package/build/glow.js +2 -2
- package/build/hub.js +20 -20
- package/build/iex.js +2 -2
- package/build/index.js +1 -1
- package/build/index.json +1 -1
- package/build/java.js +2 -2
- package/build/julia.js +2 -2
- package/build/limactl.js +3 -3
- package/build/man.js +3 -3
- package/build/meteor.js +3 -3
- package/build/mgnl.js +2 -2
- package/build/mix.js +2 -2
- package/build/mongoimport.js +2 -2
- package/build/n.js +3 -3
- package/build/ni.js +2 -2
- package/build/node.js +2 -2
- package/build/npm.js +2 -2
- package/build/nr.js +3 -3
- package/build/nrm.js +2 -2
- package/build/opencode.js +2 -2
- package/build/osascript.js +2 -2
- package/build/osqueryi.js +2 -2
- package/build/pandoc.js +3 -3
- package/build/pdfunite.js +2 -2
- package/build/pi.js +2 -2
- package/build/pipenv.js +2 -2
- package/build/pm2.js +2 -2
- package/build/pnpm.js +23 -24
- package/build/pod.js +2 -2
- package/build/pre-commit.js +126 -126
- package/build/python.js +2 -2
- package/build/python3.js +2 -2
- package/build/r.js +3 -3
- package/build/rails.js +3 -3
- package/build/rancher.js +3 -3
- package/build/react-native.js +5 -5
- package/build/robot.js +2 -2
- package/build/rojo.js +2 -2
- package/build/rollup.js +2 -2
- package/build/rscript.js +2 -2
- package/build/rush.js +5 -5
- package/build/rushx.js +4 -4
- package/build/scc.js +2 -2
- package/build/shortcuts.js +2 -2
- package/build/sidekiq.js +2 -2
- package/build/sqlite3.js +2 -2
- package/build/streamlit.js +2 -2
- package/build/subl.js +2 -2
- package/build/swift.js +2 -2
- package/build/systemctl.js +2 -2
- package/build/ts-node.js +3 -3
- package/build/tsc.js +2 -2
- package/build/tsx.js +2 -2
- package/build/turbo.js +20 -20
- package/build/typst.js +2 -2
- package/build/vsce.js +20 -20
- package/build/wasm-bindgen.js +2 -2
- package/build/yarn.js +4 -4
- package/build/yomo.js +2 -2
- package/package.json +20 -20
- package/build/ai-agents specs.js +0 -1
package/build/bun.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
var
|
|
2
|
-
`),[".DS_Store"]),
|
|
3
|
-
`).map(a=>({name:a,icon:"\u{1F4E6}",description:"Global dependency"}))}}},A={cache:{strategy:"stale-while-revalidate",cacheByDirectory:!0},script:["bash","-c","until [[ -f package.json ]] || [[ $PWD = '/' ]]; do cd ..; done; cat package.json"],postProcess:function(e,[n]){if(e.trim()=="")return[];try{let t=JSON.parse(e),a=t.scripts,i=t.fig||{};if(a)return Object.entries(a).map(([s,o])=>{let c=n==="yarn"?"fig://icon?type=yarn":"fig://icon?type=npm",p=i[s];return{name:s,icon:c,description:o,priority:51,...p}})}catch(t){console.error(t)}return[]}},q={name:["-g","--global"],description:"Operates in 'global' mode, so that packages are installed into the prefix folder instead of the current working directory"},L={name:"--json",description:"Show output in json format"},V={name:"--omit",description:"Dependency types to omit from the installation tree on disk",args:{name:"Package type",default:"dev",suggestions:["dev","optional","peer"]},isRepeatable:3},C={name:["-p","--parseable"],description:"Output parseable results from commands that write to standard output"},H={name:["-l","--long"],description:"Show extended information"},u=[{name:["-w","--workspace"],description:"Enable running a command in the context of the configured workspaces of the current project",args:{name:"workspace",generators:en,isVariadic:!0}},{name:["-ws","--workspaces"],description:"Enable running a command in the context of all the configured workspaces"}],nn=[{name:["-S","--save"],description:"Package will be removed from your dependencies"},{name:["-D","--save-dev"],description:"Package will appear in your `devDependencies`"},{name:["-O","--save-optional"],description:"Package will appear in your `optionalDependencies`"},{name:"--no-save",description:"Prevents saving to `dependencies`"},{name:"-g",description:"Uninstall global package"},...u],tn=[{name:["-a","-all"],description:"Show all outdated or installed packages"},L,H,C,{name:"--depth",description:"The depth to go when recursing packages",args:{name:"depth"}},{name:"--link",description:"Limits output to only those packages that are linked"},{name:"--package-lock-only",description:"Current operation will only use the package-lock.json, ignoring node_modules"},{name:"--no-unicode",description:"Uses unicode characters in the tree output"},q,V,...u],m={name:"--registry",description:"The base URL of the npm registry",args:{name:"registry"}},ve={name:"--verbose",description:"Show extra information",args:{name:"verbose"}},v={name:"--otp",description:"One-time password from a two-factor authenticator",args:{name:"otp"}},T={name:"--ignore-scripts",description:"If true, npm does not run scripts specified in package.json files"},F={name:"--script-shell",description:"The shell to use for scripts run with the npm exec, npm run and npm init <pkg> commands",args:{name:"script-shell"}},E={name:"--dry-run",description:"Indicates that you don't want npm to make any changes and that it should only report what it would have done"},Ln={name:"npm",parserDirectives:{flagsArePosixNoncompliant:!0},description:"Node package manager",subcommands:[{name:["install","i","add"],description:"Install a package and its dependencies",args:{name:"package",isOptional:!0,generators:z,debounce:!0,isVariadic:!0},options:[{name:["-P","--save-prod"],description:"Package will appear in your `dependencies`. This is the default unless `-D` or `-O` are present"},{name:["-D","--save-dev"],description:"Package will appear in your `devDependencies`"},{name:["-O","--save-optional"],description:"Package will appear in your `optionalDependencies`"},{name:"--no-save",description:"Prevents saving to `dependencies`"},{name:["-E","--save-exact"],description:"Saved dependencies will be configured with an exact version rather than using npm's default semver range operator"},{name:["-B","--save-bundle"],description:"Saved dependencies will also be added to your bundleDependencies list"},q,{name:"--global-style",description:"Causes npm to install the package into your local node_modules folder with the same layout it uses with the global node_modules folder"},{name:"--legacy-bundling",description:"Causes npm to install the package such that versions of npm prior to 1.4, such as the one included with node 0.8, can install the package"},{name:"--legacy-peer-deps",description:"Bypass peerDependency auto-installation. Emulate install behavior of NPM v4 through v6"},{name:"--strict-peer-deps",description:"If set to true, and --legacy-peer-deps is not set, then any conflicting peerDependencies will be treated as an install failure"},{name:"--no-package-lock",description:"Ignores package-lock.json files when installing"},m,ve,V,T,{name:"--no-audit",description:"Submit audit reports alongside the current npm command to the default registry and all registries configured for scopes"},{name:"--no-bin-links",description:"Tells npm to not create symlinks (or .cmd shims on Windows) for package executables"},{name:"--no-fund",description:"Hides the message at the end of each npm install acknowledging the number of dependencies looking for funding"},E,...u]},{name:["run","run-script"],description:"Run arbitrary package scripts",options:[...u,{name:"--if-present",description:"Npm will not exit with an error code when run-script is invoked for a script that isn't defined in the scripts section of package.json"},{name:"--silent",description:""},T,F,{name:"--",args:{name:"args",isVariadic:!0}}],args:{name:"script",description:"Script to run from your package.json",filterStrategy:"fuzzy",generators:A}},{name:"init",description:"Trigger the initialization",options:[{name:["-y","--yes"],description:"Automatically answer 'yes' to any prompts that npm might print on the command line"},{name:"-w",description:"Create the folders and boilerplate expected while also adding a reference to your project workspaces property",args:{name:"dir"}}]},{name:"access",description:"Set access controls on private packages"},{name:["adduser","login"],description:"Add a registry user account",options:[m,{name:"--scope",description:"Associate an operation with a scope for a scoped registry",args:{name:"scope",description:"Scope name"}}]},{name:"audit",description:"Run a security audit",subcommands:[{name:"fix",description:"If the fix argument is provided, then remediations will be applied to the package tree",options:[E,{name:["-f","--force"],description:"Removes various protections against unfortunate side effects, common mistakes, unnecessary performance degradation, and malicious input",isDangerous:!0},...u]}],options:[...u,{name:"--audit-level",description:"The minimum level of vulnerability for npm audit to exit with a non-zero exit code",args:{name:"audit",suggestions:["info","low","moderate","high","critical","none"]}},{name:"--package-lock-only",description:"Current operation will only use the package-lock.json, ignoring node_modules"},L,V]},{name:"bin",description:"Print the folder where npm will install executables",options:[q]},{name:["bugs","issues"],description:"Report bugs for a package in a web browser",args:{name:"package",isOptional:!0,generators:z,debounce:!0,isVariadic:!0},options:[{name:"--no-browser",description:"Display in command line instead of browser",exclusiveOn:["--browser"]},{name:"--browser",description:"The browser that is called by the npm bugs command to open websites",args:{name:"browser"},exclusiveOn:["--no-browser"]},m]},{name:"cache",description:"Manipulates packages cache",subcommands:[{name:"add",description:"Add the specified packages to the local cache"},{name:"clean",description:"Delete all data out of the cache folder"},{name:"verify",description:"Verify the contents of the cache folder, garbage collecting any unneeded data, and verifying the integrity of the cache index and all cached data"}],options:[{name:"--cache",args:{name:"cache"},description:"The location of npm's cache directory"}]},{name:["ci","clean-install","install-clean"],description:"Install a project with a clean slate",options:[{name:"--audit",description:'When "true" submit audit reports alongside the current npm command to the default registry and all registries configured for scopes',args:{name:"audit",suggestions:["true","false"]},exclusiveOn:["--no-audit"]},{name:"--no-audit",description:"Do not submit audit reports alongside the current npm command",exclusiveOn:["--audit"]},T,F,ve,m]},{name:"cit",description:"Install a project with a clean slate and run tests"},{name:"clean-install-test",description:"Install a project with a clean slate and run tests"},{name:"completion",description:"Tab completion for npm"},{name:["config","c"],description:"Manage the npm configuration files",subcommands:[{name:"set",description:"Sets the config key to the value",args:[{name:"key"},{name:"value"}],options:[{name:["-g","--global"],description:"Sets it globally"}]},{name:"get",description:"Echo the config value to stdout",args:{name:"key"}},{name:"list",description:"Show all the config settings",options:[{name:"-g",description:"Lists globally installed packages"},{name:"-l",description:"Also shows defaults"},L]},{name:"delete",description:"Deletes the key from all configuration files",args:{name:"key"}},{name:"edit",description:"Opens the config file in an editor",options:[{name:"--global",description:"Edits the global config"}]}]},{name:"create",description:"Create a package.json file"},{name:["dedupe","ddp"],description:"Reduce duplication in the package tree"},{name:"deprecate",description:"Deprecate a version of a package",options:[m]},{name:"dist-tag",description:"Modify package distribution tags"},{name:["docs","home"],description:"Open documentation for a package in a web browser",args:{name:"package",isOptional:!0,generators:z,debounce:!0,isVariadic:!0},options:[...u,m,{name:"--no-browser",description:"Display in command line instead of browser",exclusiveOn:["--browser"]},{name:"--browser",description:"The browser that is called by the npm docs command to open websites",args:{name:"browser"},exclusiveOn:["--no-browser"]}]},{name:"doctor",description:"Check your npm environment",options:[m]},{name:"edit",description:"Edit an installed package",options:[{name:"--editor",description:"The command to run for npm edit or npm config edit"}]},{name:"explore",description:"Browse an installed package",args:{name:"package",filterStrategy:"fuzzy",generators:Q}},{name:"fund",description:"Retrieve funding information"},{name:"get",description:"Echo the config value to stdout"},{name:"help",description:"Get help on npm",args:{name:"term",isVariadic:!0,description:"Terms to search for"},options:[{name:"--viewer",description:"The program to use to view help content",args:{name:"viewer"}}]},{name:"help-search",description:"Search npm help documentation",args:{name:"text",description:"Text to search for"},options:[H]},{name:"hook",description:"Manage registry hooks"},{name:"install-ci-test",description:"Install a project with a clean slate and run tests"},{name:"install-test",description:"Install package(s) and run tests"},{name:"it",description:"Install package(s) and run tests"},{name:"link",description:"Symlink a package folder",args:{name:"path",template:"filepaths"}},{name:"ln",description:"Symlink a package folder"},{name:"logout",description:"Log out of the registry",options:[m,{name:"--scope",description:"Associate an operation with a scope for a scoped registry",args:{name:"scope",description:"Scope name"}}]},{name:["ls","list"],description:"List installed packages",options:tn,args:{name:"[@scope]/pkg",isVariadic:!0}},{name:"org",description:"Manage orgs",subcommands:[{name:"set",description:"Add a user to an org or manage roles",args:[{name:"orgname",description:"Organization name"},{name:"username",description:"User name"},{name:"role",isOptional:!0,suggestions:["developer","admin","owner"]}],options:[m,v]},{name:"rm",description:"Remove a user from an org",args:[{name:"orgname",description:"Organization name"},{name:"username",description:"User name"}],options:[m,v]},{name:"ls",description:"List users in an org or see what roles a particular user has in an org",args:[{name:"orgname",description:"Organization name"},{name:"username",description:"User name",isOptional:!0}],options:[m,v,L,C]}]},{name:"outdated",description:"Check for outdated packages",args:{name:"[<@scope>/]<pkg>",isVariadic:!0,isOptional:!0},options:[{name:["-a","-all"],description:"Show all outdated or installed packages"},L,H,C,{name:"-g",description:"Checks globally"},...u]},{name:["owner","author"],description:"Manage package owners",subcommands:[{name:"ls",description:"List all the users who have access to modify a package and push new versions. Handy when you need to know who to bug for help",args:{name:"[@scope/]pkg"},options:[m]},{name:"add",description:"Add a new user as a maintainer of a package. This user is enabled to modify metadata, publish new versions, and add other owners",args:[{name:"user"},{name:"[@scope/]pkg"}],options:[m,v]},{name:"rm",description:"Remove a user from the package owner list. This immediately revokes their privileges",args:[{name:"user"},{name:"[@scope/]pkg"}],options:[m,v]}]},{name:"pack",description:"Create a tarball from a package",args:{name:"[<@scope>/]<pkg>"},options:[L,E,...u,{name:"--pack-destination",description:"Directory in which npm pack will save tarballs",args:{name:"pack-destination",template:["folders"]}}]},{name:"ping",description:"Ping npm registry",options:[m]},{name:"pkg",description:"Manages your package.json",subcommands:[{name:"get",description:"Retrieves a value key, defined in your package.json file. It is possible to get multiple values and values for child fields",args:{name:"field",description:"Name of the field to get. You can view child fields by separating them with a period",isVariadic:!0},options:[L,...u]},{name:"set",description:"Sets a value in your package.json based on the field value. It is possible to set multiple values and values for child fields",args:{name:"field",description:"Name of the field to set. You can set child fields by separating them with a period",isVariadic:!0},options:[L,...u,{name:["-f","--force"],description:"Removes various protections against unfortunate side effects, common mistakes, unnecessary performance degradation, and malicious input. Allow clobbering existing values in npm pkg",isDangerous:!0}]},{name:"delete",description:"Deletes a key from your package.json",args:{name:"key",description:"Name of the key to delete. You can delete child fields by separating them with a period",isVariadic:!0},options:[...u,{name:["-f","--force"],description:"Removes various protections against unfortunate side effects, common mistakes, unnecessary performance degradation, and malicious input. Allow clobbering existing values in npm pkg",isDangerous:!0}]}]},{name:"prefix",description:"Display prefix",options:[{name:["-g","--global"],description:"Print the global prefix to standard out"}]},{name:"profile",description:"Change settings on your registry profile",subcommands:[{name:"get",description:"Display all of the properties of your profile, or one or more specific properties",args:{name:"property",isOptional:!0,description:"Property name"},options:[m,L,C,v]},{name:"set",description:"Set the value of a profile property",args:[{name:"property",description:"Property name",suggestions:["email","fullname","homepage","freenode","twitter","github"]},{name:"value",description:"Property value"}],options:[m,L,C,v],subcommands:[{name:"password",description:"Change your password. This is interactive, you'll be prompted for your current password and a new password"}]},{name:"enable-2fa",description:"Enables two-factor authentication",args:{name:"mode",description:"Mode for two-factor authentication. Defaults to auth-and-writes mode",isOptional:!0,suggestions:[{name:"auth-only",description:"Require an OTP when logging in or making changes to your account's authentication"},{name:"auth-and-writes",description:"Requires an OTP at all the times auth-only does, and also requires one when publishing a module, setting the latest dist-tag, or changing access via npm access and npm owner"}]},options:[m,v]},{name:"disable-2fa",description:"Disables two-factor authentication",options:[m,v]}]},{name:"prune",description:"Remove extraneous packages",args:{name:"[<@scope>/]<pkg>",isOptional:!0},options:[V,E,L,{name:"--production",description:"Remove the packages specified in your devDependencies"},...u]},{name:"publish",description:"Publish a package",args:{name:"tarball|folder",isOptional:!0,description:"A url or file path to a gzipped tar archive containing a single folder with a package.json file inside | A folder containing a package.json file",template:["folders"]},options:[{name:"--tag",description:"Registers the published package with the given tag",args:{name:"tag"}},...u,{name:"--access",description:"Sets scoped package to be publicly viewable if set to 'public'",args:{default:"restricted",suggestions:["restricted","public"]}},E,v]},{name:["rebuild","rb"],description:"Rebuild a package",args:{name:"[<@scope>/]<pkg>[@<version>]"},options:[q,...u,T,{name:"--no-bin-links",description:"Tells npm to not create symlinks (or .cmd shims on Windows) for package executables"}]},{name:"repo",description:"Open package repository page in the browser",args:{name:"package",isOptional:!0,generators:z,debounce:!0,isVariadic:!0},options:[...u,{name:"--no-browser",description:"Display in command line instead of browser",exclusiveOn:["--browser"]},{name:"--browser",description:"The browser that is called by the npm repo command to open websites",args:{name:"browser"},exclusiveOn:["--no-browser"]}]},{name:"restart",description:"Restart a package",options:[T,F,{name:"--",args:{name:"arg",description:"Arguments to be passed to the restart script"}}]},{name:"root",description:"Display npm root",options:[{name:["-g","--global"],description:"Print the effective global node_modules folder to standard out"}]},{name:["search","s","se","find"],description:"Search for packages",args:{name:"search terms",isVariadic:!0},options:[H,L,{name:"--color",description:"Show colors",args:{name:"always",suggestions:["always"],description:"Always show colors"},exclusiveOn:["--no-color"]},{name:"--no-color",description:"Do not show colors",exclusiveOn:["--color"]},C,{name:"--no-description",description:"Do not show descriptions"},{name:"--searchopts",description:"Space-separated options that are always passed to search",args:{name:"searchopts"}},{name:"--searchexclude",description:"Space-separated options that limit the results from search",args:{name:"searchexclude"}},m,{name:"--prefer-online",description:"If true, staleness checks for cached data will be forced, making the CLI look for updates immediately even for fresh package data",exclusiveOn:["--prefer-offline","--offline"]},{name:"--prefer-offline",description:"If true, staleness checks for cached data will be bypassed, but missing data will be requested from the server",exclusiveOn:["--prefer-online","--offline"]},{name:"--offline",description:"Force offline mode: no network requests will be done during install",exclusiveOn:["--prefer-online","--prefer-offline"]}]},{name:"set",description:"Sets the config key to the value"},{name:"set-script",description:"Set tasks in the scripts section of package.json",args:[{name:"script",description:"Name of the task to be added to the scripts section of package.json"},{name:"command",description:"Command to run when script is called"}],options:u},{name:"shrinkwrap",description:"Lock down dependency versions for publication"},{name:"star",description:"Mark your favorite packages",args:{name:"pkg",description:"Package to mark as favorite"},options:[m,{name:"--no-unicode",description:"Do not use unicode characters in the tree output"}]},{name:"stars",description:"View packages marked as favorites",args:{name:"user",isOptional:!0,description:"View packages marked as favorites by <user>"},options:[m]},{name:"start",description:"Start a package",options:[T,F,{name:"--",args:{name:"arg",description:"Arguments to be passed to the start script"}}]},{name:"stop",description:"Stop a package",options:[T,F,{name:"--",args:{name:"arg",description:"Arguments to be passed to the stop script"}}]},{name:"team",description:"Manage organization teams and team memberships",subcommands:[{name:"create",args:{name:"scope:team"},options:[m,v]},{name:"destroy",args:{name:"scope:team"},options:[m,v]},{name:"add",args:[{name:"scope:team"},{name:"user"}],options:[m,v]},{name:"rm",args:[{name:"scope:team"},{name:"user"}],options:[m,v]},{name:"ls",args:{name:"scope|scope:team"},options:[m,L,C]}]},{name:["test","tst","t"],description:"Test a package",options:[T,F]},{name:"token",description:"Manage your authentication tokens",subcommands:[{name:"list",description:"Shows a table of all active authentication tokens",options:[L,C]},{name:"create",description:"Create a new authentication token",options:[{name:"--read-only",description:"This is used to mark a token as unable to publish when configuring limited access tokens with the npm token create command"},{name:"--cidr",description:"This is a list of CIDR address to be used when configuring limited access tokens with the npm token create command",isRepeatable:!0,args:{name:"cidr"}}]},{name:"revoke",description:"Immediately removes an authentication token from the registry. You will no longer be able to use it",args:{name:"idtoken"}}],options:[m,v]},_("uninstall"),_(["r","rm"]),_("un"),_("remove"),_("unlink"),{name:"unpublish",description:"Remove a package from the registry",args:{name:"[<@scope>/]<pkg>[@<version>]"},options:[E,{name:["-f","--force"],description:"Allow unpublishing all versions of a published package. Removes various protections against unfortunate side effects, common mistakes, unnecessary performance degradation, and malicious input",isDangerous:!0},...u]},{name:"unstar",description:"Remove an item from your favorite packages",args:{name:"pkg",description:"Package to unmark as favorite"},options:[m,v,{name:"--no-unicode",description:"Do not use unicode characters in the tree output"}]},{name:["update","upgrade","up"],description:"Update a package",options:[{name:"-g",description:"Update global package"},{name:"--global-style",description:"Causes npm to install the package into your local node_modules folder with the same layout it uses with the global node_modules folder"},{name:"--legacy-bundling",description:"Causes npm to install the package such that versions of npm prior to 1.4, such as the one included with node 0.8, can install the package"},{name:"--strict-peer-deps",description:"If set to true, and --legacy-peer-deps is not set, then any conflicting peerDependencies will be treated as an install failure"},{name:"--no-package-lock",description:"Ignores package-lock.json files when installing"},V,T,{name:"--no-audit",description:"Submit audit reports alongside the current npm command to the default registry and all registries configured for scopes"},{name:"--no-bin-links",description:"Tells npm to not create symlinks (or .cmd shims on Windows) for package executables"},{name:"--no-fund",description:"Hides the message at the end of each npm install acknowledging the number of dependencies looking for funding"},{name:"--save",description:"Update the semver values of direct dependencies in your project package.json"},E,...u]},{name:"version",description:"Bump a package version",options:[...u,L,{name:"--allow-same-version",description:"Prevents throwing an error when npm version is used to set the new version to the same value as the current version"},{name:"--no-commit-hooks",description:"Do not run git commit hooks when using the npm version command"},{name:"--no-git-tag-version",description:"Do not tag the commit when using the npm version command"},{name:"--preid",description:'The "prerelease identifier" to use as a prefix for the "prerelease" part of a semver. Like the rc in 1.2.0-rc.8',args:{name:"prerelease-id"}},{name:"--sign-git-tag",description:"If set to true, then the npm version command will tag the version using -s to add a signature"}]},{name:["view","v","info","show"],description:"View registry info",options:[...u,L]},{name:"whoami",description:"Display npm username",options:[m]}]};var an={name:"autocannon",description:"Fast HTTP/1.1 benchmarking tool written in Node.js",icon:"https://raw.githubusercontent.com/mcollina/autocannon/master/autocannon-logo-icon-100px.png",args:{name:"URL",description:"The URL to benchmark"},options:[{name:["-c","--connections"],description:"The number of concurrent connections to use",args:{name:"NUM",default:"10"}},{name:["-p","--pipelining"],description:"The number of pipelined requests to use",args:{name:"NUM",default:"1"}},{name:["-d","--duration"],description:"The number of seconds to run the autocannon",exclusiveOn:["-a","--amount"],args:{name:"SEC",default:"10"}},{name:["-a","--amount"],description:"The number of requests to make before exiting the benchmark",exclusiveOn:["-d","--duration"],args:{name:"NUM"}},{name:"-L",description:"The number of milliseconds to elapse between taking samples. This controls the sample interval, & therefore the total number of samples, which affects statistical analyses",args:{name:"NUM",default:"1"}},{name:["-S","--socketPath"],description:"A path to a Unix Domain Socket or a Windows Named Pipe. A URL is still required to send the correct Host header and path",args:{name:"PATH"}},{name:["-w","--workers"],description:"Number of worker threads to use to fire requests",args:{name:"NUM",default:"1"}},{name:["-W","--warmup"],description:"Use a warm up interval before starting sampling. This enables startup processes to finish and traffic to normalize before sampling begins",args:[{name:"-c",default:"1"},{name:"-d",default:"3"}]},{name:"--on-port",description:"Start the command listed after -- on the command line. When it starts listening on a port, start sending requests to that port. A URL is still required to send requests to the correct path. The hostname can be omitted, `localhost` will be used by default",args:{name:"PORT"}},{name:["-m","--method"],description:"The HTTP method to use",args:{name:"METHOD",default:"GET",suggestions:["GET","POST","PUT","DELETE","PATCH","HEAD","OPTIONS","TRACE"]}},{name:["-t","--timeout"],description:"The number of seconds before timing out and resetting a connection",args:{name:"NUM",default:"10"}},{name:["-T","--title"],description:"The title to place in the results for identification",args:{name:"TITLE"}},{name:["-b","--body"],description:"The body of the request",dependsOn:["-H","--headers"],args:{name:"BODY"}},{name:["-F","--form"],args:{name:"FORM"}},{name:["-i","--input"],description:"The body of the request",dependsOn:["-H","--headers"],args:{name:"FILE",generators:{template:"filepaths"}}},{name:["-H","--headers"],description:"The request headers",isRepeatable:!0,args:{name:"K=V"}},{name:"--har",description:"When provided, Autocannon will use requests from the HAR file",args:{name:"FILE",template:"filepaths"}},{name:["-B","--bailout"],description:"The number of failures before initiating a bailout",args:{name:"NUM",default:"0"}},{name:["-M","--maxConnectionRequests"],description:"The max number of requests to make per connection to the server",args:{name:"NUM"}},{name:["-O","--maxOverallRequests"],description:"The max number of requests to make overall to the server",args:{name:"NUM"}},{name:["-r","--connectionRate"],description:"The max number of requests to make per second from an individual connection",args:{name:"NUM"}},{name:["-R","--overallRate"],description:"The max number of requests to make per second from all connections",args:{name:"NUM"}},{name:["-C","--ignoreCoordinatedOmission"],description:"Ignore the coordinated omission issue when requests should be sent at a fixed rate using 'connectionRate' or 'overallRate'"},{name:["-D","--reconnectRate"],description:"The number of requests to make before resetting a connections connection to the server",args:{name:"NUM"}},{name:["-n","--no-progress"],description:"Don't render the progress bar. default: false"},{name:["-l","--latency"],description:"Print all the latency data. default: false"},{name:["-I","--idReplacement"],description:"Enable replacement of [<id>] with a randomly generated ID within the request body. default: false"},{name:["-j","--jsonPath"],description:"Print the output as newline delimited JSON. This will cause the progress bar and results not to be rendered"},{name:["-f","--forever"],description:"Run the benchmark forever. Efficiently restarts the benchmark on completion"},{name:["-s","--servername"],description:"Server name for the SNI (Server Name Indication) TLS extension. Defaults to the hostname of the URL when it is not an IP address"},{name:["-x","--excludeErrorStats"],description:"Exclude error statistics (non-2xx HTTP responses) from the final latency and bytes per second averages. default: false"},{name:["-E","--expectBody"],description:"Ensure the body matches this value. If enabled, mismatches count towards bailout. Enabling this option will slow down the load testing",args:{name:"EXPECTED"}},{name:"--renderStatusCodes",description:"Print status codes and their respective statistics"},{name:"--cert",description:"Path to cert chain in pem format",args:{name:"FILE",template:"filepaths"}},{name:"--key",description:"Path to private key for specified cert in pem format",args:{name:"FILE",template:"filepaths"}},{name:"--ca",description:"Path to trusted ca certificates for the test. This argument accepts both a single file as well as a list of files",args:{name:"FILE",template:"filepaths",isVariadic:!0}},{name:"--debug",description:"Print connection errors to stderr"},{name:["-v","--version"],description:"Print the version number"},{name:["-V","--verbose"],description:"Print the table with results (default: true)"},{name:["-h","--help"],description:"Print help"}]},$=an;var X=[{name:$.name,..."icon"in $&&{icon:$.icon}},{name:"vite",icon:"https://vitejs.dev/logo.svg"},{name:"babel",icon:"https://raw.githubusercontent.com/babel/logo/master/babel.png"},{name:"create-react-native-app",icon:"https://reactnative.dev/img/pwa/manifest-icon-512.png"},{name:"react-native",icon:"https://reactnative.dev/img/pwa/manifest-icon-512.png"},{name:"tailwindcss",icon:"https://tailwindcss.com/favicons/favicon-32x32.png"},{name:"next",icon:"https://nextjs.org/static/favicon/favicon-16x16.png"},{name:"nuxi",icon:"https://raw.githubusercontent.com/nuxt/framework/main/docs/public/icon.png"},{name:"gltfjsx",icon:"https://raw.githubusercontent.com/pmndrs/branding/master/logo.svg"},{name:"prisma",icon:"https://raw.githubusercontent.com/prisma/docs/main/src/images/favicon-16x16.png"},{name:"eslint",icon:"https://raw.githubusercontent.com/eslint/eslint.org/main/src/static/icon-512.png"},{name:"prettier",icon:"https://prettier.io/icon.png"},{name:"tsc",icon:"https://upload.wikimedia.org/wikipedia/commons/thumb/4/4c/Typescript_logo_2020.svg/240px-Typescript_logo_2020.svg.png"},{name:"typeorm",icon:"https://avatars.githubusercontent.com/u/20165699?s=200&v=4"},{name:"@withfig/autocomplete-tools",icon:"https://fig.io/icons/fig-light.png"},{name:"create-completion-spec",icon:"https://fig.io/icons/fig-light.png"},{name:"@fig/publish-spec-to-team",icon:"https://fig.io/icons/fig-light.png"},{name:"fig-teams@latest",icon:"https://fig.io/icons/fig-light.png"},{name:"create-next-app",icon:"https://nextjs.org/static/favicon/favicon-16x16.png"},{name:"create-t3-app",icon:"https://create.t3.gg/favicon.svg"},{name:"create-discord-bot",icon:"https://discordjs.dev/favicon-32x32.png"},{name:"create-video",icon:"https://raw.githubusercontent.com/remotion-dev/remotion/main/packages/docs/static/img/logo-small.png"},{name:"remotion",icon:"https://raw.githubusercontent.com/remotion-dev/remotion/main/packages/docs/static/img/logo-small.png"},{name:"create-remix",icon:"https://remix.run/favicon-light.1.png"},{name:"remix",icon:"https://remix.run/favicon-light.1.png"},{name:"playwright",icon:"https://playwright.dev/img/playwright-logo.svg"},{name:"ignite-cli",icon:"\u{1F525}"},{name:"vsce"},{name:"degit",icon:"fig://icon?type=git"},{name:"@preset/cli",icon:"https://raw.githubusercontent.com/preset/preset/main/.github/assets/logo.svg"},{name:"mikro-orm",icon:"https://raw.githubusercontent.com/mikro-orm/mikro-orm/master/docs/static/img/favicon.ico"},{name:"pod-install"},{name:"capacitor",icon:"https://capacitorjs.com/docs/img/meta/favicon.png"},{name:"cap",icon:"https://capacitorjs.com/docs/img/meta/favicon.png"},{name:"@magnolia/cli",icon:"https://avatars.githubusercontent.com/u/25686615?s=200&v=4"},{name:"stencil",icon:"https://stenciljs.com/assets/icon/favicon.ico"},{name:"swagger-typescript-api",icon:"https://static1.smartbear.co/swagger/media/assets/swagger_fav.png"},{name:"sta",icon:"https://static1.smartbear.co/swagger/media/assets/swagger_fav.png"},{name:"@wordpress/create-block",icon:"https://s1.wp.com/i/webclip.png"},{name:"astro",icon:"https://astro.build/favicon.svg"},{name:"ampx",icon:"https://raw.githubusercontent.com/aws-amplify/docs/refs/heads/main/public/favicon.ico"}],Sn={name:"npx",description:"Execute binaries from npm packages",args:{name:"command",isCommand:!0,generators:{script:["bash","-c","until [[ -d node_modules/ ]] || [[ $PWD = '/' ]]; do cd ..; done; ls -1 node_modules/.bin/"],postProcess:function(e){let n=[...X].reduce((t,{name:a})=>[...t,a],[]);return e.split(`
|
|
4
|
-
`).filter(t=>!n.includes(t)).map(t=>({name:t,icon:"fig://icon?type=command",loadSpec:t}))}},suggestions:[...
|
|
5
|
-
`).filter(i=>sn.has(i)).map(i=>({name:i,loadSpec:i==="rw"?"redwood":i,icon:"fig://icon?type=package"}))}),args:{generators:A,filterStrategy:"fuzzy",parserDirectives:Le,isOptional:!0,isCommand:!0},options:[{name:"--disable-pnp",description:"Disable the Plug'n'Play installation"},{name:"--emoji",description:"Enable emoji in output (default: true)",args:{name:"bool",suggestions:[{name:"true"},{name:"false"}]}},{name:["--enable-pnp","--pnp"],description:"Enable the Plug'n'Play installation"},{name:"--flat",description:"Only allow one version of a package"},{name:"--focus",description:"Focus on a single workspace by installing remote copies of its sibling workspaces"},{name:"--force",description:"Install and build packages even if they were built before, overwrite lockfile"},{name:"--frozen-lockfile",description:"Don't generate a lockfile and fail if an update is needed"},{name:"--global-folder",description:"Specify a custom folder to store global packages",args:{template:"folders"}},{name:"--har",description:"Save HAR output of network traffic"},{name:"--https-proxy",description:"",args:{name:"path",suggestions:[{name:"https://"}]}},{name:"--ignore-engines",description:"Ignore engines check"},{name:"--ignore-optional",description:"Ignore optional dependencies"},{name:"--ignore-platform",description:"Ignore platform checks"},{name:"--ignore-scripts",description:"Don't run lifecycle scripts"},{name:"--json",description:"Format Yarn log messages as lines of JSON (see jsonlines.org)"},{name:"--link-duplicates",description:"Create hardlinks to the repeated modules in node_modules"},{name:"--link-folder",description:"Specify a custom folder to store global links",args:{template:"folders"}},{name:"--modules-folder",description:"Rather than installing modules into the node_modules folder relative to the cwd, output them here",args:{template:"folders"}},{name:"--mutex",description:"Use a mutex to ensure only one yarn instance is executing",args:[{name:"type",suggestions:[{name:":"}]},{name:"specifier",suggestions:[{name:":"}]}]},{name:"--network-concurrency",description:"Maximum number of concurrent network requests",args:{name:"number"}},{name:"--network-timeout",description:"TCP timeout for network requests",args:{name:"milliseconds"}},{name:"--no-bin-links",description:"Don't generate bin links when setting up packages"},{name:"--no-default-rc",description:"Prevent Yarn from automatically detecting yarnrc and npmrc files"},{name:"--no-lockfile",description:"Don't read or generate a lockfile"},{name:"--non-interactive",description:"Do not show interactive prompts"},{name:"--no-node-version-check",description:"Do not warn when using a potentially unsupported Node version"},{name:"--no-progress",description:"Disable progress bar"},{name:"--offline",description:"Trigger an error if any required dependencies are not available in local cache"},{name:"--otp",description:"One-time password for two factor authentication",args:{name:"otpcode"}},{name:"--prefer-offline",description:"Use network only if dependencies are not available in local cache"},{name:"--preferred-cache-folder",description:"Specify a custom folder to store the yarn cache if possible",args:{template:"folders"}},{name:["--prod","--production"],description:"",args:{}},{name:"--proxy",description:"",args:{name:"host"}},{name:"--pure-lockfile",description:"Don't generate a lockfile"},{name:"--registry",description:"Override configuration registry",args:{name:"url"}},{name:["-s","--silent"],description:"Skip Yarn console logs, other types of logs (script output) will be printed"},{name:"--scripts-prepend-node-path",description:"Prepend the node executable dir to the PATH in scripts",args:{suggestions:[{name:"true"},{name:"false"}]}},{name:"--skip-integrity-check",description:"Run install without checking if node_modules is installed"},{name:"--strict-semver",description:""},...b,{name:["-v","--version"],description:"Output the version number"},{name:["-h","--help"],description:"Output usage information"}],subcommands:[{name:"add",description:"Installs a package and any packages that it depends on",args:{name:"package",generators:z,debounce:!0,isVariadic:!0},options:[...b,{name:["-W","--ignore-workspace-root-check"],description:"Required to run yarn add inside a workspace root"},{name:["-D","--dev"],description:"Save package to your `devDependencies`"},{name:["-P","--peer"],description:"Save package to your `peerDependencies`"},{name:["-O","--optional"],description:"Save package to your `optionalDependencies`"},{name:["-E","--exact"],description:"Install exact version",dependsOn:["--latest"]},{name:["-T","--tilde"],description:"Install most recent release with the same minor version"},{name:["-A","--audit"],description:"Run vulnerability audit on installed packages"},{name:["-h","--help"],description:"Output usage information"}]},{name:"audit",description:"Perform a vulnerability audit against the installed packages",options:[{name:"--summary",description:"Only print the summary"},{name:"--groups",description:"Only audit dependencies from listed groups. Default: devDependencies, dependencies, optionalDependencies",args:{name:"group_name",isVariadic:!0}},{name:"--level",description:"Only print advisories with severity greater than or equal to one of the following: info|low|moderate|high|critical. Default: info",args:{name:"severity",suggestions:[{name:"info"},{name:"low"},{name:"moderate"},{name:"high"},{name:"critical"}]}},{name:["-h","--help"],description:"Output usage information"}]},{name:"autoclean",description:"Cleans and removes unnecessary files from package dependencies",options:[{name:["-h","--help"],description:"Output usage information"},{name:["-i","--init"],description:"Creates the .yarnclean file if it does not exist, and adds the default entries"},{name:["-f","--force"],description:"If a .yarnclean file exists, run the clean process"}]},{name:"bin",description:"Displays the location of the yarn bin folder",options:[{name:["-h","--help"],description:"Output usage information"}]},{name:"cache",description:"Yarn cache list will print out every cached package",options:[...b,{name:["-h","--help"],description:"Output usage information"}],subcommands:[{name:"clean",description:"Clear global cache"},{name:"dir",description:"Print yarn\u2019s global cache path"},{name:"list",description:"Print out every cached package",options:[{name:"--pattern",description:"Filter cached packages by pattern",args:{name:"pattern"}}]}]},{name:"config",description:"Configure yarn",options:[{name:["-h","--help"],description:"Output usage information"}],subcommands:[{name:"set",description:"Sets the config key to a certain value",options:[{name:["-g","--global"],description:"Set global config"}]},{name:"get",description:"Print the value for a given key",args:{generators:Me}},{name:"delete",description:"Deletes a given key from the config",args:{generators:Me}},{name:"list",description:"Displays the current configuration"}]},{name:"create",description:"Creates new projects from any create-* starter kits",args:{name:"cli",generators:se,loadSpec:async e=>({name:"create-"+e,type:"global"}),isCommand:!0},options:[...b,{name:["-h","--help"],description:"Output usage information"}]},{name:"exec",description:"",options:[{name:["-h","--help"],description:"Output usage information"}]},{name:"generate-lock-entry",description:"Generates a lock file entry",options:[{name:"--use-manifest",description:"Specify which manifest file to use for generating lock entry",args:{template:"filepaths"}},{name:"--resolved",description:"Generate from <*.tgz>#<hash>",args:{template:"filepaths"}},{name:["-h","--help"],description:"Output usage information"}]},{name:"global",description:"Manage yarn globally",subcommands:[{name:"add",description:"Install globally packages on your operating system",args:{name:"package",generators:z,debounce:!0,isVariadic:!0}},{name:"bin",description:"Displays the location of the yarn global bin folder"},{name:"dir",description:"Displays the location of the global installation folder"},{name:"ls",description:"List globally installed packages (deprecated)"},{name:"list",description:"List globally installed packages"},{name:"remove",description:"Remove globally installed packages",args:{name:"package",filterStrategy:"fuzzy",generators:on,isVariadic:!0},options:[...b,{name:["-W","--ignore-workspace-root-check"],description:"Required to run yarn remove inside a workspace root"},{name:["-h","--help"],description:"Output usage information"}]},{name:"upgrade",description:"Upgrade globally installed packages",options:[...b,{name:["-S","--scope"],description:"Upgrade packages under the specified scope",args:{name:"scope"}},{name:["-L","--latest"],description:"List the latest version of packages"},{name:["-E","--exact"],description:"Install exact version. Only used when --latest is specified",dependsOn:["--latest"]},{name:["-P","--pattern"],description:"Upgrade packages that match pattern",args:{name:"pattern"}},{name:["-T","--tilde"],description:"Install most recent release with the same minor version. Only used when --latest is specified"},{name:["-C","--caret"],description:"Install most recent release with the same major version. Only used when --latest is specified",dependsOn:["--latest"]},{name:["-A","--audit"],description:"Run vulnerability audit on installed packages"},{name:["-h","--help"],description:"Output usage information"}]},{name:"upgrade-interactive",description:"Display the outdated packages before performing any upgrade",options:[{name:"--latest",description:"Use the version tagged latest in the registry"}]}],options:[...b,{name:"--prefix",description:"Bin prefix to use to install binaries",args:{name:"prefix"}},{name:"--latest",description:"Bin prefix to use to install binaries"},{name:["-h","--help"],description:"Output usage information"}]},{name:"help",description:"Output usage information"},{name:"import",description:"Generates yarn.lock from an npm package-lock.json file"},{name:"info",description:"Show information about a package"},{name:"init",description:"Interactively creates or updates a package.json file",options:[...b,{name:["-y","--yes"],description:"Use default options"},{name:["-p","--private"],description:"Use default options and private true"},{name:["-i","--install"],description:"Install a specific Yarn release",args:{name:"version"}},{name:"-2",description:"Generates the project using Yarn 2"},{name:["-h","--help"],description:"Output usage information"}]},{name:"install",description:"Install all the dependencies listed within package.json",options:[...b,{name:["-A","--audit"],description:"Run vulnerability audit on installed packages"},{name:["-h","--help"],description:"Output usage information"}]},{name:"licenses",description:"",subcommands:[{name:"list",description:"List licenses for installed packages"},{name:"generate-disclaimer",description:"List of licenses from all the packages"}]},{name:"link",description:"Symlink a package folder during development",args:{isOptional:!0,name:"package"},options:[...b,{name:["-h","--help"],description:"Output usage information"}]},{name:"list",description:"Lists all dependencies for the current working directory",options:[{name:"--depth",description:"Restrict the depth of the dependencies"},{name:"--pattern",description:"Filter the list of dependencies by the pattern"}]},{name:"login",description:"Store registry username and email"},{name:"logout",description:"Clear registry username and email"},{name:"node",description:""},{name:"outdated",description:"Checks for outdated package dependencies",options:[...b,{name:["-h","--help"],description:"Output usage information"}]},{name:"owner",description:"Manage package owners",subcommands:[{name:"list",description:"Lists all of the owners of a package",args:{name:"package"}},{name:"add",description:"Adds the user as an owner of the package",args:{name:"package"}},{name:"remove",description:"Removes the user as an owner of the package",args:[{name:"user"},{name:"package"}]}]},{name:"pack",description:"Creates a compressed gzip archive of package dependencies",options:[{name:"--filename",description:"Creates a compressed gzip archive of package dependencies and names the file filename"}]},{name:"policies",description:"Defines project-wide policies for your project",subcommands:[{name:"set-version",description:"Will download the latest stable release",options:[{name:"--rc",description:"Download the latest rc release"}]}]},{name:"publish",description:"Publishes a package to the npm registry",args:{name:"Tarball or Folder",template:"folders"},options:[...b,{name:["-h","--help"],description:"Output usage information"},{name:"--major",description:"Auto-increment major version number"},{name:"--minor",description:"Auto-increment minor version number"},{name:"--patch",description:"Auto-increment patch version number"},{name:"--premajor",description:"Auto-increment premajor version number"},{name:"--preminor",description:"Auto-increment preminor version number"},{name:"--prepatch",description:"Auto-increment prepatch version number"},{name:"--prerelease",description:"Auto-increment prerelease version number"},{name:"--preid",description:"Add a custom identifier to the prerelease",args:{name:"preid"}},{name:"--message",description:"Message",args:{name:"message"}},{name:"--no-git-tag-version",description:"No git tag version"},{name:"--no-commit-hooks",description:"Bypass git hooks when committing new version"},{name:"--access",description:"Access",args:{name:"access"}},{name:"--tag",description:"Tag",args:{name:"tag"}}]},{name:"remove",description:"Remove installed package",args:{filterStrategy:"fuzzy",generators:je,isVariadic:!0},options:[...b,{name:["-W","--ignore-workspace-root-check"],description:"Required to run yarn remove inside a workspace root"},{name:["-h","--help"],description:"Output usage information"}]},{name:"run",description:"Runs a defined package script",options:[...b,{name:["-h","--help"],description:"Output usage information"}],args:[{name:"script",description:"Script to run from your package.json",generators:A,filterStrategy:"fuzzy",parserDirectives:Le,isCommand:!0},{name:"env",suggestions:["env"],description:"Lists environment variables available to scripts",isOptional:!0}]},{name:"tag",description:"Add, remove, or list tags on a package"},{name:"team",description:"Maintain team memberships",subcommands:[{name:"create",description:"Create a new team",args:{name:"<scope:team>"}},{name:"destroy",description:"Destroys an existing team",args:{name:"<scope:team>"}},{name:"add",description:"Add a user to an existing team",args:[{name:"<scope:team>"},{name:"<user>"}]},{name:"remove",description:"Remove a user from a team they belong to",args:{name:"<scope:team> <user>"}},{name:"list",description:"If performed on an organization name, will return a list of existing teams under that organization. If performed on a team, it will instead return a list of all users belonging to that particular team",args:{name:"<scope>|<scope:team>"}}]},{name:"unlink",description:"Unlink a previously created symlink for a package"},{name:"unplug",description:""},{name:"upgrade",description:"Upgrades packages to their latest version based on the specified range",args:{name:"package",generators:je,filterStrategy:"fuzzy",isVariadic:!0,isOptional:!0},options:[...b,{name:["-S","--scope"],description:"Upgrade packages under the specified scope",args:{name:"scope"}},{name:["-L","--latest"],description:"List the latest version of packages"},{name:["-E","--exact"],description:"Install exact version. Only used when --latest is specified",dependsOn:["--latest"]},{name:["-P","--pattern"],description:"Upgrade packages that match pattern",args:{name:"pattern"}},{name:["-T","--tilde"],description:"Install most recent release with the same minor version. Only used when --latest is specified"},{name:["-C","--caret"],description:"Install most recent release with the same major version. Only used when --latest is specified",dependsOn:["--latest"]},{name:["-A","--audit"],description:"Run vulnerability audit on installed packages"},{name:["-h","--help"],description:"Output usage information"}]},{name:"upgrade-interactive",description:"Upgrades packages in interactive mode",options:[{name:"--latest",description:"Use the version tagged latest in the registry"}]},{name:"version",description:"Update version of your package",options:[...b,{name:["-h","--help"],description:"Output usage information"},{name:"--new-version",description:"New version",args:{name:"version"}},{name:"--major",description:"Auto-increment major version number"},{name:"--minor",description:"Auto-increment minor version number"},{name:"--patch",description:"Auto-increment patch version number"},{name:"--premajor",description:"Auto-increment premajor version number"},{name:"--preminor",description:"Auto-increment preminor version number"},{name:"--prepatch",description:"Auto-increment prepatch version number"},{name:"--prerelease",description:"Auto-increment prerelease version number"},{name:"--preid",description:"Add a custom identifier to the prerelease",args:{name:"preid"}},{name:"--message",description:"Message",args:{name:"message"}},{name:"--no-git-tag-version",description:"No git tag version"},{name:"--no-commit-hooks",description:"Bypass git hooks when committing new version"},{name:"--access",description:"Access",args:{name:"access"}},{name:"--tag",description:"Tag",args:{name:"tag"}}]},{name:"versions",description:"Displays version information of the currently installed Yarn, Node.js, and its dependencies"},{name:"why",description:"Show information about why a package is installed",args:{name:"package",filterStrategy:"fuzzy",generators:rn},options:[...b,{name:["-h","--help"],description:"Output usage information"},{name:"--peers",description:"Print the peer dependencies that match the specified name"},{name:["-R","--recursive"],description:"List, for each workspace, what are all the paths that lead to the dependency"}]},{name:"workspace",description:"Manage workspace",filterStrategy:"fuzzy",generateSpec:async(e,n)=>{let a=(await n({command:"yarn",args:["--version"]})).stdout.startsWith("1."),i=async()=>{let{stdout:o}=await n({command:"yarn",args:["workspaces","info"]}),c=o.indexOf("{"),p=o.lastIndexOf("}");return Object.entries(JSON.parse(o.slice(c,p+1))).map(([d,{location:r}])=>({name:d,location:r}))},s=async()=>(await n({command:"yarn",args:["workspaces","list","--json"]})).stdout.split(`
|
|
6
|
-
`).map(c=>JSON.parse(c.trim()));try{return{name:"workspace",subcommands:(a?await i():await s()).map(({name:p,location:d})=>({name:p,description:"Workspaces",args:{name:"script",generators:{cache:{strategy:"stale-while-revalidate",ttl:6e4},script:["cat",`${d}/package.json`],postProcess:function(r){if(r.trim()=="")return[];try{let y=JSON.parse(r).scripts;if(y)return Object.keys(y).map(h=>({name:h}))}catch{}return[]}}}}))}}catch(o){console.error(o)}return{name:"workspaces"}}},{name:"workspaces",description:"Show information about your workspaces",options:[{name:"subcommand",description:"",args:{suggestions:[{name:"info"},{name:"run"}]}},{name:"flags",description:""}]},{name:"set",description:"Set global Yarn options",subcommands:[{name:"resolution",description:"Enforce a package resolution",args:[{name:"descriptor",description:"A descriptor for the package, in the form of 'lodash@npm:^1.2.3'"},{name:"resolution",description:"The version of the package to resolve"}],options:[{name:["-s","--save"],description:"Persist the resolution inside the top-level manifest"}]},{name:"version",description:"Lock the Yarn version used by the project",args:{name:"version",description:"Use the specified version, which can also be a Yarn 2 build (e.g 2.0.0-rc.30) or a Yarn 1 build (e.g 1.22.1)",template:"filepaths",suggestions:[{name:"from-sources",insertValue:"from sources"},"latest","canary","classic","self"]},options:[{name:"--only-if-needed",description:"Only lock the Yarn version if it isn't already locked"}]}]}]};var D="data:image/svg+xml;base64,PHN2ZyBpZD0iQnVuIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA4MCA3MCI+PHRpdGxlPkJ1biBMb2dvPC90aXRsZT48cGF0aCBpZD0iU2hhZG93IiBkPSJNNzEuMDksMjAuNzRjLS4xNi0uMTctLjMzLS4zNC0uNS0uNXMtLjMzLS4zNC0uNS0uNS0uMzMtLjM0LS41LS41LS4zMy0uMzQtLjUtLjUtLjMzLS4zNC0uNS0uNS0uMzMtLjM0LS41LS41LS4zMy0uMzQtLjUtLjVBMjYuNDYsMjYuNDYsMCwwLDEsNzUuNSwzNS43YzAsMTYuNTctMTYuODIsMzAuMDUtMzcuNSwzMC4wNS0xMS41OCwwLTIxLjk0LTQuMjMtMjguODMtMTAuODZsLjUuNS41LjUuNS41LjUuNS41LjUuNS41LjUuNUMxOS41NSw2NS4zLDMwLjE0LDY5Ljc1LDQyLDY5Ljc1YzIwLjY4LDAsMzcuNS0xMy40OCwzNy41LTMwQzc5LjUsMzIuNjksNzYuNDYsMjYsNzEuMDksMjAuNzRaIi8+PGcgaWQ9IkJvZHkiPjxwYXRoIGlkPSJCYWNrZ3JvdW5kIiBkPSJNNzMsMzUuN2MwLDE1LjIxLTE1LjY3LDI3LjU0LTM1LDI3LjU0UzMsNTAuOTEsMywzNS43QzMsMjYuMjcsOSwxNy45NCwxOC4yMiwxM1MzMy4xOCwzLDM4LDNzOC45NCw0LjEzLDE5Ljc4LDEwQzY3LDE3Ljk0LDczLDI2LjI3LDczLDM1LjdaIiBzdHlsZT0iZmlsbDojZmJmMGRmIi8+PHBhdGggaWQ9IkJvdHRvbV9TaGFkb3ciIGRhdGEtbmFtZT0iQm90dG9tIFNoYWRvdyIgZD0iTTczLDM1LjdhMjEuNjcsMjEuNjcsMCwwLDAtLjgtNS43OGMtMi43MywzMy4zLTQzLjM1LDM0LjktNTkuMzIsMjQuOTRBNDAsNDAsMCwwLDAsMzgsNjMuMjRDNTcuMyw2My4yNCw3Myw1MC44OSw3MywzNS43WiIgc3R5bGU9ImZpbGw6I2Y2ZGVjZSIvPjxwYXRoIGlkPSJMaWdodF9TaGluZSIgZGF0YS1uYW1lPSJMaWdodCBTaGluZSIgZD0iTTI0LjUzLDExLjE3QzI5LDguNDksMzQuOTQsMy40Niw0MC43OCwzLjQ1QTkuMjksOS4yOSwwLDAsMCwzOCwzYy0yLjQyLDAtNSwxLjI1LTguMjUsMy4xMy0xLjEzLjY2LTIuMywxLjM5LTMuNTQsMi4xNS0yLjMzLDEuNDQtNSwzLjA3LTgsNC43QzguNjksMTguMTMsMywyNi42MiwzLDM1LjdjMCwuNCwwLC44LDAsMS4xOUM5LjA2LDE1LjQ4LDIwLjA3LDEzLjg1LDI0LjUzLDExLjE3WiIgc3R5bGU9ImZpbGw6I2ZmZmVmYyIvPjxwYXRoIGlkPSJUb3AiIGQ9Ik0zNS4xMiw1LjUzQTE2LjQxLDE2LjQxLDAsMCwxLDI5LjQ5LDE4Yy0uMjguMjUtLjA2LjczLjMuNTksMy4zNy0xLjMxLDcuOTItNS4yMyw2LTEzLjE0QzM1LjcxLDUsMzUuMTIsNS4xMiwzNS4xMiw1LjUzWm0yLjI3LDBBMTYuMjQsMTYuMjQsMCwwLDEsMzksMTljLS4xMi4zNS4zMS42NS41NS4zNkM0MS43NCwxNi41Niw0My42NSwxMSwzNy45Myw1LDM3LjY0LDQuNzQsMzcuMTksNS4xNCwzNy4zOSw1LjQ5Wm0yLjc2LS4xN0ExNi40MiwxNi40MiwwLDAsMSw0NywxNy4xMmEuMzMuMzMsMCwwLDAsLjY1LjExYy45Mi0zLjQ5LjQtOS40NC03LjE3LTEyLjUzQzQwLjA4LDQuNTQsMzkuODIsNS4wOCw0MC4xNSw1LjMyWk0yMS42OSwxNS43NmExNi45NCwxNi45NCwwLDAsMCwxMC40Ny05Yy4xOC0uMzYuNzUtLjIyLjY2LjE4LTEuNzMsOC03LjUyLDkuNjctMTEuMTIsOS40NUMyMS4zMiwxNi40LDIxLjMzLDE1Ljg3LDIxLjY5LDE1Ljc2WiIgc3R5bGU9ImZpbGw6I2NjYmVhNztmaWxsLXJ1bGU6ZXZlbm9kZCIvPjxwYXRoIGlkPSJPdXRsaW5lIiBkPSJNMzgsNjUuNzVDMTcuMzIsNjUuNzUuNSw1Mi4yNy41LDM1LjdjMC0xMCw2LjE4LTE5LjMzLDE2LjUzLTI0LjkyLDMtMS42LDUuNTctMy4yMSw3Ljg2LTQuNjIsMS4yNi0uNzgsMi40NS0xLjUxLDMuNi0yLjE5QzMyLDEuODksMzUsLjUsMzgsLjVzNS42MiwxLjIsOC45LDMuMTRjMSwuNTcsMiwxLjE5LDMuMDcsMS44NywyLjQ5LDEuNTQsNS4zLDMuMjgsOSw1LjI3QzY5LjMyLDE2LjM3LDc1LjUsMjUuNjksNzUuNSwzNS43LDc1LjUsNTIuMjcsNTguNjgsNjUuNzUsMzgsNjUuNzVaTTM4LDNjLTIuNDIsMC01LDEuMjUtOC4yNSwzLjEzLTEuMTMuNjYtMi4zLDEuMzktMy41NCwyLjE1LTIuMzMsMS40NC01LDMuMDctOCw0LjdDOC42OSwxOC4xMywzLDI2LjYyLDMsMzUuNywzLDUwLjg5LDE4LjcsNjMuMjUsMzgsNjMuMjVTNzMsNTAuODksNzMsMzUuN0M3MywyNi42Miw2Ny4zMSwxOC4xMyw1Ny43OCwxMyw1NCwxMSw1MS4wNSw5LjEyLDQ4LjY2LDcuNjRjLTEuMDktLjY3LTIuMDktMS4yOS0zLTEuODRDNDIuNjMsNCw0MC40MiwzLDM4LDNaIi8+PC9nPjxnIGlkPSJNb3V0aCI+PGcgaWQ9IkJhY2tncm91bmQtMiIgZGF0YS1uYW1lPSJCYWNrZ3JvdW5kIj48cGF0aCBkPSJNNDUuMDUsNDNhOC45Myw4LjkzLDAsMCwxLTIuOTIsNC43MSw2LjgxLDYuODEsMCwwLDEtNCwxLjg4QTYuODQsNi44NCwwLDAsMSwzNCw0Ny43MSw4LjkzLDguOTMsMCwwLDEsMzEuMTIsNDNhLjcyLjcyLDAsMCwxLC44LS44MUg0NC4yNkEuNzIuNzIsMCwwLDEsNDUuMDUsNDNaIiBzdHlsZT0iZmlsbDojYjcxNDIyIi8+PC9nPjxnIGlkPSJUb25ndWUiPjxwYXRoIGlkPSJCYWNrZ3JvdW5kLTMiIGRhdGEtbmFtZT0iQmFja2dyb3VuZCIgZD0iTTM0LDQ3Ljc5YTYuOTEsNi45MSwwLDAsMCw0LjEyLDEuOSw2LjkxLDYuOTEsMCwwLDAsNC4xMS0xLjksMTAuNjMsMTAuNjMsMCwwLDAsMS0xLjA3LDYuODMsNi44MywwLDAsMC00LjktMi4zMSw2LjE1LDYuMTUsMCwwLDAtNSwyLjc4QzMzLjU2LDQ3LjQsMzMuNzYsNDcuNiwzNCw0Ny43OVoiIHN0eWxlPSJmaWxsOiNmZjYxNjQiLz48cGF0aCBpZD0iT3V0bGluZS0yIiBkYXRhLW5hbWU9Ik91dGxpbmUiIGQ9Ik0zNC4xNiw0N2E1LjM2LDUuMzYsMCwwLDEsNC4xOS0yLjA4LDYsNiwwLDAsMSw0LDEuNjljLjIzLS4yNS40NS0uNTEuNjYtLjc3YTcsNywwLDAsMC00LjcxLTEuOTMsNi4zNiw2LjM2LDAsMCwwLTQuODksMi4zNkE5LjUzLDkuNTMsMCwwLDAsMzQuMTYsNDdaIi8+PC9nPjxwYXRoIGlkPSJPdXRsaW5lLTMiIGRhdGEtbmFtZT0iT3V0bGluZSIgZD0iTTM4LjA5LDUwLjE5YTcuNDIsNy40MiwwLDAsMS00LjQ1LTIsOS41Miw5LjUyLDAsMCwxLTMuMTEtNS4wNSwxLjIsMS4yLDAsMCwxLC4yNi0xLDEuNDEsMS40MSwwLDAsMSwxLjEzLS41MUg0NC4yNmExLjQ0LDEuNDQsMCwwLDEsMS4xMy41MSwxLjE5LDEuMTksMCwwLDEsLjI1LDFoMGE5LjUyLDkuNTIsMCwwLDEtMy4xMSw1LjA1QTcuNDIsNy40MiwwLDAsMSwzOC4wOSw1MC4xOVptLTYuMTctNy40Yy0uMTYsMC0uMi4wNy0uMjEuMDlhOC4yOSw4LjI5LDAsMCwwLDIuNzMsNC4zN0E2LjIzLDYuMjMsMCwwLDAsMzguMDksNDlhNi4yOCw2LjI4LDAsMCwwLDMuNjUtMS43Myw4LjMsOC4zLDAsMCwwLDIuNzItNC4zNy4yMS4yMSwwLDAsMC0uMi0uMDlaIi8+PC9nPjxnIGlkPSJGYWNlIj48ZWxsaXBzZSBpZD0iUmlnaHRfQmx1c2giIGRhdGEtbmFtZT0iUmlnaHQgQmx1c2giIGN4PSI1My4yMiIgY3k9IjQwLjE4IiByeD0iNS44NSIgcnk9IjMuNDQiIHN0eWxlPSJmaWxsOiNmZWJiZDAiLz48ZWxsaXBzZSBpZD0iTGVmdF9CbHVjaCIgZGF0YS1uYW1lPSJMZWZ0IEJsdWNoIiBjeD0iMjIuOTUiIGN5PSI0MC4xOCIgcng9IjUuODUiIHJ5PSIzLjQ0IiBzdHlsZT0iZmlsbDojZmViYmQwIi8+PHBhdGggaWQ9IkV5ZXMiIGQ9Ik0yNS43LDM4LjhhNS41MSw1LjUxLDAsMSwwLTUuNS01LjUxQTUuNTEsNS41MSwwLDAsMCwyNS43LDM4LjhabTI0Ljc3LDBBNS41MSw1LjUxLDAsMSwwLDQ1LDMzLjI5LDUuNSw1LjUsMCwwLDAsNTAuNDcsMzguOFoiIHN0eWxlPSJmaWxsLXJ1bGU6ZXZlbm9kZCIvPjxwYXRoIGlkPSJJcmlzIiBkPSJNMjQsMzMuNjRhMi4wNywyLjA3LDAsMSwwLTIuMDYtMi4wN0EyLjA3LDIuMDcsMCwwLDAsMjQsMzMuNjRabTI0Ljc3LDBhMi4wNywyLjA3LDAsMSwwLTIuMDYtMi4wN0EyLjA3LDIuMDcsMCwwLDAsNDguNzUsMzMuNjRaIiBzdHlsZT0iZmlsbDojZmZmO2ZpbGwtcnVsZTpldmVub2RkIi8+PC9nPjwvc3ZnPg==",oe={name:"[host:]port",isOptional:!0,suggestions:[{name:"3000",icon:"fig://icon?type=box",description:"Serve on port 3000"},{name:"8080",icon:"fig://icon?type=box",description:"Serve on port 8080"}],description:"Activate inspector on particular port and/or hostname"},De=["js","jsx","ts","tsx","json","toml","text","file","wasm","napi"],cn=[{name:["-h","--help"],description:"Display this help and exit"},{name:["-b","--bun"],description:"Force a script or package to use Bun's runtime instead of Node.js (via symlinking node)"},{name:"--cwd",args:{name:"path",description:"Absolute path to resolve files & entry points from. This just changes the process' cwd"}},{name:["-c","--config"],args:{name:"path",template:"filepaths",description:"Config file to load Bun from (e.g. -c bunfig.toml)",isOptional:!0},description:"Load config (bunfig.toml)"},{name:"--extension-order",args:{name:"order",isVariadic:!0,description:"Defaults to: .tsx,.ts,.jsx,.js,.json"}},{name:"--jsx-factory",args:{name:"name",suggestions:["React.createElement","h","preact.h"]},description:"Changes the function called when compiling JSX elements using the classic JSX runtime"},{name:"--jsx-fragment",priority:49,args:{name:"string",isOptional:!0},insertValue:"--jsx-fragment='{cursor}'",description:"Changes the function called when compiling JSX fragments"},{name:"--jsx-import-source",args:{name:"module",suggestions:["react"]},description:'Declares the module specifier to be used for importing the jsx and jsxs factory functions. Default: "react"'},{name:"--jsx-runtime",args:{name:"name",suggestions:["automatic","classic"]},description:'"automatic" (default) or "classic"'},{name:["-r","--preload"],args:{name:"args",isVariadic:!0,description:"Import a module before other modules are loaded"}},{name:"--main-fields",args:{name:"args",isVariadic:!0,description:"Main fields to lookup in package.json. Defaults to --target dependent"}},{name:"--no-summary",description:"Don't print a summary (when generating .bun)"},{name:["-v","--version"],description:"Print version and exit"},{name:"--revision",description:"Print version with revision and exit"},{name:"--tsconfig-override",args:{name:"overrides",description:"Load tsconfig from path instead of cwd/tsconfig.json"}},{name:["-d","--define"],args:{name:"k=v",isVariadic:!0,description:"Substitute key=value while parsing, e.g. --define process.env.NODE_ENV=development"}},{name:["-e","--external"],args:{name:"args",isVariadic:!0,description:"Exclude module from transpilation (can use * wildcards). ex: -e react"}},{name:["-l","--loader"],args:{name:"args",isVariadic:!0,description:"Parse files with .ext:loader, e.g. --loader .js:jsx. Valid loaders: js, jsx, ts, tsx, json, toml, text, file, wasm, napi",generators:(0,P.keyValueList)({keys:De.map(e=>"."+e),values:De})}},{name:["-u","--origin"],args:{name:"args",description:'Rewrite import URLs to start with --origin. Default: ""'}},{name:["-p","--port"],args:{name:"args",description:`Port to serve Bun's dev server on. Default: "3000"`}},{name:"--smol",description:"Use less memory, but run garbage collection more often"},{name:"--minify",description:"Minify (experimental)",priority:50},{name:"--minify-syntax",description:"Minify syntax and inline data (experimental)"},{name:"--minify-whitespace",description:"Minify whitespace (experimental)"},{name:"--minify-identifiers",description:"Minify identifiers"},{name:"--no-macros",description:"Disable macros from being executed in the bundler, transpiler and runtime"},{name:"--target",description:"Target environment",priority:50,args:{generators:(0,P.valueList)({values:["node","browser","bun"]})}},{name:"--inspect",description:"Activate Bun's debugger for a file",requiresSeparator:!0,args:oe},{name:"--inspect-wait",description:"Activate Bun's Debugger, wait for a connection before executing",requiresSeparator:!0,args:oe},{name:"--inspect-brk",description:"Activate Bun's Debugger, set breakpoint on first line of code and wait",requiresSeparator:!0,args:oe},{name:"--if-present",description:"Exit if the entrypoint does not exist"}],pn=[{name:"--hot",description:"Enable auto reload in the Bun runtime, test runner, or bundler",priority:50},{name:"--watch",description:"Automatically restart the process on file change",priority:50},{name:"--no-install",description:"Disable auto install in the Bun runtime"},{name:"-i",description:"Automatically install dependencies and use global cache in Bun's runtime, equivalent to --install=fallback"},{name:"--install",args:{name:"arg",description:'Install dependencies automatically when no node_modules are present, default: "auto". "force" to ignore node_modules, fallback to install any missing',suggestions:["auto","force","fallback","disable"]}},{name:"--prefer-offline",description:"Skip staleness checks for packages in the Bun runtime and resolve from disk"},{name:"--prefer-latest",description:"Use the latest matching versions of packages in the Bun runtime, always checking npm"},{name:"--silent",description:"Don't repeat the command for bun run"}],dn=[{name:"compile",description:"Generate a standalone Bun executable containing your bundled code",priority:50},{name:"--format",description:"Specifies the module format to build to. Only esm is supported currently",args:{name:"args",suggestions:["esm"]}},{name:"--outdir",description:'Default to "dist" if multiple files',priority:50,args:{name:"path"}},{name:"--outfile",description:"Write to a file",priority:50,args:{name:"path"}},{name:"--root",description:"Root directory used for multiple entry points",args:{name:"path"}},{name:"--splitting",description:"Enable code splitting",priority:50},{name:"--public-path",description:"A prefix to be appended to any import paths in bundled code",args:{name:"args"}},{name:"--sourcemap",description:"Build with sourcemaps - 'inline', 'external', or 'none'",requiresSeparator:"-",priority:50,args:{name:"args",isOptional:!0,suggestions:["inline","external","none"]}},{name:"--entry-naming",description:'Customize entry point filenames. Defaults to "[dir]/[name].[ext]"',args:{name:"args"}},{name:"--chunk-naming",description:'Customize chunk filenames. Defaults to "[name]-[hash].[ext]"',args:{name:"args"}},{name:"--asset-naming",description:'Customize asset filenames. Defaults to "[name]-[hash].[ext]"',args:{name:"args"}},{name:"--server-components",description:"Enable React Server Components (experimental)"},{name:"--no-bundle",description:"Transpile file only, do not bundle"}],ln=[{name:"--timeout",description:"Set the per-test timeout in milliseconds, default is 5000",args:{name:"number"}},{name:"--update-snapshots",description:"Update snapshot files"},{name:"--rerun-each",description:"Re-run each test file <NUMBER> times, helps catch certain bugs",args:{name:"number"}},{name:"--only",description:'Only run tests that are marked with "test.only()"'},{name:"--todo",description:'Include tests that are marked with "test.todo()"'},{name:"--coverage",description:"Generate a coverage profile"},{name:"--bail",description:"Exit the test suite after <NUMBER> failures. If you do not specify a number, it defaults to 1",args:{name:"number",isOptional:!0}},{name:["-t","--test-name-pattern"],description:"Run only tests with a name that matches the given regex",args:{name:"pattern"}}],Se=[{name:"--dump-environment-variables",description:"Dump environment variables from .env and process as JSON and quit. Useful for debugging",priority:49},{name:"--dump-limits",description:"Dump system limits. Useful for debugging",priority:49}],re=[...cn,...pn],mn=[...re,...dn,...Se],un=[...re,...ln,...Se],K=[{name:["-c","--config"],args:{name:"path",template:"filepaths",isOptional:!0},description:"Load config (bunfig.toml)"},{name:["-y","--yarn"],description:"Write a yarn.lock file (yarn v1)"},{name:["-p","--production"],description:"Don't install devDependencies"},{name:"--no-save",description:"Don't save a lockfile"},{name:"--save",description:"Save to package.json"},{name:"--dry-run",description:"Don't install anything"},{name:"--frozen-lockfile",description:"Disallow changes to lockfile"},{name:["-f","--force"],description:"Always request the latest versions from the registry & reinstall all dependencies"},{name:"--cache-dir",args:{name:"path",template:"folders"},description:"Store & load cached data from a specific directory path"},{name:"--no-cache",description:"Ignore manifest cache entirely"},{name:"--silent",description:"Don't log anything"},{name:"--verbose",description:"Excessively verbose logging"},{name:["-g","--global"],description:"Install globally"},{name:"--cwd",args:{name:"path",template:"folders"},description:"Set a specific cwd"},{name:"--backend",args:{name:"syscall",suggestions:["clonefile","copyfile"]},description:"Platform-specific optimizations for installing dependencies. For macOS, 'clonefile' (default), 'copyfile'"},{name:"--link-native-bins",args:{name:"str",isVariadic:!0},description:"Link 'bin' from a matching platform-specific 'optionalDependencies' instead. Default: esbuild, turbo"},{name:"--help",description:"Print the help menu"},{name:"--no-progress",description:"Disable the progress bar"},{name:"--no-summary",description:"Don't print a summary"},{name:"--no-verify",description:"Skip verifying integrity of newly downloaded packages"},{name:"--ignore-scripts",description:"Skip lifecycle scripts in the project's package.json (dependency scripts are never run)"},{name:["-d","--dev","-D","--development"],description:"Install as devDependency",priority:75,isRepeatable:!1},{name:"--exact",description:"Install exact version"},{name:"--optional",description:"Install as optionalDependency"}],gn={script:["command","sh","-c","find $BUN_INSTALL/install/global/node_modules -type l -o -type d -maxdepth 2 | awk -F 'node_modules/' '{print $2}'"],postProcess(e){return e.split(`
|
|
7
|
-
`).map(n=>({name:n,description:"Link to this package",icon:"\u{1F4E6}"}))},cache:{strategy:"stale-while-revalidate",ttl:60*60*24}},
|
|
1
|
+
var Pe=Object.create;var ue=Object.defineProperty;var Ae=Object.getOwnPropertyDescriptor;var Ee=Object.getOwnPropertyNames;var Ue=Object.getPrototypeOf,Re=Object.prototype.hasOwnProperty;var Y=(e,n)=>()=>(n||e((n={exports:{}}).exports,n),n.exports);var Fe=(e,n,t,a)=>{if(n&&typeof n=="object"||typeof n=="function")for(let i of Ee(n))!Re.call(e,i)&&i!==t&&ue(e,i,{get:()=>n[i],enumerable:!(a=Ae(n,i))||a.enumerable});return e};var Ge=(e,n,t)=>(t=e!=null?Pe(Ue(e)):{},Fe(n||!e||!e.__esModule?ue(t,"default",{value:e,enumerable:!0}):t,e));var ge=Y(F=>{"use strict";Object.defineProperty(F,"__esModule",{value:!0});F.shellExpand=F.ensureTrailingSlash=void 0;var Ve=e=>e.endsWith("/")?e:`${e}/`;F.ensureTrailingSlash=Ve;var Ye=(e,n)=>e.startsWith("~")&&(e.length===1||e.charAt(1)==="/")?e.replace("~",n):e,_e=(e,n)=>e.replace(/\$([A-Za-z0-9_]+)/g,i=>{var s;let o=i.slice(1);return(s=n[o])!==null&&s!==void 0?s:i}).replace(/\$\{([A-Za-z0-9_]+)(?::-([^}]+))?\}/g,(i,s,o)=>{var c,p;return(p=(c=n[s])!==null&&c!==void 0?c:o)!==null&&p!==void 0?p:i}),We=(e,n)=>{var t;let{environmentVariables:a}=n;return _e(Ye(e,(t=a?.HOME)!==null&&t!==void 0?t:"~"),a)};F.shellExpand=We});var he=Y(D=>{"use strict";var Qe=D&&D.__awaiter||function(e,n,t,a){function i(s){return s instanceof t?s:new t(function(o){o(s)})}return new(t||(t=Promise))(function(s,o){function c(r){try{d(a.next(r))}catch(l){o(l)}}function p(r){try{d(a.throw(r))}catch(l){o(l)}}function d(r){r.done?s(r.value):i(r.value).then(c,p)}d((a=a.apply(e,n||[])).next())})};Object.defineProperty(D,"__esModule",{value:!0});D.filepaths=D.folders=D.getCurrentInsertedDirectory=void 0;D.sortFilesAlphabetically=fe;var ne=ge();function fe(e,n=[]){let t=n.map(i=>i.toLowerCase()),a=e.filter(i=>!t.includes(i.toLowerCase()));return[...a.filter(i=>!i.startsWith(".")).sort((i,s)=>i.localeCompare(s)),...a.filter(i=>i.startsWith(".")).sort((i,s)=>i.localeCompare(s)),"../"]}var Be=(e,n,t)=>{if(e===null)return"/";let a=(0,ne.shellExpand)(n,t),i=a.slice(0,a.lastIndexOf("/")+1);return i===""?(0,ne.ensureTrailingSlash)(e):i.startsWith("/")?i:`${(0,ne.ensureTrailingSlash)(e)}${i}`};D.getCurrentInsertedDirectory=Be;function Z(e={}){let{extensions:n=[],equals:t=[],matches:a,filterFolders:i=!1,editFileSuggestions:s,editFolderSuggestions:o,rootDirectory:c,showFolders:p="always"}=e,d=new Set(n),r=new Set(t),l=()=>n.length>0||t.length>0||a,k=(g=[])=>l()?g.filter(({name:b="",type:N})=>{if(!i&&N==="folder"||r.has(b)||a&&b.match(a))return!0;let[,...f]=b.split(".");if(f.length>=1){let S=f.length-1,I=f[S];do{if(d.has(I))return!0;S-=1,I=[f[S],I].join(".")}while(S>=0)}return!1}):g,y=(g=[])=>!s&&!o?g:g.map(b=>Object.assign(Object.assign({},b),(b.type==="file"?s:o)||{}));return{trigger:(g,b)=>{let N=g.lastIndexOf("/"),f=b.lastIndexOf("/");return N!==f?!0:N===-1&&f===-1?!1:g.slice(0,N)!==b.slice(0,f)},getQueryTerm:g=>g.slice(g.lastIndexOf("/")+1),custom:(g,b,N)=>Qe(this,void 0,void 0,function*(){var f;let{isDangerous:S,currentWorkingDirectory:I,searchTerm:L}=N,T=(f=(0,D.getCurrentInsertedDirectory)(c??I,L,N))!==null&&f!==void 0?f:"/";try{let le=yield b({command:"ls",args:["-1ApL"],cwd:T}),Ce=fe(le.stdout.split(`
|
|
2
|
+
`),[".DS_Store"]),me=[];for(let B of Ce)if(B){let q=B.endsWith("/")?"folders":"filepaths";(q==="filepaths"&&p!=="only"||q==="folders"&&p!=="never")&&me.push({type:q==="filepaths"?"file":"folder",name:B,insertValue:B,isDangerous:S,context:{templateType:q}})}return y(k(me))}catch{return[]}})}}D.folders=Object.assign(()=>Z({showFolders:"only"}),Object.freeze(Z({showFolders:"only"})));D.filepaths=Object.assign(Z,Object.freeze(Z()))});var be=Y(U=>{"use strict";var _=U&&U.__awaiter||function(e,n,t,a){function i(s){return s instanceof t?s:new t(function(o){o(s)})}return new(t||(t=Promise))(function(s,o){function c(r){try{d(a.next(r))}catch(l){o(l)}}function p(r){try{d(a.throw(r))}catch(l){o(l)}}function d(r){r.done?s(r.value):i(r.value).then(c,p)}d((a=a.apply(e,n||[])).next())})};Object.defineProperty(U,"__esModule",{value:!0});U.valueList=qe;U.keyValue=Ze;U.keyValueList=Je;var ye=new Map;function te(e,n){return e.length===0?n:n.map(t=>t.insertValue?t:Object.assign(Object.assign({},t),{insertValue:t.name+e}))}function we(e,n,t){return _(this,void 0,void 0,function*(){if(typeof e=="function"){let a=yield e(...t);return te(n,a)}if(typeof e[0]=="string"){let a=e.map(i=>({name:i}));return te(n,a)}return te(n,e)})}function ae(e,n,t,a){return _(this,void 0,void 0,function*(){if(t||Array.isArray(e)){let i=ye.get(e);return i===void 0&&(i=yield we(e,n,a),ye.set(e,i)),i}return we(e,n,a)})}function ke(e,n){return typeof n=="string"?e&&n==="keys"||!e&&n==="values":n}function J(e,...n){return Math.max(...n.map(t=>e.lastIndexOf(t)))}function ie(e,n){let t=new Set(e);return n.filter(a=>{var i;return typeof a.name=="string"?!t.has(a.name):!(!((i=a.name)===null||i===void 0)&&i.some(s=>t.has(s)))})}function qe({delimiter:e=",",values:n=[],cache:t=!1,insertDelimiter:a=!1,allowRepeatedValues:i=!1}){return{trigger:(s,o)=>s.lastIndexOf(e)!==o.lastIndexOf(e),getQueryTerm:s=>s.slice(s.lastIndexOf(e)+e.length),custom:(...s)=>_(this,void 0,void 0,function*(){var o;let c=yield ae(n,a?e:"",t,s);if(i)return c;let[p]=s,d=(o=p[p.length-1])===null||o===void 0?void 0:o.split(e);return ie(d,c)})}}function Ze({separator:e="=",keys:n=[],values:t=[],cache:a=!1,insertSeparator:i=!0}){return{trigger:(s,o)=>s.indexOf(e)!==o.indexOf(e),getQueryTerm:s=>s.slice(s.indexOf(e)+1),custom:(...s)=>_(this,void 0,void 0,function*(){let[o]=s,p=!o[o.length-1].includes(e),d=p?n:t,r=ke(p,a);return ae(d,p&&i?e:"",r,s)})}}function Je({separator:e="=",delimiter:n=",",keys:t=[],values:a=[],cache:i=!1,insertSeparator:s=!0,insertDelimiter:o=!1,allowRepeatedKeys:c=!1,allowRepeatedValues:p=!0}){return{trigger:(d,r)=>{let l=J(d,e,n),k=J(r,e,n);return l!==k},getQueryTerm:d=>{let r=J(d,e,n);return d.slice(r+1)},custom:(...d)=>_(this,void 0,void 0,function*(){let[r]=d,l=r[r.length-1],k=J(l,e,n),y=k===-1||l.slice(k,k+e.length)!==e,g=y?t:a,b=ke(y,i),f=yield ae(g,y?s?e:"":o?n:"",b,d);if(y){if(c)return f;let I=l.split(n).map(L=>L.slice(0,L.indexOf(e)));return ie(I,f)}if(p)return f;let S=l.split(n).map(I=>I.slice(I.indexOf(e)+e.length));return ie(S,f)})}}});var ve=Y(W=>{"use strict";var He=W&&W.__awaiter||function(e,n,t,a){function i(s){return s instanceof t?s:new t(function(o){o(s)})}return new(t||(t=Promise))(function(s,o){function c(r){try{d(a.next(r))}catch(l){o(l)}}function p(r){try{d(a.throw(r))}catch(l){o(l)}}function d(r){r.done?s(r.value):i(r.value).then(c,p)}d((a=a.apply(e,n||[])).next())})};Object.defineProperty(W,"__esModule",{value:!0});W.ai=nn;var $e=4097,Xe=4,Ke=.8,en=$e*Xe*Ke;function nn({name:e,prompt:n,message:t,postProcess:a,temperature:i,splitOn:s}){return{scriptTimeout:15e3,custom:(o,c,p)=>He(this,void 0,void 0,function*(){var d,r;let l=yield c({command:"fig",args:["settings","--format","json","autocomplete.ai.enabled"]});if(!JSON.parse(l.stdout))return[];let k=typeof n=="function"?yield n({tokens:o,executeCommand:c,generatorContext:p}):n,y=typeof t=="function"?yield t({tokens:o,executeCommand:c,generatorContext:p}):t;if(y===null||y.length===0)return console.warn("No message provided to AI generator"),[];let g=en-((d=k?.length)!==null&&d!==void 0?d:0),b={model:"gpt-3.5-turbo",source:"autocomplete",name:e,messages:[...k?[{role:"system",content:k}]:[],{role:"user",content:y.slice(0,g)}],temperature:i},N=JSON.stringify(b),f=yield c({command:"fig",args:["_","request","--route","/ai/chat","--method","POST","--body",N]}),S=JSON.parse(f.stdout);return(r=S?.choices.map(L=>{var T;return(T=L?.message)===null||T===void 0?void 0:T.content}).filter(L=>typeof L=="string").flatMap(L=>s?L.split(s).filter(T=>T.trim().length>0):[L]).map(L=>{if(a)return a(L);let T=L.trim().replace(/\n/g," ");return{icon:"\u{1FA84}",name:T,insertValue:`'${T}'`,description:"Generated by Fig AI"}}))!==null&&r!==void 0?r:[]})}}});var je=Y(M=>{"use strict";var tn=M&&M.__createBinding||(Object.create?function(e,n,t,a){a===void 0&&(a=t);var i=Object.getOwnPropertyDescriptor(n,t);(!i||("get"in i?!n.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return n[t]}}),Object.defineProperty(e,a,i)}:function(e,n,t,a){a===void 0&&(a=t),e[a]=n[t]}),an=M&&M.__exportStar||function(e,n){for(var t in e)t!=="default"&&!Object.prototype.hasOwnProperty.call(n,t)&&tn(n,e,t)};Object.defineProperty(M,"__esModule",{value:!0});M.ai=M.folders=M.filepaths=void 0;var Le=he();Object.defineProperty(M,"filepaths",{enumerable:!0,get:function(){return Le.filepaths}});Object.defineProperty(M,"folders",{enumerable:!0,get:function(){return Le.folders}});an(be(),M);var sn=ve();Object.defineProperty(M,"ai",{enumerable:!0,get:function(){return sn.ai}})});var P=Ge(je(),1);function Q(e){return{name:e,description:"Uninstall a package",args:{name:"package",generators:x,filterStrategy:"fuzzy",isVariadic:!0},options:cn}}var re=e=>(e.match(/@/g)||[]).length,on=e=>async(n,t,a)=>{let i=n[n.length-1];if(i==="")return[];let s=e&&e.length>0?`+keywords:${e.join(",")}`:"",c=["-s","-H","Accept: application/json",s?`https://api.npms.io/v2/search?size=20&q=${i}${s}`:`https://api.npms.io/v2/search/suggestions?q=${i}&size=20`],p=["-s","-H","Accept: application/vnd.npm.install-v1+json",`https://registry.npmjs.org/${i.slice(0,-1)}`],d=l=>t({command:"curl",args:l[l.length-1]==="@"?p:c}),r=i.startsWith("@")?re(i)>1:i.includes("@");try{let l=JSON.parse((await d(i)).stdout);if(r){let y=Object.entries(l["dist-tags"]||{}).map(([g,b])=>({name:g,description:b}));return y.push(...Object.keys(l.versions).map(g=>({name:g})).reverse()),y}return(s?l.results:l).map(y=>({name:y.package.name,description:y.package.description}))}catch(l){return console.error({error:l}),[]}},O={trigger:(e,n)=>n.startsWith("@")?!(re(n)>1&&re(e)>1):!(n.includes("@")&&e.includes("@")),getQueryTerm:"@",cache:{ttl:1e3*60*60*24*2},custom:on()},rn={custom:async(e,n)=>{let{stdout:t}=await n({command:"npm",args:["prefix"]}),{stdout:a}=await n({command:"cat",args:[`${t}/package.json`]}),i=[];try{if(a.trim()=="")return i;let o=JSON.parse(a).workspaces;if(o)for(let c of o)i.push({name:c,description:"Workspaces"})}catch(s){console.log(s)}return i}},x={trigger:e=>e==="-g"||e==="--global",custom:async function(e,n){if(!e.includes("-g")&&!e.includes("--global")){let{stdout:t}=await n({command:"npm",args:["prefix"]}),{stdout:a}=await n({command:"cat",args:[`${t}/package.json`]}),i=JSON.parse(a),s=i.dependencies??{},o=i.devDependencies,c=i.optionalDependencies??{};return Object.assign(s,o,c),Object.keys(s).filter(p=>!e.some(r=>r===p)).map(p=>({name:p,icon:"\u{1F4E6}",description:s[p]?"dependency":c[p]?"optionalDependency":"devDependency"}))}else{let{stdout:t}=await n({command:"bash",args:["-c","ls -1 `npm root -g`"]});return t.split(`
|
|
3
|
+
`).map(a=>({name:a,icon:"\u{1F4E6}",description:"Global dependency"}))}}},R={cache:{strategy:"stale-while-revalidate",cacheByDirectory:!0},script:["bash","-c","until [[ -f package.json ]] || [[ $PWD = '/' ]]; do cd ..; done; cat package.json"],postProcess:function(e,[n]){if(e.trim()=="")return[];try{let t=JSON.parse(e),a=t.scripts,i=t.fig||{};if(a)return Object.entries(a).map(([s,o])=>{let c=n==="yarn"?"fig://icon?type=yarn":"fig://icon?type=npm",p=i[s];return{name:s,icon:c,description:o,priority:51,...p}})}catch(t){console.error(t)}return[]}},V={name:["-g","--global"],description:"Operates in 'global' mode, so that packages are installed into the prefix folder instead of the current working directory"},h={name:"--json",description:"Show output in json format"},A={name:"--omit",description:"Dependency types to omit from the installation tree on disk",args:{name:"Package type",default:"dev",suggestions:["dev","optional","peer"]},isRepeatable:3},E={name:["-p","--parseable"],description:"Output parseable results from commands that write to standard output"},$={name:["-l","--long"],description:"Show extended information"},u=[{name:["-w","--workspace"],description:"Enable running a command in the context of the configured workspaces of the current project",args:{name:"workspace",generators:rn,isVariadic:!0}},{name:["-ws","--workspaces"],description:"Enable running a command in the context of all the configured workspaces"}],cn=[{name:["-S","--save"],description:"Package will be removed from your dependencies"},{name:["-D","--save-dev"],description:"Package will appear in your `devDependencies`"},{name:["-O","--save-optional"],description:"Package will appear in your `optionalDependencies`"},{name:"--no-save",description:"Prevents saving to `dependencies`"},{name:"-g",description:"Uninstall global package"},...u],pn=[{name:["-a","--all"],description:"Show all outdated or installed packages"},h,$,E,{name:"--depth",description:"The depth to go when recursing packages",args:{name:"depth"}},{name:"--link",description:"Limits output to only those packages that are linked"},{name:"--package-lock-only",description:"Current operation will only use the package-lock.json, ignoring node_modules"},{name:"--no-unicode",description:"Uses unicode characters in the tree output"},V,A,...u],m={name:"--registry",description:"The base URL of the npm registry",args:{name:"registry"}},Me={name:"--verbose",description:"Show extra information",args:{name:"verbose"}},w={name:"--otp",description:"One-time password from a two-factor authenticator",args:{name:"otp"}},z={name:"--ignore-scripts",description:"If true, npm does not run scripts specified in package.json files"},G={name:"--script-shell",description:"The shell to use for scripts run with the npm exec, npm run and npm init <pkg> commands",args:{name:"script-shell"}},C={name:"--dry-run",description:"Indicates that you don't want npm to make any changes and that it should only report what it would have done"},H={name:"--install-strategy",description:"Sets the strategy for installing packages in node_modules",args:{name:"strategy",default:"hoisted",suggestions:["hoisted","nested","shallow","linked"]}},xe={name:"--install-links",description:"Install file: protocol dependencies outside the project root as regular dependencies instead of creating a symlink"},se={name:"--foreground-scripts",description:"Run all build scripts for installed packages in the foreground process, sharing standard input, output, and error with the main npm process"},Se={name:"--allow-git",description:"Limits the ability for npm to install git dependencies",args:{name:"allow-git",suggestions:["all","none","root"]}},De={name:"--allow-remote",description:"Limits the ability for npm to install user-supplied tarball URL dependencies",args:{name:"allow-remote",suggestions:["all","none","root"]}},oe=[{name:"--allow-publish",description:"Allows the trusted publisher to run npm publish for the package"},{name:["--allow-stage-publish","--allow-staged-publish"],description:"Allows the trusted publisher to run npm stage for the package"}],On={name:"npm",parserDirectives:{flagsArePosixNoncompliant:!0},description:"Node package manager",subcommands:[{name:["install","i","add"],description:"Install a package and its dependencies",args:{name:"package",isOptional:!0,generators:O,debounce:!0,isVariadic:!0},options:[{name:["-P","--save-prod"],description:"Package will appear in your `dependencies`. This is the default unless `-D` or `-O` are present"},{name:["-D","--save-dev"],description:"Package will appear in your `devDependencies`"},{name:["-O","--save-optional"],description:"Package will appear in your `optionalDependencies`"},{name:"--no-save",description:"Prevents saving to `dependencies`"},{name:["-E","--save-exact"],description:"Saved dependencies will be configured with an exact version rather than using npm's default semver range operator"},{name:["-B","--save-bundle"],description:"Saved dependencies will also be added to your bundleDependencies list"},V,H,{name:"--global-style",description:"Causes npm to install the package into your local node_modules folder with the same layout it uses with the global node_modules folder",deprecated:!0},{name:"--legacy-bundling",description:"Causes npm to install the package such that versions of npm prior to 1.4, such as the one included with node 0.8, can install the package",deprecated:!0},{name:"--legacy-peer-deps",description:"Bypass peerDependency auto-installation. Emulate install behavior of NPM v4 through v6"},{name:"--strict-peer-deps",description:"If set to true, and --legacy-peer-deps is not set, then any conflicting peerDependencies will be treated as an install failure"},{name:"--no-package-lock",description:"Ignores package-lock.json files when installing"},m,Me,A,z,se,Se,De,xe,{name:"--no-audit",description:"Do not submit audit reports alongside the current npm command"},{name:"--no-bin-links",description:"Tells npm to not create symlinks (or .cmd shims on Windows) for package executables"},{name:"--no-fund",description:"Hides the message at the end of each npm install acknowledging the number of dependencies looking for funding"},C,...u]},{name:["run","run-script"],description:"Run arbitrary package scripts",options:[...u,{name:"--if-present",description:"Npm will not exit with an error code when run-script is invoked for a script that isn't defined in the scripts section of package.json"},{name:"--silent",description:""},z,G,{name:"--",args:{name:"args",isVariadic:!0}}],args:{name:"script",description:"Script to run from your package.json",filterStrategy:"fuzzy",generators:R}},{name:"init",description:"Trigger the initialization",options:[{name:["-y","--yes"],description:"Automatically answer 'yes' to any prompts that npm might print on the command line"},{name:"-w",description:"Create the folders and boilerplate expected while also adding a reference to your project workspaces property",args:{name:"dir"}},{name:"--init-private",description:"Set the private field to true in package.json"},{name:"--scope",description:"Create a scoped package",args:{name:"scope",description:"Scope name"}}]},{name:"access",description:"Set access level on published packages",subcommands:[{name:"list",description:"List packages or collaborators",subcommands:[{name:"packages",description:"List all packages accessible by a user, scope or team",args:[{name:"user|scope|scope:team",isOptional:!0},{name:"package",isOptional:!0}]},{name:"collaborators",description:"List all users with access to a package",args:[{name:"package",isOptional:!0},{name:"user",isOptional:!0}]}]},{name:"get",description:"Get the access status of a package",subcommands:[{name:"status",description:"Get the visibility status of a package",args:{name:"package",isOptional:!0}}]},{name:"set",description:"Set the visibility status or publishing MFA requirement of a package",args:[{name:"status|mfa",suggestions:["status=public","status=private","mfa=none","mfa=publish","mfa=automation"]},{name:"package",isOptional:!0}]},{name:"grant",description:"Grant a team read-only or read-write access to a package",args:[{name:"permissions",suggestions:["read-only","read-write"]},{name:"scope:team"},{name:"package",isOptional:!0}]},{name:"revoke",description:"Revoke a team's access to a package",args:[{name:"scope:team"},{name:"package",isOptional:!0}]}],options:[h,w,m]},{name:"adduser",description:"Add a registry user account",deprecated:!0,options:[m,{name:"--scope",description:"Associate an operation with a scope for a scoped registry",args:{name:"scope",description:"Scope name"}}]},{name:"login",description:"Login to a registry user account",options:[m,{name:"--scope",description:"Associate an operation with a scope for a scoped registry",args:{name:"scope",description:"Scope name"}},{name:"--auth-type",description:"What authentication strategy to use with login",args:{name:"auth-type",default:"web",suggestions:["legacy","web"]}}]},{name:"audit",description:"Run a security audit",subcommands:[{name:"signatures",description:"Verify registry signatures and provenance attestations of downloaded packages",options:[h,{name:"--include-attestations",description:"Include full sigstore attestation bundles in the JSON output"}]},{name:"fix",description:"If the fix argument is provided, then remediations will be applied to the package tree",options:[C,{name:["-f","--force"],description:"Removes various protections against unfortunate side effects, common mistakes, unnecessary performance degradation, and malicious input",isDangerous:!0},...u]}],options:[...u,{name:"--audit-level",description:"The minimum level of vulnerability for npm audit to exit with a non-zero exit code",args:{name:"audit",suggestions:["info","low","moderate","high","critical","none"]}},{name:"--package-lock-only",description:"Current operation will only use the package-lock.json, ignoring node_modules"},h,A]},{name:"bin",description:"Print the folder where npm will install executables",deprecated:!0,options:[V]},{name:["bugs","issues"],description:"Report bugs for a package in a web browser",args:{name:"package",isOptional:!0,generators:O,debounce:!0,isVariadic:!0},options:[{name:"--no-browser",description:"Display in command line instead of browser",exclusiveOn:["--browser"]},{name:"--browser",description:"The browser that is called by the npm bugs command to open websites",args:{name:"browser"},exclusiveOn:["--no-browser"]},m]},{name:"cache",description:"Manipulates packages and npx cache",subcommands:[{name:"add",description:"Add the specified packages to the local cache"},{name:"clean",description:"Delete a single entry or all entries out of the cache folder",args:{name:"key",isOptional:!0}},{name:"ls",description:"List given entries or all entries in the local cache",args:{name:"name@version",isOptional:!0,isVariadic:!0}},{name:"verify",description:"Verify the contents of the cache folder, garbage collecting any unneeded data, and verifying the integrity of the cache index and all cached data"},{name:"npx",description:"Manipulates the npx cache",subcommands:[{name:"ls",description:"List all entries in the npx cache"},{name:"rm",description:"Remove given entries or all entries from the npx cache",args:{name:"key",isOptional:!0,isVariadic:!0}},{name:"info",description:"Get detailed information about given entries in the npx cache",args:{name:"key",isVariadic:!0}}]}],options:[{name:"--cache",args:{name:"cache"},description:"The location of npm's cache directory"}]},{name:["ci","clean-install","install-clean"],description:"Install a project with a clean slate",options:[{name:"--audit",description:'When "true" submit audit reports alongside the current npm command to the default registry and all registries configured for scopes',args:{name:"audit",suggestions:["true","false"]},exclusiveOn:["--no-audit"]},{name:"--no-audit",description:"Do not submit audit reports alongside the current npm command",exclusiveOn:["--audit"]},z,G,Me,m,H,A,se,Se,De]},{name:"cit",description:"Install a project with a clean slate and run tests"},{name:"clean-install-test",description:"Install a project with a clean slate and run tests"},{name:"completion",description:"Tab completion for npm"},{name:["config","c"],description:"Manage the npm configuration files",subcommands:[{name:"set",description:"Sets the config key to the value",args:[{name:"key"},{name:"value"}],options:[{name:["-g","--global"],description:"Sets it globally"}]},{name:"get",description:"Echo the config value to stdout",args:{name:"key"}},{name:"list",description:"Show all the config settings",options:[{name:"-g",description:"Lists globally installed packages"},{name:"-l",description:"Also shows defaults"},h]},{name:"delete",description:"Deletes the key from all configuration files",args:{name:"key"}},{name:"edit",description:"Opens the config file in an editor",options:[{name:"--global",description:"Edits the global config"}]},{name:"fix",description:"Attempts to repair invalid configuration items, such as attaching authentication configuration to the configured registry"}]},{name:"create",description:"Create a package.json file"},{name:["dedupe","ddp"],description:"Reduce duplication in the package tree"},{name:"deprecate",description:"Deprecate a version of a package",options:[m]},{name:"diff",description:"The registry diff command",args:{name:"paths",isOptional:!0,isVariadic:!0,template:"filepaths"},options:[{name:"--diff",description:"Define arguments to compare in npm diff",isRepeatable:2,args:{name:"package-spec"}},{name:"--diff-name-only",description:"Prints only filenames when using npm diff"},{name:"--diff-unified",description:"The number of lines of context to print in npm diff",args:{name:"number",default:"3"}},{name:"--diff-ignore-all-space",description:"Ignore whitespace when comparing lines in npm diff"},{name:"--diff-no-prefix",description:"Do not show any source or destination prefix in npm diff output"},{name:"--diff-src-prefix",description:"Source prefix to be used in npm diff output",args:{name:"path",default:"a/"}},{name:"--diff-dst-prefix",description:"Destination prefix to be used in npm diff output",args:{name:"path",default:"b/"}},{name:"--diff-text",description:"Treat all files as text in npm diff"},V,{name:"--tag",description:"The tag used to fetch the tarball that will be compared with the local files",args:{name:"tag",default:"latest"}},...u]},{name:"dist-tag",description:"Modify package distribution tags"},{name:["docs","home"],description:"Open documentation for a package in a web browser",args:{name:"package",isOptional:!0,generators:O,debounce:!0,isVariadic:!0},options:[...u,m,{name:"--no-browser",description:"Display in command line instead of browser",exclusiveOn:["--browser"]},{name:"--browser",description:"The browser that is called by the npm docs command to open websites",args:{name:"browser"},exclusiveOn:["--no-browser"]}]},{name:"doctor",description:"Check your npm environment",options:[m]},{name:"edit",description:"Edit an installed package",options:[{name:"--editor",description:"The command to run for npm edit or npm config edit"}]},{name:["exec","x"],description:"Run a command from a local or remote npm package",args:{name:"command",isOptional:!0,isVariadic:!0},options:[{name:"--package",description:"The package or packages to install for npm exec",isRepeatable:!0,args:{name:"package-spec",generators:O,debounce:!0}},{name:["-c","--call"],description:"Custom command to be run along with the installed packages",args:{name:"call"}},{name:["-y","--yes"],description:"Automatically answer 'yes' to the prompt to install missing packages",exclusiveOn:["--no"]},{name:"--no",description:"Automatically answer 'no' to the prompt to install missing packages",exclusiveOn:["-y","--yes"]},...u]},{name:["explain","why"],description:"Explain installed packages",args:{name:"package-spec",filterStrategy:"fuzzy",generators:x,isVariadic:!0},options:[h,...u]},{name:"explore",description:"Browse an installed package",args:{name:"package",filterStrategy:"fuzzy",generators:x}},{name:"find-dupes",description:"Find duplication in the package tree",options:[H,A,z,...u]},{name:"fund",description:"Retrieve funding information"},{name:"get",description:"Echo the config value to stdout"},{name:"help",description:"Get help on npm",args:{name:"term",isVariadic:!0,description:"Terms to search for"},options:[{name:"--viewer",description:"The program to use to view help content",args:{name:"viewer"}}]},{name:"help-search",description:"Search npm help documentation",args:{name:"text",description:"Text to search for"},options:[$]},{name:"hook",description:"Manage registry hooks",deprecated:!0},{name:"install-ci-test",description:"Install a project with a clean slate and run tests"},{name:"install-scripts",description:"Manage which dependencies are allowed to run install scripts",subcommands:[{name:"approve",description:"Approve install scripts for packages, pinned to their installed version",args:{name:"pkg",isOptional:!0,isVariadic:!0,generators:x},options:[{name:"--all",description:"Approve all currently-installed install scripts"}]},{name:"deny",description:"Deny install scripts for packages so they stay blocked",args:{name:"pkg",isOptional:!0,isVariadic:!0,generators:x},options:[{name:"--all",description:"Deny all currently-installed install scripts"}]},{name:"ls",description:"List packages whose install scripts still need review"},{name:"prune",description:"Remove stale allowScripts entries",options:[C]}]},{name:"install-test",description:"Install package(s) and run tests"},{name:"it",description:"Install package(s) and run tests"},{name:"link",description:"Symlink a package folder",args:{name:"path",template:"filepaths"}},{name:"ln",description:"Symlink a package folder"},{name:"logout",description:"Log out of the registry",options:[m,{name:"--scope",description:"Associate an operation with a scope for a scoped registry",args:{name:"scope",description:"Scope name"}}]},{name:["ls","list"],description:"List installed packages",options:pn,args:{name:"[@scope]/pkg",isVariadic:!0}},{name:"org",description:"Manage orgs",subcommands:[{name:"set",description:"Add a user to an org or manage roles",args:[{name:"orgname",description:"Organization name"},{name:"username",description:"User name"},{name:"role",isOptional:!0,suggestions:["developer","admin","owner"]}],options:[m,w]},{name:"rm",description:"Remove a user from an org",args:[{name:"orgname",description:"Organization name"},{name:"username",description:"User name"}],options:[m,w]},{name:"ls",description:"List users in an org or see what roles a particular user has in an org",args:[{name:"orgname",description:"Organization name"},{name:"username",description:"User name",isOptional:!0}],options:[m,w,h,E]}]},{name:"outdated",description:"Check for outdated packages",args:{name:"[<@scope>/]<pkg>",isVariadic:!0,isOptional:!0},options:[{name:["-a","--all"],description:"Show all outdated or installed packages"},h,$,E,{name:"-g",description:"Checks globally"},...u]},{name:["owner","author"],description:"Manage package owners",subcommands:[{name:"ls",description:"List all the users who have access to modify a package and push new versions. Handy when you need to know who to bug for help",args:{name:"[@scope/]pkg"},options:[m]},{name:"add",description:"Add a new user as a maintainer of a package. This user is enabled to modify metadata, publish new versions, and add other owners",args:[{name:"user"},{name:"[@scope/]pkg"}],options:[m,w]},{name:"rm",description:"Remove a user from the package owner list. This immediately revokes their privileges",args:[{name:"user"},{name:"[@scope/]pkg"}],options:[m,w]}]},{name:"pack",description:"Create a tarball from a package",args:{name:"[<@scope>/]<pkg>"},options:[h,C,...u,{name:"--pack-destination",description:"Directory in which npm pack will save tarballs",args:{name:"pack-destination",template:["folders"]}}]},{name:"ping",description:"Ping npm registry",options:[m]},{name:"pkg",description:"Manages your package.json",subcommands:[{name:"get",description:"Retrieves a value key, defined in your package.json file. It is possible to get multiple values and values for child fields",args:{name:"field",description:"Name of the field to get. You can view child fields by separating them with a period",isVariadic:!0},options:[h,...u]},{name:"set",description:"Sets a value in your package.json based on the field value. It is possible to set multiple values and values for child fields",args:{name:"field",description:"Name of the field to set. You can set child fields by separating them with a period",isVariadic:!0},options:[h,...u,{name:["-f","--force"],description:"Removes various protections against unfortunate side effects, common mistakes, unnecessary performance degradation, and malicious input. Allow clobbering existing values in npm pkg",isDangerous:!0}]},{name:"delete",description:"Deletes a key from your package.json",args:{name:"key",description:"Name of the key to delete. You can delete child fields by separating them with a period",isVariadic:!0},options:[...u,{name:["-f","--force"],description:"Removes various protections against unfortunate side effects, common mistakes, unnecessary performance degradation, and malicious input. Allow clobbering existing values in npm pkg",isDangerous:!0}]},{name:"fix",description:"Auto corrects common errors in your package.json",options:u}]},{name:"prefix",description:"Display prefix",options:[{name:["-g","--global"],description:"Print the global prefix to standard out"}]},{name:"profile",description:"Change settings on your registry profile",subcommands:[{name:"get",description:"Display all of the properties of your profile, or one or more specific properties",args:{name:"property",isOptional:!0,description:"Property name"},options:[m,h,E,w]},{name:"set",description:"Set the value of a profile property",args:[{name:"property",description:"Property name",suggestions:["email","fullname","homepage","freenode","twitter","github"]},{name:"value",description:"Property value"}],options:[m,h,E,w],subcommands:[{name:"password",description:"Change your password. This is interactive, you'll be prompted for your current password and a new password"}]},{name:"enable-2fa",description:"Enables two-factor authentication",args:{name:"mode",description:"Mode for two-factor authentication. Defaults to auth-and-writes mode",isOptional:!0,suggestions:[{name:"auth-only",description:"Require an OTP when logging in or making changes to your account's authentication"},{name:"auth-and-writes",description:"Requires an OTP at all the times auth-only does, and also requires one when publishing a module, setting the latest dist-tag, or changing access via npm access and npm owner"}]},options:[m,w]},{name:"disable-2fa",description:"Disables two-factor authentication",options:[m,w]}]},{name:"prune",description:"Remove extraneous packages",args:{name:"[<@scope>/]<pkg>",isOptional:!0},options:[A,C,h,{name:"--production",description:"Remove the packages specified in your devDependencies"},...u]},{name:"publish",description:"Publish a package",args:{name:"tarball|folder",isOptional:!0,description:"A url or file path to a gzipped tar archive containing a single folder with a package.json file inside | A folder containing a package.json file",template:["folders"]},options:[{name:"--tag",description:"Registers the published package with the given tag",args:{name:"tag"}},...u,{name:"--access",description:"Sets scoped package to be publicly viewable if set to 'public'",args:{default:"restricted",suggestions:["restricted","public"]}},C,w,{name:"--provenance",description:"When publishing from a supported cloud CI/CD system, the package will be publicly linked to where it was built and published from",exclusiveOn:["--provenance-file"]},{name:"--provenance-file",description:"When publishing, the provenance bundle at the given path will be used",args:{name:"file",template:"filepaths"},exclusiveOn:["--provenance"]}]},{name:"query",description:"Retrieve a filtered list of packages",args:{name:"selector",description:"Dependency selector, e.g. ':root > .prod'"},options:[V,...u,{name:"--package-lock-only",description:"Current operation will only use the package-lock.json, ignoring node_modules"},{name:"--expect-results",description:"Exit with an error code if the query has no results",exclusiveOn:["--no-expect-results","--expect-result-count"]},{name:"--no-expect-results",description:"Exit with an error code if the query has any results",exclusiveOn:["--expect-results","--expect-result-count"]},{name:"--expect-result-count",description:"Exit with an error code if the query does not return exactly this many results",args:{name:"count"},exclusiveOn:["--expect-results","--no-expect-results"]}]},{name:["rebuild","rb"],description:"Rebuild a package",args:{name:"[<@scope>/]<pkg>[@<version>]"},options:[V,...u,z,{name:"--no-bin-links",description:"Tells npm to not create symlinks (or .cmd shims on Windows) for package executables"}]},{name:"repo",description:"Open package repository page in the browser",args:{name:"package",isOptional:!0,generators:O,debounce:!0,isVariadic:!0},options:[...u,{name:"--no-browser",description:"Display in command line instead of browser",exclusiveOn:["--browser"]},{name:"--browser",description:"The browser that is called by the npm repo command to open websites",args:{name:"browser"},exclusiveOn:["--no-browser"]}]},{name:"restart",description:"Restart a package",options:[z,G,{name:"--",args:{name:"arg",description:"Arguments to be passed to the restart script"}}]},{name:"root",description:"Display npm root",options:[{name:["-g","--global"],description:"Print the effective global node_modules folder to standard out"}]},{name:"sbom",description:"Generate a Software Bill of Materials (SBOM)",options:[A,{name:"--package-lock-only",description:"Current operation will only use the package-lock.json, ignoring node_modules"},{name:"--sbom-format",description:"SBOM format to use when generating SBOMs",args:{name:"format",suggestions:["cyclonedx","spdx"]}},...u]},{name:["search","s","se","find"],description:"Search for packages",args:{name:"search terms",isVariadic:!0},options:[$,h,{name:"--color",description:"Show colors",args:{name:"always",suggestions:["always"],description:"Always show colors"},exclusiveOn:["--no-color"]},{name:"--no-color",description:"Do not show colors",exclusiveOn:["--color"]},E,{name:"--no-description",description:"Do not show descriptions"},{name:"--searchopts",description:"Space-separated options that are always passed to search",args:{name:"searchopts"}},{name:"--searchexclude",description:"Space-separated options that limit the results from search",args:{name:"searchexclude"}},m,{name:"--prefer-online",description:"If true, staleness checks for cached data will be forced, making the CLI look for updates immediately even for fresh package data",exclusiveOn:["--prefer-offline","--offline"]},{name:"--prefer-offline",description:"If true, staleness checks for cached data will be bypassed, but missing data will be requested from the server",exclusiveOn:["--prefer-online","--offline"]},{name:"--offline",description:"Force offline mode: no network requests will be done during install",exclusiveOn:["--prefer-online","--prefer-offline"]}]},{name:"set",description:"Sets the config key to the value"},{name:"set-script",description:"Set tasks in the scripts section of package.json",deprecated:!0,args:[{name:"script",description:"Name of the task to be added to the scripts section of package.json"},{name:"command",description:"Command to run when script is called"}],options:u},{name:"shrinkwrap",description:"Lock down dependency versions for publication",deprecated:!0},{name:"stage",description:"Stage a package for publishing, deferring 2FA to a later approval",subcommands:[{name:"publish",description:"Stage a package for publishing",args:{name:"package-spec",isOptional:!0,template:["folders"]},options:[{name:"--tag",description:"Registers the staged package with the given tag",args:{name:"tag"}}]},{name:"list",description:"List all staged package versions",args:{name:"package-spec",isOptional:!0}},{name:"view",description:"View details of a specific staged package",args:{name:"stage-id"}},{name:"approve",description:"Approve a staged package for publishing",args:{name:"stage-id"}},{name:"reject",description:"Reject a staged package",args:{name:"stage-id"}},{name:"download",description:"Download the tarball of a staged package for inspection",args:{name:"stage-id"}}]},{name:"star",description:"Mark your favorite packages",deprecated:!0,args:{name:"pkg",description:"Package to mark as favorite"},options:[m,{name:"--no-unicode",description:"Do not use unicode characters in the tree output"}]},{name:"stars",description:"View packages marked as favorites",deprecated:!0,args:{name:"user",isOptional:!0,description:"View packages marked as favorites by <user>"},options:[m]},{name:"start",description:"Start a package",options:[z,G,{name:"--",args:{name:"arg",description:"Arguments to be passed to the start script"}}]},{name:"stop",description:"Stop a package",options:[z,G,{name:"--",args:{name:"arg",description:"Arguments to be passed to the stop script"}}]},{name:"team",description:"Manage organization teams and team memberships",subcommands:[{name:"create",args:{name:"scope:team"},options:[m,w]},{name:"destroy",args:{name:"scope:team"},options:[m,w]},{name:"add",args:[{name:"scope:team"},{name:"user"}],options:[m,w]},{name:"rm",args:[{name:"scope:team"},{name:"user"}],options:[m,w]},{name:"ls",args:{name:"scope|scope:team"},options:[m,h,E]}]},{name:["test","tst","t"],description:"Test a package",options:[z,G]},{name:"token",description:"Manage your authentication tokens",subcommands:[{name:"list",description:"Shows a table of all active authentication tokens",options:[h,E]},{name:"create",description:"Create a new authentication token",options:[{name:"--read-only",description:"This is used to mark a token as unable to publish when configuring limited access tokens with the npm token create command"},{name:"--cidr",description:"This is a list of CIDR address to be used when configuring limited access tokens with the npm token create command",isRepeatable:!0,args:{name:"cidr"}}]},{name:"revoke",description:"Immediately removes an authentication token from the registry. You will no longer be able to use it",args:{name:"idtoken"}}],options:[m,w]},{name:"trust",description:"Create a trusted relationship between a package and an OIDC provider",subcommands:[{name:"github",description:"Create a trusted relationship between a package and GitHub Actions",args:{name:"package",isOptional:!0},options:[...oe,{name:"--file",description:"Name of the workflow file within the repository's .github folder (must end in yaml or yml)",isRequired:!0,args:{name:"file"}},{name:["--repository","--repo"],description:"Name of the repository in the format owner/repo",args:{name:"repository"}},{name:["--environment","--env"],description:"CI environment name",args:{name:"environment"}}]},{name:"gitlab",description:"Create a trusted relationship between a package and GitLab CI/CD",args:{name:"package",isOptional:!0},options:[...oe,{name:"--file",description:"Name of the pipeline file (e.g. .gitlab-ci.yml)",isRequired:!0,args:{name:"file"}},{name:"--project",description:"Name of the project in the format group/project or group/subgroup/project",args:{name:"project"}},{name:["--environment","--env"],description:"CI environment name",args:{name:"environment"}}]},{name:"circleci",description:"Create a trusted relationship between a package and CircleCI",args:{name:"package",isOptional:!0},options:[...oe,{name:"--org-id",description:"CircleCI organization UUID",isRequired:!0,args:{name:"org-id"}},{name:"--project-id",description:"CircleCI project UUID",isRequired:!0,args:{name:"project-id"}},{name:"--pipeline-definition-id",description:"CircleCI pipeline definition UUID",isRequired:!0,args:{name:"pipeline-definition-id"}},{name:"--vcs-origin",description:"CircleCI repository origin in the format provider/owner/repo",isRequired:!0,args:{name:"vcs-origin"}},{name:"--context-id",description:"CircleCI context UUID to match",isRepeatable:!0,args:{name:"context-id"}}]},{name:"list",description:"List trusted relationships for a package",args:{name:"package",isOptional:!0}},{name:"revoke",description:"Revoke a trusted relationship for a package",args:{name:"package",isOptional:!0},options:[{name:"--id",description:"ID of the trusted relationship to revoke",args:{name:"trust-id"}}]}]},{name:"undeprecate",description:"Undeprecate a version of a package",args:{name:"package-spec"},options:[m,w,C]},Q("uninstall"),Q(["r","rm"]),Q("un"),Q("remove"),Q("unlink"),{name:"unpublish",description:"Remove a package from the registry",args:{name:"[<@scope>/]<pkg>[@<version>]"},options:[C,{name:["-f","--force"],description:"Allow unpublishing all versions of a published package. Removes various protections against unfortunate side effects, common mistakes, unnecessary performance degradation, and malicious input",isDangerous:!0},...u]},{name:"unstar",description:"Remove an item from your favorite packages",deprecated:!0,args:{name:"pkg",description:"Package to unmark as favorite"},options:[m,w,{name:"--no-unicode",description:"Do not use unicode characters in the tree output"}]},{name:["update","upgrade","up","u"],description:"Update a package",options:[{name:"-g",description:"Update global package"},H,{name:"--global-style",description:"Causes npm to install the package into your local node_modules folder with the same layout it uses with the global node_modules folder",deprecated:!0},{name:"--legacy-bundling",description:"Causes npm to install the package such that versions of npm prior to 1.4, such as the one included with node 0.8, can install the package",deprecated:!0},{name:"--strict-peer-deps",description:"If set to true, and --legacy-peer-deps is not set, then any conflicting peerDependencies will be treated as an install failure"},{name:"--no-package-lock",description:"Ignores package-lock.json files when installing"},A,z,se,xe,{name:"--no-audit",description:"Do not submit audit reports alongside the current npm command"},{name:"--no-bin-links",description:"Tells npm to not create symlinks (or .cmd shims on Windows) for package executables"},{name:"--no-fund",description:"Hides the message at the end of each npm install acknowledging the number of dependencies looking for funding"},{name:"--save",description:"Update the semver values of direct dependencies in your project package.json"},C,...u]},{name:"version",description:"Bump a package version",options:[...u,h,{name:"--allow-same-version",description:"Prevents throwing an error when npm version is used to set the new version to the same value as the current version"},{name:"--no-commit-hooks",description:"Do not run git commit hooks when using the npm version command"},{name:"--no-git-tag-version",description:"Do not tag the commit when using the npm version command"},{name:"--preid",description:'The "prerelease identifier" to use as a prefix for the "prerelease" part of a semver. Like the rc in 1.2.0-rc.8',args:{name:"prerelease-id"}},{name:"--sign-git-tag",description:"If set to true, then the npm version command will tag the version using -s to add a signature"}]},{name:["view","v","info","show"],description:"View registry info",options:[...u,h]},{name:"whoami",description:"Display npm username",options:[m]}]};var dn={name:"autocannon",description:"Fast HTTP/1.1 benchmarking tool written in Node.js",icon:"https://raw.githubusercontent.com/mcollina/autocannon/master/autocannon-logo-icon-100px.png",args:{name:"URL",description:"The URL to benchmark"},options:[{name:["-c","--connections"],description:"The number of concurrent connections to use",args:{name:"NUM",default:"10"}},{name:["-p","--pipelining"],description:"The number of pipelined requests to use",args:{name:"NUM",default:"1"}},{name:["-d","--duration"],description:"The number of seconds to run the autocannon",exclusiveOn:["-a","--amount"],args:{name:"SEC",default:"10"}},{name:["-a","--amount"],description:"The number of requests to make before exiting the benchmark",exclusiveOn:["-d","--duration"],args:{name:"NUM"}},{name:"-L",description:"The number of milliseconds to elapse between taking samples. This controls the sample interval, & therefore the total number of samples, which affects statistical analyses",args:{name:"NUM",default:"1"}},{name:["-S","--socketPath"],description:"A path to a Unix Domain Socket or a Windows Named Pipe. A URL is still required to send the correct Host header and path",args:{name:"PATH"}},{name:["-w","--workers"],description:"Number of worker threads to use to fire requests",args:{name:"NUM",default:"1"}},{name:["-W","--warmup"],description:"Use a warm up interval before starting sampling. This enables startup processes to finish and traffic to normalize before sampling begins",args:[{name:"-c",default:"1"},{name:"-d",default:"3"}]},{name:"--on-port",description:"Start the command listed after -- on the command line. When it starts listening on a port, start sending requests to that port. A URL is still required to send requests to the correct path. The hostname can be omitted, `localhost` will be used by default",args:{name:"PORT"}},{name:["-m","--method"],description:"The HTTP method to use",args:{name:"METHOD",default:"GET",suggestions:["GET","POST","PUT","DELETE","PATCH","HEAD","OPTIONS","TRACE"]}},{name:["-t","--timeout"],description:"The number of seconds before timing out and resetting a connection",args:{name:"NUM",default:"10"}},{name:["-T","--title"],description:"The title to place in the results for identification",args:{name:"TITLE"}},{name:["-b","--body"],description:"The body of the request",dependsOn:["-H","--headers"],args:{name:"BODY"}},{name:["-F","--form"],args:{name:"FORM"}},{name:["-i","--input"],description:"The body of the request",dependsOn:["-H","--headers"],args:{name:"FILE",generators:{template:"filepaths"}}},{name:["-H","--headers"],description:"The request headers",isRepeatable:!0,args:{name:"K=V"}},{name:"--har",description:"When provided, Autocannon will use requests from the HAR file",args:{name:"FILE",template:"filepaths"}},{name:["-B","--bailout"],description:"The number of failures before initiating a bailout",args:{name:"NUM",default:"0"}},{name:["-M","--maxConnectionRequests"],description:"The max number of requests to make per connection to the server",args:{name:"NUM"}},{name:["-O","--maxOverallRequests"],description:"The max number of requests to make overall to the server",args:{name:"NUM"}},{name:["-r","--connectionRate"],description:"The max number of requests to make per second from an individual connection",args:{name:"NUM"}},{name:["-R","--overallRate"],description:"The max number of requests to make per second from all connections",args:{name:"NUM"}},{name:["-C","--ignoreCoordinatedOmission"],description:"Ignore the coordinated omission issue when requests should be sent at a fixed rate using 'connectionRate' or 'overallRate'"},{name:["-D","--reconnectRate"],description:"The number of requests to make before resetting a connections connection to the server",args:{name:"NUM"}},{name:["-n","--no-progress"],description:"Don't render the progress bar. default: false"},{name:["-l","--latency"],description:"Print all the latency data. default: false"},{name:["-I","--idReplacement"],description:"Enable replacement of [<id>] with a randomly generated ID within the request body. default: false"},{name:["-j","--jsonPath"],description:"Print the output as newline delimited JSON. This will cause the progress bar and results not to be rendered"},{name:["-f","--forever"],description:"Run the benchmark forever. Efficiently restarts the benchmark on completion"},{name:["-s","--servername"],description:"Server name for the SNI (Server Name Indication) TLS extension. Defaults to the hostname of the URL when it is not an IP address"},{name:["-x","--excludeErrorStats"],description:"Exclude error statistics (non-2xx HTTP responses) from the final latency and bytes per second averages. default: false"},{name:["-E","--expectBody"],description:"Ensure the body matches this value. If enabled, mismatches count towards bailout. Enabling this option will slow down the load testing",args:{name:"EXPECTED"}},{name:"--renderStatusCodes",description:"Print status codes and their respective statistics"},{name:"--cert",description:"Path to cert chain in pem format",args:{name:"FILE",template:"filepaths"}},{name:"--key",description:"Path to private key for specified cert in pem format",args:{name:"FILE",template:"filepaths"}},{name:"--ca",description:"Path to trusted ca certificates for the test. This argument accepts both a single file as well as a list of files",args:{name:"FILE",template:"filepaths",isVariadic:!0}},{name:"--debug",description:"Print connection errors to stderr"},{name:["-v","--version"],description:"Print the version number"},{name:["-V","--verbose"],description:"Print the table with results (default: true)"},{name:["-h","--help"],description:"Print help"}]},X=dn;var K=[{name:X.name,..."icon"in X&&{icon:X.icon}},{name:"vite",icon:"https://vitejs.dev/logo.svg"},{name:"babel",icon:"https://raw.githubusercontent.com/babel/logo/master/babel.png"},{name:"create-react-native-app",icon:"https://reactnative.dev/img/pwa/manifest-icon-512.png"},{name:"react-native",icon:"https://reactnative.dev/img/pwa/manifest-icon-512.png"},{name:"tailwindcss",icon:"https://tailwindcss.com/favicons/favicon-32x32.png"},{name:"next",icon:"https://nextjs.org/static/favicon/favicon-16x16.png"},{name:"nuxi",icon:"https://raw.githubusercontent.com/nuxt/framework/main/docs/public/icon.png"},{name:"gltfjsx",icon:"https://raw.githubusercontent.com/pmndrs/branding/master/logo.svg"},{name:"prisma",icon:"https://raw.githubusercontent.com/prisma/docs/main/src/images/favicon-16x16.png"},{name:"eslint",icon:"https://raw.githubusercontent.com/eslint/eslint.org/main/src/static/icon-512.png"},{name:"prettier",icon:"https://prettier.io/icon.png"},{name:"tsc",icon:"https://upload.wikimedia.org/wikipedia/commons/thumb/4/4c/Typescript_logo_2020.svg/240px-Typescript_logo_2020.svg.png"},{name:"typeorm",icon:"https://avatars.githubusercontent.com/u/20165699?s=200&v=4"},{name:"@withfig/autocomplete-tools",icon:"https://fig.io/icons/fig-light.png"},{name:"create-completion-spec",icon:"https://fig.io/icons/fig-light.png"},{name:"@fig/publish-spec-to-team",icon:"https://fig.io/icons/fig-light.png"},{name:"fig-teams@latest",icon:"https://fig.io/icons/fig-light.png"},{name:"create-next-app",icon:"https://nextjs.org/static/favicon/favicon-16x16.png"},{name:"create-t3-app",icon:"https://create.t3.gg/favicon.svg"},{name:"create-discord-bot",icon:"https://discordjs.dev/favicon-32x32.png"},{name:"create-video",icon:"https://raw.githubusercontent.com/remotion-dev/remotion/main/packages/docs/static/img/logo-small.png"},{name:"remotion",icon:"https://raw.githubusercontent.com/remotion-dev/remotion/main/packages/docs/static/img/logo-small.png"},{name:"create-remix",icon:"https://remix.run/favicon-light.1.png"},{name:"remix",icon:"https://remix.run/favicon-light.1.png"},{name:"playwright",icon:"https://playwright.dev/img/playwright-logo.svg"},{name:"ignite-cli",icon:"\u{1F525}"},{name:"vsce"},{name:"degit",icon:"fig://icon?type=git"},{name:"@preset/cli",icon:"https://raw.githubusercontent.com/preset/preset/main/.github/assets/logo.svg"},{name:"mikro-orm",icon:"https://raw.githubusercontent.com/mikro-orm/mikro-orm/master/docs/static/img/favicon.ico"},{name:"pod-install"},{name:"capacitor",icon:"https://capacitorjs.com/docs/img/meta/favicon.png"},{name:"cap",icon:"https://capacitorjs.com/docs/img/meta/favicon.png"},{name:"@magnolia/cli",icon:"https://avatars.githubusercontent.com/u/25686615?s=200&v=4"},{name:"stencil",icon:"https://stenciljs.com/assets/icon/favicon.ico"},{name:"swagger-typescript-api",icon:"https://static1.smartbear.co/swagger/media/assets/swagger_fav.png"},{name:"sta",icon:"https://static1.smartbear.co/swagger/media/assets/swagger_fav.png"},{name:"@wordpress/create-block",icon:"https://s1.wp.com/i/webclip.png"},{name:"astro",icon:"https://astro.build/favicon.svg"},{name:"ampx",icon:"https://raw.githubusercontent.com/aws-amplify/docs/refs/heads/main/public/favicon.ico"}],zn={name:"npx",description:"Execute binaries from npm packages",args:{name:"command",isCommand:!0,generators:{script:["bash","-c","until [[ -d node_modules/ ]] || [[ $PWD = '/' ]]; do cd ..; done; ls -1 node_modules/.bin/"],postProcess:function(e){let n=[...K].reduce((t,{name:a})=>[...t,a],[]);return e.split(`
|
|
4
|
+
`).filter(t=>!n.includes(t)).map(t=>({name:t,icon:"fig://icon?type=command",loadSpec:t}))}},suggestions:[...K],isOptional:!0},options:[{name:["--package","-p"],description:"Package to be installed",args:{name:"package"}},{name:"--cache",args:{name:"path",template:"filepaths"},description:"Location of the npm cache"},{name:"--always-spawn",description:"Always spawn a child process to execute the command"},{name:"-y",description:"Execute npx command without prompting for confirmation"},{description:"Skip installation if a package is missing",name:"--no-install"},{args:{name:"path",template:"filepaths"},description:"Path to user npmrc",name:"--userconfig"},{name:["--call","-c"],args:{name:"script"},description:"Execute string as if inside `npm run-script`"},{name:["--shell","-s"],description:"Shell to execute the command with, if any",args:{name:"shell",suggestions:[{name:"bash"},{name:"fish"},{name:"zsh"}]}},{args:{name:"shell-fallback",suggestions:[{name:"bash"},{name:"fish"},{name:"zsh"}]},name:"--shell-auto-fallback",description:'Generate shell code to use npx as the "command not found" fallback'},{name:"--ignore-existing",description:"Ignores existing binaries in $PATH, or in the localproject. This forces npx to do a temporary install and use the latest version"},{name:["--quiet","-q"],description:"Suppress output from npx itself. Subcommands will not be affected"},{name:"--npm",args:{name:"path to binary",template:"filepaths"},description:"Npm binary to use for internal operations"},{args:{},description:"Extra node argument when calling a node binary",name:["--node-arg","-n"]},{description:"Show version number",name:["--version","-v"]},{description:"Show help",name:["--help","-h"]}]};var Oe={alias:async(e,n)=>{let t=await n({command:"npm",args:["prefix"]});if(t.status!==0)throw new Error("npm prefix command failed");let a=await n({command:"cat",args:[`${t.stdout.trim()}/package.json`]}),i=JSON.parse(a.stdout).scripts?.[e];if(!i)throw new Error(`Script not found: '${e}'`);return i}},ln=new Set(["vue","vite","nuxt","react-native","degit","expo","jest","next","electron","prisma","eslint","prettier","tsc","typeorm","babel","remotion","autocomplete-tools","redwood","rw","create-completion-spec","publish-spec-to-team","capacitor","cap"]),mn={custom:async(e,n,t)=>{let{stdout:a}=await n({command:"yarn",args:["global","dir"]}),{stdout:i}=await n({command:"cat",args:[`${a.trim()}/package.json`]});if(i.trim()=="")return[];try{let s=JSON.parse(i),o=s.dependencies||{},c=s.devDependencies||{};return[...Object.keys(o),...Object.keys(c)].filter(r=>!e.includes(r)).map(r=>({name:r,icon:"\u{1F4E6}"}))}catch{}return[]}},un={script:["yarn","list","--depth=0","--json"],postProcess:e=>{if(e.trim()=="")return[];try{return JSON.parse(e).data.trees.map(a=>({name:a.name.split("@")[0],icon:"\u{1F4E6}"}))}catch{}return[]}},Ne={script:["yarn","config","list"],postProcess:function(e){if(e.trim()=="")return[];try{let n=e.indexOf("{"),t=e.indexOf("}"),a=e.substring(n,t+1);a=a.replace(/\'/gi,'"').replace("lastUpdateCheck",'"lastUpdateCheck"').replace("registry",'"lastUpdateCheck"');let i=JSON.parse(a);if(i)return Object.keys(i).map(s=>({name:s}))}catch{}return[]}},Ie={script:["bash","-c","until [[ -f package.json ]] || [[ $PWD = '/' ]]; do cd ..; done; cat package.json"],postProcess:function(e,n=[]){if(e.trim()==="")return[];try{let t=JSON.parse(e),a=t.dependencies??{},i=t.devDependencies,s=t.optionalDependencies??{};return Object.assign(a,i,s),Object.keys(a).filter(o=>!n.some(p=>p===o)).map(o=>({name:o,icon:"\u{1F4E6}",description:a[o]?"dependency":s[o]?"optionalDependency":"devDependency"}))}catch(t){return console.error(t),[]}}},v=[{name:["-s","--silent"],description:"Skip Yarn console logs"},{name:"--no-default-rc",description:"Prevent Yarn from automatically detecting yarnrc and npmrc files"},{name:"--use-yarnrc",description:"Specifies a yarnrc file that Yarn should use (.yarnrc only, not .npmrc) (default: )",args:{name:"path",template:"filepaths"}},{name:"--verbose",description:"Output verbose messages on internal operations"},{name:"--offline",description:"Trigger an error if any required dependencies are not available in local cache"},{name:"--prefer-offline",description:"Use network only if dependencies are not available in local cache"},{name:["--enable-pnp","--pnp"],description:"Enable the Plug'n'Play installation"},{name:"--json",description:"Format Yarn log messages as lines of JSON"},{name:"--ignore-scripts",description:"Don't run lifecycle scripts"},{name:"--har",description:"Save HAR output of network traffic"},{name:"--ignore-platform",description:"Ignore platform checks"},{name:"--ignore-engines",description:"Ignore engines check"},{name:"--ignore-optional",description:"Ignore optional dependencies"},{name:"--force",description:"Install and build packages even if they were built before, overwrite lockfile"},{name:"--skip-integrity-check",description:"Run install without checking if node_modules is installed"},{name:"--check-files",description:"Install will verify file tree of packages for consistency"},{name:"--no-bin-links",description:"Don't generate bin links when setting up packages"},{name:"--flat",description:"Only allow one version of a package"},{name:["--prod","--production"],description:"Instruct Yarn to ignore NODE_ENV and take its production-or-not status from this flag instead"},{name:"--no-lockfile",description:"Don't read or generate a lockfile"},{name:"--pure-lockfile",description:"Don't generate a lockfile"},{name:"--frozen-lockfile",description:"Don't generate a lockfile and fail if an update is needed"},{name:"--update-checksums",description:"Update package checksums from current repository"},{name:"--link-duplicates",description:"Create hardlinks to the repeated modules in node_modules"},{name:"--link-folder",description:"Specify a custom folder to store global links",args:{name:"path",template:"folders"}},{name:"--global-folder",description:"Specify a custom folder to store global packages",args:{name:"path",template:"folders"}},{name:"--modules-folder",description:"Rather than installing modules into the node_modules folder relative to the cwd, output them here",args:{name:"path",template:"folders"}},{name:"--preferred-cache-folder",description:"Specify a custom folder to store the yarn cache if possible",args:{name:"path",template:"folders"}},{name:"--cache-folder",description:"Specify a custom folder that must be used to store the yarn cache",args:{name:"path",template:"folders"}},{name:"--mutex",description:"Use a mutex to ensure only one yarn instance is executing",args:{name:"type[:specifier]"}},{name:"--emoji",description:"Enables emoji in output",args:{default:"true",suggestions:["true","false"]}},{name:"--cwd",description:"Working directory to use",args:{name:"cwd",template:"folders"}},{name:["--proxy","--https-proxy"],description:"",args:{name:"host"}},{name:"--registry",description:"Override configuration registry",args:{name:"url"}},{name:"--no-progress",description:"Disable progress bar"},{name:"--network-concurrency",description:"Maximum number of concurrent network requests",args:{name:"number"}},{name:"--network-timeout",description:"TCP timeout for network requests",args:{name:"milliseconds"}},{name:"--non-interactive",description:"Do not show interactive prompts"},{name:"--scripts-prepend-node-path",description:"Prepend the node executable dir to the PATH in scripts"},{name:"--no-node-version-check",description:"Do not warn when using a potentially unsupported Node version"},{name:"--focus",description:"Focus on a single workspace by installing remote copies of its sibling workspaces"},{name:"--otp",description:"One-time password for two factor authentication",args:{name:"otpcode"}}],ce={script:function(e){return e[e.length-1]===""?void 0:["curl","-s","-H","Accept: application/json",`https://api.npms.io/v2/search?q=${"create-"+e[e.length-1]}&size=20`]},cache:{ttl:100*24*60*60*3},postProcess:function(e){try{return JSON.parse(e).results.map(n=>({name:n.package.name.substring(7),description:n.package.description}))}catch{return[]}}},An={name:"yarn",description:"Manage packages and run scripts",generateSpec:async(e,n)=>({name:"yarn",subcommands:(await n({command:"bash",args:["-c","until [[ -d node_modules/ ]] || [[ $PWD = '/' ]]; do cd ..; done; ls -1 node_modules/.bin/"]})).stdout.split(`
|
|
5
|
+
`).filter(i=>ln.has(i)).map(i=>({name:i,loadSpec:i==="rw"?"redwood":i,icon:"fig://icon?type=package"}))}),args:{generators:R,filterStrategy:"fuzzy",parserDirectives:Oe,isOptional:!0,isCommand:!0},options:[{name:"--disable-pnp",description:"Disable the Plug'n'Play installation"},{name:"--emoji",description:"Enable emoji in output (default: true)",args:{name:"bool",suggestions:[{name:"true"},{name:"false"}]}},{name:["--enable-pnp","--pnp"],description:"Enable the Plug'n'Play installation"},{name:"--flat",description:"Only allow one version of a package"},{name:"--focus",description:"Focus on a single workspace by installing remote copies of its sibling workspaces"},{name:"--force",description:"Install and build packages even if they were built before, overwrite lockfile"},{name:"--frozen-lockfile",description:"Don't generate a lockfile and fail if an update is needed"},{name:"--global-folder",description:"Specify a custom folder to store global packages",args:{template:"folders"}},{name:"--har",description:"Save HAR output of network traffic"},{name:"--https-proxy",description:"",args:{name:"path",suggestions:[{name:"https://"}]}},{name:"--ignore-engines",description:"Ignore engines check"},{name:"--ignore-optional",description:"Ignore optional dependencies"},{name:"--ignore-platform",description:"Ignore platform checks"},{name:"--ignore-scripts",description:"Don't run lifecycle scripts"},{name:"--json",description:"Format Yarn log messages as lines of JSON (see jsonlines.org)"},{name:"--link-duplicates",description:"Create hardlinks to the repeated modules in node_modules"},{name:"--link-folder",description:"Specify a custom folder to store global links",args:{template:"folders"}},{name:"--modules-folder",description:"Rather than installing modules into the node_modules folder relative to the cwd, output them here",args:{template:"folders"}},{name:"--mutex",description:"Use a mutex to ensure only one yarn instance is executing",args:[{name:"type",suggestions:[{name:":"}]},{name:"specifier",suggestions:[{name:":"}]}]},{name:"--network-concurrency",description:"Maximum number of concurrent network requests",args:{name:"number"}},{name:"--network-timeout",description:"TCP timeout for network requests",args:{name:"milliseconds"}},{name:"--no-bin-links",description:"Don't generate bin links when setting up packages"},{name:"--no-default-rc",description:"Prevent Yarn from automatically detecting yarnrc and npmrc files"},{name:"--no-lockfile",description:"Don't read or generate a lockfile"},{name:"--non-interactive",description:"Do not show interactive prompts"},{name:"--no-node-version-check",description:"Do not warn when using a potentially unsupported Node version"},{name:"--no-progress",description:"Disable progress bar"},{name:"--offline",description:"Trigger an error if any required dependencies are not available in local cache"},{name:"--otp",description:"One-time password for two factor authentication",args:{name:"otpcode"}},{name:"--prefer-offline",description:"Use network only if dependencies are not available in local cache"},{name:"--preferred-cache-folder",description:"Specify a custom folder to store the yarn cache if possible",args:{template:"folders"}},{name:["--prod","--production"],description:"",args:{}},{name:"--proxy",description:"",args:{name:"host"}},{name:"--pure-lockfile",description:"Don't generate a lockfile"},{name:"--registry",description:"Override configuration registry",args:{name:"url"}},{name:["-s","--silent"],description:"Skip Yarn console logs, other types of logs (script output) will be printed"},{name:"--scripts-prepend-node-path",description:"Prepend the node executable dir to the PATH in scripts",args:{suggestions:[{name:"true"},{name:"false"}]}},{name:"--skip-integrity-check",description:"Run install without checking if node_modules is installed"},{name:"--strict-semver",description:""},...v,{name:["-v","--version"],description:"Output the version number"},{name:["-h","--help"],description:"Output usage information"}],subcommands:[{name:"add",description:"Installs a package and any packages that it depends on",args:{name:"package",generators:O,debounce:!0,isVariadic:!0},options:[...v,{name:["-W","--ignore-workspace-root-check"],description:"Required to run yarn add inside a workspace root"},{name:["-D","--dev"],description:"Save package to your `devDependencies`"},{name:["-P","--peer"],description:"Save package to your `peerDependencies`"},{name:["-O","--optional"],description:"Save package to your `optionalDependencies`"},{name:["-E","--exact"],description:"Install exact version",dependsOn:["--latest"]},{name:["-T","--tilde"],description:"Install most recent release with the same minor version"},{name:["-A","--audit"],description:"Run vulnerability audit on installed packages"},{name:["-h","--help"],description:"Output usage information"}]},{name:"audit",description:"Perform a vulnerability audit against the installed packages",options:[{name:"--summary",description:"Only print the summary"},{name:"--groups",description:"Only audit dependencies from listed groups. Default: devDependencies, dependencies, optionalDependencies",args:{name:"group_name",isVariadic:!0}},{name:"--level",description:"Only print advisories with severity greater than or equal to one of the following: info|low|moderate|high|critical. Default: info",args:{name:"severity",suggestions:[{name:"info"},{name:"low"},{name:"moderate"},{name:"high"},{name:"critical"}]}},{name:["-h","--help"],description:"Output usage information"}]},{name:"autoclean",description:"Cleans and removes unnecessary files from package dependencies",options:[{name:["-h","--help"],description:"Output usage information"},{name:["-i","--init"],description:"Creates the .yarnclean file if it does not exist, and adds the default entries"},{name:["-f","--force"],description:"If a .yarnclean file exists, run the clean process"}]},{name:"bin",description:"Displays the location of the yarn bin folder",options:[{name:["-h","--help"],description:"Output usage information"}]},{name:"cache",description:"Yarn cache list will print out every cached package",options:[...v,{name:["-h","--help"],description:"Output usage information"}],subcommands:[{name:"clean",description:"Clear global cache"},{name:"dir",description:"Print yarn\u2019s global cache path"},{name:"list",description:"Print out every cached package",options:[{name:"--pattern",description:"Filter cached packages by pattern",args:{name:"pattern"}}]}]},{name:"config",description:"Configure yarn",options:[{name:["-h","--help"],description:"Output usage information"}],subcommands:[{name:"set",description:"Sets the config key to a certain value",options:[{name:["-g","--global"],description:"Set global config"}]},{name:"get",description:"Print the value for a given key",args:{generators:Ne}},{name:"delete",description:"Deletes a given key from the config",args:{generators:Ne}},{name:"list",description:"Displays the current configuration"}]},{name:"create",description:"Creates new projects from any create-* starter kits",args:{name:"cli",generators:ce,loadSpec:async e=>({name:"create-"+e,type:"global"}),isCommand:!0},options:[...v,{name:["-h","--help"],description:"Output usage information"}]},{name:"exec",description:"",options:[{name:["-h","--help"],description:"Output usage information"}]},{name:"generate-lock-entry",description:"Generates a lock file entry",options:[{name:"--use-manifest",description:"Specify which manifest file to use for generating lock entry",args:{template:"filepaths"}},{name:"--resolved",description:"Generate from <*.tgz>#<hash>",args:{template:"filepaths"}},{name:["-h","--help"],description:"Output usage information"}]},{name:"global",description:"Manage yarn globally",subcommands:[{name:"add",description:"Install globally packages on your operating system",args:{name:"package",generators:O,debounce:!0,isVariadic:!0}},{name:"bin",description:"Displays the location of the yarn global bin folder"},{name:"dir",description:"Displays the location of the global installation folder"},{name:"ls",description:"List globally installed packages (deprecated)"},{name:"list",description:"List globally installed packages"},{name:"remove",description:"Remove globally installed packages",args:{name:"package",filterStrategy:"fuzzy",generators:mn,isVariadic:!0},options:[...v,{name:["-W","--ignore-workspace-root-check"],description:"Required to run yarn remove inside a workspace root"},{name:["-h","--help"],description:"Output usage information"}]},{name:"upgrade",description:"Upgrade globally installed packages",options:[...v,{name:["-S","--scope"],description:"Upgrade packages under the specified scope",args:{name:"scope"}},{name:["-L","--latest"],description:"List the latest version of packages"},{name:["-E","--exact"],description:"Install exact version. Only used when --latest is specified",dependsOn:["--latest"]},{name:["-P","--pattern"],description:"Upgrade packages that match pattern",args:{name:"pattern"}},{name:["-T","--tilde"],description:"Install most recent release with the same minor version. Only used when --latest is specified"},{name:["-C","--caret"],description:"Install most recent release with the same major version. Only used when --latest is specified",dependsOn:["--latest"]},{name:["-A","--audit"],description:"Run vulnerability audit on installed packages"},{name:["-h","--help"],description:"Output usage information"}]},{name:"upgrade-interactive",description:"Display the outdated packages before performing any upgrade",options:[{name:"--latest",description:"Use the version tagged latest in the registry"}]}],options:[...v,{name:"--prefix",description:"Bin prefix to use to install binaries",args:{name:"prefix"}},{name:"--latest",description:"Bin prefix to use to install binaries"},{name:["-h","--help"],description:"Output usage information"}]},{name:"help",description:"Output usage information"},{name:"import",description:"Generates yarn.lock from an npm package-lock.json file"},{name:"info",description:"Show information about a package"},{name:"init",description:"Interactively creates or updates a package.json file",options:[...v,{name:["-y","--yes"],description:"Use default options"},{name:["-p","--private"],description:"Use default options and private true"},{name:["-i","--install"],description:"Install a specific Yarn release",args:{name:"version"}},{name:"-2",description:"Generates the project using Yarn 2"},{name:["-h","--help"],description:"Output usage information"}]},{name:"install",description:"Install all the dependencies listed within package.json",options:[...v,{name:["-A","--audit"],description:"Run vulnerability audit on installed packages"},{name:["-h","--help"],description:"Output usage information"}]},{name:"licenses",description:"",subcommands:[{name:"list",description:"List licenses for installed packages"},{name:"generate-disclaimer",description:"List of licenses from all the packages"}]},{name:"link",description:"Symlink a package folder during development",args:{isOptional:!0,name:"package"},options:[...v,{name:["-h","--help"],description:"Output usage information"}]},{name:"list",description:"Lists all dependencies for the current working directory",options:[{name:"--depth",description:"Restrict the depth of the dependencies"},{name:"--pattern",description:"Filter the list of dependencies by the pattern"}]},{name:"login",description:"Store registry username and email"},{name:"logout",description:"Clear registry username and email"},{name:"node",description:""},{name:"outdated",description:"Checks for outdated package dependencies",options:[...v,{name:["-h","--help"],description:"Output usage information"}]},{name:"owner",description:"Manage package owners",subcommands:[{name:"list",description:"Lists all of the owners of a package",args:{name:"package"}},{name:"add",description:"Adds the user as an owner of the package",args:{name:"package"}},{name:"remove",description:"Removes the user as an owner of the package",args:[{name:"user"},{name:"package"}]}]},{name:"pack",description:"Creates a compressed gzip archive of package dependencies",options:[{name:"--filename",description:"Creates a compressed gzip archive of package dependencies and names the file filename"}]},{name:"policies",description:"Defines project-wide policies for your project",subcommands:[{name:"set-version",description:"Will download the latest stable release",options:[{name:"--rc",description:"Download the latest rc release"}]}]},{name:"publish",description:"Publishes a package to the npm registry",args:{name:"Tarball or Folder",template:"folders"},options:[...v,{name:["-h","--help"],description:"Output usage information"},{name:"--major",description:"Auto-increment major version number"},{name:"--minor",description:"Auto-increment minor version number"},{name:"--patch",description:"Auto-increment patch version number"},{name:"--premajor",description:"Auto-increment premajor version number"},{name:"--preminor",description:"Auto-increment preminor version number"},{name:"--prepatch",description:"Auto-increment prepatch version number"},{name:"--prerelease",description:"Auto-increment prerelease version number"},{name:"--preid",description:"Add a custom identifier to the prerelease",args:{name:"preid"}},{name:"--message",description:"Message",args:{name:"message"}},{name:"--no-git-tag-version",description:"No git tag version"},{name:"--no-commit-hooks",description:"Bypass git hooks when committing new version"},{name:"--access",description:"Access",args:{name:"access"}},{name:"--tag",description:"Tag",args:{name:"tag"}}]},{name:"remove",description:"Remove installed package",args:{filterStrategy:"fuzzy",generators:Ie,isVariadic:!0},options:[...v,{name:["-W","--ignore-workspace-root-check"],description:"Required to run yarn remove inside a workspace root"},{name:["-h","--help"],description:"Output usage information"}]},{name:"run",description:"Runs a defined package script",options:[...v,{name:["-h","--help"],description:"Output usage information"}],args:[{name:"script",description:"Script to run from your package.json",generators:R,filterStrategy:"fuzzy",parserDirectives:Oe,isCommand:!0},{name:"env",suggestions:["env"],description:"Lists environment variables available to scripts",isOptional:!0}]},{name:"tag",description:"Add, remove, or list tags on a package"},{name:"team",description:"Maintain team memberships",subcommands:[{name:"create",description:"Create a new team",args:{name:"<scope:team>"}},{name:"destroy",description:"Destroys an existing team",args:{name:"<scope:team>"}},{name:"add",description:"Add a user to an existing team",args:[{name:"<scope:team>"},{name:"<user>"}]},{name:"remove",description:"Remove a user from a team they belong to",args:{name:"<scope:team> <user>"}},{name:"list",description:"If performed on an organization name, will return a list of existing teams under that organization. If performed on a team, it will instead return a list of all users belonging to that particular team",args:{name:"<scope>|<scope:team>"}}]},{name:"unlink",description:"Unlink a previously created symlink for a package"},{name:"unplug",description:""},{name:"upgrade",description:"Upgrades packages to their latest version based on the specified range",args:{name:"package",generators:Ie,filterStrategy:"fuzzy",isVariadic:!0,isOptional:!0},options:[...v,{name:["-S","--scope"],description:"Upgrade packages under the specified scope",args:{name:"scope"}},{name:["-L","--latest"],description:"List the latest version of packages"},{name:["-E","--exact"],description:"Install exact version. Only used when --latest is specified",dependsOn:["--latest"]},{name:["-P","--pattern"],description:"Upgrade packages that match pattern",args:{name:"pattern"}},{name:["-T","--tilde"],description:"Install most recent release with the same minor version. Only used when --latest is specified"},{name:["-C","--caret"],description:"Install most recent release with the same major version. Only used when --latest is specified",dependsOn:["--latest"]},{name:["-A","--audit"],description:"Run vulnerability audit on installed packages"},{name:["-h","--help"],description:"Output usage information"}]},{name:"upgrade-interactive",description:"Upgrades packages in interactive mode",options:[{name:"--latest",description:"Use the version tagged latest in the registry"}]},{name:"version",description:"Update version of your package",options:[...v,{name:["-h","--help"],description:"Output usage information"},{name:"--new-version",description:"New version",args:{name:"version"}},{name:"--major",description:"Auto-increment major version number"},{name:"--minor",description:"Auto-increment minor version number"},{name:"--patch",description:"Auto-increment patch version number"},{name:"--premajor",description:"Auto-increment premajor version number"},{name:"--preminor",description:"Auto-increment preminor version number"},{name:"--prepatch",description:"Auto-increment prepatch version number"},{name:"--prerelease",description:"Auto-increment prerelease version number"},{name:"--preid",description:"Add a custom identifier to the prerelease",args:{name:"preid"}},{name:"--message",description:"Message",args:{name:"message"}},{name:"--no-git-tag-version",description:"No git tag version"},{name:"--no-commit-hooks",description:"Bypass git hooks when committing new version"},{name:"--access",description:"Access",args:{name:"access"}},{name:"--tag",description:"Tag",args:{name:"tag"}}]},{name:"versions",description:"Displays version information of the currently installed Yarn, Node.js, and its dependencies"},{name:"why",description:"Show information about why a package is installed",args:{name:"package",filterStrategy:"fuzzy",generators:un},options:[...v,{name:["-h","--help"],description:"Output usage information"},{name:"--peers",description:"Print the peer dependencies that match the specified name"},{name:["-R","--recursive"],description:"List, for each workspace, what are all the paths that lead to the dependency"}]},{name:"workspace",description:"Manage workspace",filterStrategy:"fuzzy",generateSpec:async(e,n)=>{let a=(await n({command:"yarn",args:["--version"]})).stdout.startsWith("1."),i=async()=>{let{stdout:o}=await n({command:"yarn",args:["workspaces","info"]}),c=o.indexOf("{"),p=o.lastIndexOf("}");return Object.entries(JSON.parse(o.slice(c,p+1))).map(([d,{location:r}])=>({name:d,location:r}))},s=async()=>(await n({command:"yarn",args:["workspaces","list","--json"]})).stdout.split(`
|
|
6
|
+
`).map(c=>JSON.parse(c.trim()));try{return{name:"workspace",subcommands:(a?await i():await s()).map(({name:p,location:d})=>({name:p,description:"Workspaces",args:{name:"script",generators:{cache:{strategy:"stale-while-revalidate",ttl:6e4},script:["cat",`${d}/package.json`],postProcess:function(r){if(r.trim()=="")return[];try{let k=JSON.parse(r).scripts;if(k)return Object.keys(k).map(y=>({name:y}))}catch{}return[]}}}}))}}catch(o){console.error(o)}return{name:"workspaces"}}},{name:"workspaces",description:"Show information about your workspaces",options:[{name:"subcommand",description:"",args:{suggestions:[{name:"info"},{name:"run"}]}},{name:"flags",description:""}]},{name:"set",description:"Set global Yarn options",subcommands:[{name:"resolution",description:"Enforce a package resolution",args:[{name:"descriptor",description:"A descriptor for the package, in the form of 'lodash@npm:^1.2.3'"},{name:"resolution",description:"The version of the package to resolve"}],options:[{name:["-s","--save"],description:"Persist the resolution inside the top-level manifest"}]},{name:"version",description:"Lock the Yarn version used by the project",args:{name:"version",description:"Use the specified version, which can also be a Yarn 2 build (e.g 2.0.0-rc.30) or a Yarn 1 build (e.g 1.22.1)",template:"filepaths",suggestions:[{name:"from-sources",insertValue:"from sources"},"latest","canary","classic","self"]},options:[{name:"--only-if-needed",description:"Only lock the Yarn version if it isn't already locked"}]}]}]};var j="data:image/svg+xml;base64,PHN2ZyBpZD0iQnVuIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA4MCA3MCI+PHRpdGxlPkJ1biBMb2dvPC90aXRsZT48cGF0aCBpZD0iU2hhZG93IiBkPSJNNzEuMDksMjAuNzRjLS4xNi0uMTctLjMzLS4zNC0uNS0uNXMtLjMzLS4zNC0uNS0uNS0uMzMtLjM0LS41LS41LS4zMy0uMzQtLjUtLjUtLjMzLS4zNC0uNS0uNS0uMzMtLjM0LS41LS41LS4zMy0uMzQtLjUtLjVBMjYuNDYsMjYuNDYsMCwwLDEsNzUuNSwzNS43YzAsMTYuNTctMTYuODIsMzAuMDUtMzcuNSwzMC4wNS0xMS41OCwwLTIxLjk0LTQuMjMtMjguODMtMTAuODZsLjUuNS41LjUuNS41LjUuNS41LjUuNS41LjUuNUMxOS41NSw2NS4zLDMwLjE0LDY5Ljc1LDQyLDY5Ljc1YzIwLjY4LDAsMzcuNS0xMy40OCwzNy41LTMwQzc5LjUsMzIuNjksNzYuNDYsMjYsNzEuMDksMjAuNzRaIi8+PGcgaWQ9IkJvZHkiPjxwYXRoIGlkPSJCYWNrZ3JvdW5kIiBkPSJNNzMsMzUuN2MwLDE1LjIxLTE1LjY3LDI3LjU0LTM1LDI3LjU0UzMsNTAuOTEsMywzNS43QzMsMjYuMjcsOSwxNy45NCwxOC4yMiwxM1MzMy4xOCwzLDM4LDNzOC45NCw0LjEzLDE5Ljc4LDEwQzY3LDE3Ljk0LDczLDI2LjI3LDczLDM1LjdaIiBzdHlsZT0iZmlsbDojZmJmMGRmIi8+PHBhdGggaWQ9IkJvdHRvbV9TaGFkb3ciIGRhdGEtbmFtZT0iQm90dG9tIFNoYWRvdyIgZD0iTTczLDM1LjdhMjEuNjcsMjEuNjcsMCwwLDAtLjgtNS43OGMtMi43MywzMy4zLTQzLjM1LDM0LjktNTkuMzIsMjQuOTRBNDAsNDAsMCwwLDAsMzgsNjMuMjRDNTcuMyw2My4yNCw3Myw1MC44OSw3MywzNS43WiIgc3R5bGU9ImZpbGw6I2Y2ZGVjZSIvPjxwYXRoIGlkPSJMaWdodF9TaGluZSIgZGF0YS1uYW1lPSJMaWdodCBTaGluZSIgZD0iTTI0LjUzLDExLjE3QzI5LDguNDksMzQuOTQsMy40Niw0MC43OCwzLjQ1QTkuMjksOS4yOSwwLDAsMCwzOCwzYy0yLjQyLDAtNSwxLjI1LTguMjUsMy4xMy0xLjEzLjY2LTIuMywxLjM5LTMuNTQsMi4xNS0yLjMzLDEuNDQtNSwzLjA3LTgsNC43QzguNjksMTguMTMsMywyNi42MiwzLDM1LjdjMCwuNCwwLC44LDAsMS4xOUM5LjA2LDE1LjQ4LDIwLjA3LDEzLjg1LDI0LjUzLDExLjE3WiIgc3R5bGU9ImZpbGw6I2ZmZmVmYyIvPjxwYXRoIGlkPSJUb3AiIGQ9Ik0zNS4xMiw1LjUzQTE2LjQxLDE2LjQxLDAsMCwxLDI5LjQ5LDE4Yy0uMjguMjUtLjA2LjczLjMuNTksMy4zNy0xLjMxLDcuOTItNS4yMyw2LTEzLjE0QzM1LjcxLDUsMzUuMTIsNS4xMiwzNS4xMiw1LjUzWm0yLjI3LDBBMTYuMjQsMTYuMjQsMCwwLDEsMzksMTljLS4xMi4zNS4zMS42NS41NS4zNkM0MS43NCwxNi41Niw0My42NSwxMSwzNy45Myw1LDM3LjY0LDQuNzQsMzcuMTksNS4xNCwzNy4zOSw1LjQ5Wm0yLjc2LS4xN0ExNi40MiwxNi40MiwwLDAsMSw0NywxNy4xMmEuMzMuMzMsMCwwLDAsLjY1LjExYy45Mi0zLjQ5LjQtOS40NC03LjE3LTEyLjUzQzQwLjA4LDQuNTQsMzkuODIsNS4wOCw0MC4xNSw1LjMyWk0yMS42OSwxNS43NmExNi45NCwxNi45NCwwLDAsMCwxMC40Ny05Yy4xOC0uMzYuNzUtLjIyLjY2LjE4LTEuNzMsOC03LjUyLDkuNjctMTEuMTIsOS40NUMyMS4zMiwxNi40LDIxLjMzLDE1Ljg3LDIxLjY5LDE1Ljc2WiIgc3R5bGU9ImZpbGw6I2NjYmVhNztmaWxsLXJ1bGU6ZXZlbm9kZCIvPjxwYXRoIGlkPSJPdXRsaW5lIiBkPSJNMzgsNjUuNzVDMTcuMzIsNjUuNzUuNSw1Mi4yNy41LDM1LjdjMC0xMCw2LjE4LTE5LjMzLDE2LjUzLTI0LjkyLDMtMS42LDUuNTctMy4yMSw3Ljg2LTQuNjIsMS4yNi0uNzgsMi40NS0xLjUxLDMuNi0yLjE5QzMyLDEuODksMzUsLjUsMzgsLjVzNS42MiwxLjIsOC45LDMuMTRjMSwuNTcsMiwxLjE5LDMuMDcsMS44NywyLjQ5LDEuNTQsNS4zLDMuMjgsOSw1LjI3QzY5LjMyLDE2LjM3LDc1LjUsMjUuNjksNzUuNSwzNS43LDc1LjUsNTIuMjcsNTguNjgsNjUuNzUsMzgsNjUuNzVaTTM4LDNjLTIuNDIsMC01LDEuMjUtOC4yNSwzLjEzLTEuMTMuNjYtMi4zLDEuMzktMy41NCwyLjE1LTIuMzMsMS40NC01LDMuMDctOCw0LjdDOC42OSwxOC4xMywzLDI2LjYyLDMsMzUuNywzLDUwLjg5LDE4LjcsNjMuMjUsMzgsNjMuMjVTNzMsNTAuODksNzMsMzUuN0M3MywyNi42Miw2Ny4zMSwxOC4xMyw1Ny43OCwxMyw1NCwxMSw1MS4wNSw5LjEyLDQ4LjY2LDcuNjRjLTEuMDktLjY3LTIuMDktMS4yOS0zLTEuODRDNDIuNjMsNCw0MC40MiwzLDM4LDNaIi8+PC9nPjxnIGlkPSJNb3V0aCI+PGcgaWQ9IkJhY2tncm91bmQtMiIgZGF0YS1uYW1lPSJCYWNrZ3JvdW5kIj48cGF0aCBkPSJNNDUuMDUsNDNhOC45Myw4LjkzLDAsMCwxLTIuOTIsNC43MSw2LjgxLDYuODEsMCwwLDEtNCwxLjg4QTYuODQsNi44NCwwLDAsMSwzNCw0Ny43MSw4LjkzLDguOTMsMCwwLDEsMzEuMTIsNDNhLjcyLjcyLDAsMCwxLC44LS44MUg0NC4yNkEuNzIuNzIsMCwwLDEsNDUuMDUsNDNaIiBzdHlsZT0iZmlsbDojYjcxNDIyIi8+PC9nPjxnIGlkPSJUb25ndWUiPjxwYXRoIGlkPSJCYWNrZ3JvdW5kLTMiIGRhdGEtbmFtZT0iQmFja2dyb3VuZCIgZD0iTTM0LDQ3Ljc5YTYuOTEsNi45MSwwLDAsMCw0LjEyLDEuOSw2LjkxLDYuOTEsMCwwLDAsNC4xMS0xLjksMTAuNjMsMTAuNjMsMCwwLDAsMS0xLjA3LDYuODMsNi44MywwLDAsMC00LjktMi4zMSw2LjE1LDYuMTUsMCwwLDAtNSwyLjc4QzMzLjU2LDQ3LjQsMzMuNzYsNDcuNiwzNCw0Ny43OVoiIHN0eWxlPSJmaWxsOiNmZjYxNjQiLz48cGF0aCBpZD0iT3V0bGluZS0yIiBkYXRhLW5hbWU9Ik91dGxpbmUiIGQ9Ik0zNC4xNiw0N2E1LjM2LDUuMzYsMCwwLDEsNC4xOS0yLjA4LDYsNiwwLDAsMSw0LDEuNjljLjIzLS4yNS40NS0uNTEuNjYtLjc3YTcsNywwLDAsMC00LjcxLTEuOTMsNi4zNiw2LjM2LDAsMCwwLTQuODksMi4zNkE5LjUzLDkuNTMsMCwwLDAsMzQuMTYsNDdaIi8+PC9nPjxwYXRoIGlkPSJPdXRsaW5lLTMiIGRhdGEtbmFtZT0iT3V0bGluZSIgZD0iTTM4LjA5LDUwLjE5YTcuNDIsNy40MiwwLDAsMS00LjQ1LTIsOS41Miw5LjUyLDAsMCwxLTMuMTEtNS4wNSwxLjIsMS4yLDAsMCwxLC4yNi0xLDEuNDEsMS40MSwwLDAsMSwxLjEzLS41MUg0NC4yNmExLjQ0LDEuNDQsMCwwLDEsMS4xMy41MSwxLjE5LDEuMTksMCwwLDEsLjI1LDFoMGE5LjUyLDkuNTIsMCwwLDEtMy4xMSw1LjA1QTcuNDIsNy40MiwwLDAsMSwzOC4wOSw1MC4xOVptLTYuMTctNy40Yy0uMTYsMC0uMi4wNy0uMjEuMDlhOC4yOSw4LjI5LDAsMCwwLDIuNzMsNC4zN0E2LjIzLDYuMjMsMCwwLDAsMzguMDksNDlhNi4yOCw2LjI4LDAsMCwwLDMuNjUtMS43Myw4LjMsOC4zLDAsMCwwLDIuNzItNC4zNy4yMS4yMSwwLDAsMC0uMi0uMDlaIi8+PC9nPjxnIGlkPSJGYWNlIj48ZWxsaXBzZSBpZD0iUmlnaHRfQmx1c2giIGRhdGEtbmFtZT0iUmlnaHQgQmx1c2giIGN4PSI1My4yMiIgY3k9IjQwLjE4IiByeD0iNS44NSIgcnk9IjMuNDQiIHN0eWxlPSJmaWxsOiNmZWJiZDAiLz48ZWxsaXBzZSBpZD0iTGVmdF9CbHVjaCIgZGF0YS1uYW1lPSJMZWZ0IEJsdWNoIiBjeD0iMjIuOTUiIGN5PSI0MC4xOCIgcng9IjUuODUiIHJ5PSIzLjQ0IiBzdHlsZT0iZmlsbDojZmViYmQwIi8+PHBhdGggaWQ9IkV5ZXMiIGQ9Ik0yNS43LDM4LjhhNS41MSw1LjUxLDAsMSwwLTUuNS01LjUxQTUuNTEsNS41MSwwLDAsMCwyNS43LDM4LjhabTI0Ljc3LDBBNS41MSw1LjUxLDAsMSwwLDQ1LDMzLjI5LDUuNSw1LjUsMCwwLDAsNTAuNDcsMzguOFoiIHN0eWxlPSJmaWxsLXJ1bGU6ZXZlbm9kZCIvPjxwYXRoIGlkPSJJcmlzIiBkPSJNMjQsMzMuNjRhMi4wNywyLjA3LDAsMSwwLTIuMDYtMi4wN0EyLjA3LDIuMDcsMCwwLDAsMjQsMzMuNjRabTI0Ljc3LDBhMi4wNywyLjA3LDAsMSwwLTIuMDYtMi4wN0EyLjA3LDIuMDcsMCwwLDAsNDguNzUsMzMuNjRaIiBzdHlsZT0iZmlsbDojZmZmO2ZpbGwtcnVsZTpldmVub2RkIi8+PC9nPjwvc3ZnPg==",pe={name:"[host:]port",isOptional:!0,suggestions:[{name:"3000",icon:"fig://icon?type=box",description:"Serve on port 3000"},{name:"8080",icon:"fig://icon?type=box",description:"Serve on port 8080"}],description:"Activate inspector on particular port and/or hostname"},Te=["js","jsx","ts","tsx","json","toml","text","file","wasm","napi"],gn=[{name:["-h","--help"],description:"Display this help and exit"},{name:["-b","--bun"],description:"Force a script or package to use Bun's runtime instead of Node.js (via symlinking node)"},{name:"--cwd",args:{name:"path",description:"Absolute path to resolve files & entry points from. This just changes the process' cwd"}},{name:["-c","--config"],args:{name:"path",template:"filepaths",description:"Config file to load Bun from (e.g. -c bunfig.toml)",isOptional:!0},description:"Load config (bunfig.toml)"},{name:"--extension-order",args:{name:"order",isVariadic:!0,description:"Defaults to: .tsx,.ts,.jsx,.js,.json"}},{name:"--jsx-factory",args:{name:"name",suggestions:["React.createElement","h","preact.h"]},description:"Changes the function called when compiling JSX elements using the classic JSX runtime"},{name:"--jsx-fragment",priority:49,args:{name:"string",isOptional:!0},insertValue:"--jsx-fragment='{cursor}'",description:"Changes the function called when compiling JSX fragments"},{name:"--jsx-import-source",args:{name:"module",suggestions:["react"]},description:'Declares the module specifier to be used for importing the jsx and jsxs factory functions. Default: "react"'},{name:"--jsx-runtime",args:{name:"name",suggestions:["automatic","classic"]},description:'"automatic" (default) or "classic"'},{name:["-r","--preload"],args:{name:"args",isVariadic:!0,description:"Import a module before other modules are loaded"}},{name:"--main-fields",args:{name:"args",isVariadic:!0,description:"Main fields to lookup in package.json. Defaults to --target dependent"}},{name:"--no-summary",description:"Don't print a summary (when generating .bun)"},{name:["-v","--version"],description:"Print version and exit"},{name:"--revision",description:"Print version with revision and exit"},{name:"--tsconfig-override",args:{name:"overrides",description:"Load tsconfig from path instead of cwd/tsconfig.json"}},{name:["-d","--define"],args:{name:"k=v",isVariadic:!0,description:"Substitute key=value while parsing, e.g. --define process.env.NODE_ENV=development"}},{name:["-e","--external"],args:{name:"args",isVariadic:!0,description:"Exclude module from transpilation (can use * wildcards). ex: -e react"}},{name:["-l","--loader"],args:{name:"args",isVariadic:!0,description:"Parse files with .ext:loader, e.g. --loader .js:jsx. Valid loaders: js, jsx, ts, tsx, json, toml, text, file, wasm, napi",generators:(0,P.keyValueList)({keys:Te.map(e=>"."+e),values:Te})}},{name:"--origin",deprecated:!0,args:{name:"args",description:'Rewrite import URLs to start with --origin. Default: ""'}},{name:["-p","--port"],args:{name:"args",description:`Port to serve Bun's dev server on. Default: "3000"`}},{name:"--smol",description:"Use less memory, but run garbage collection more often"},{name:"--minify",description:"Minify (experimental)",priority:50},{name:"--minify-syntax",description:"Minify syntax and inline data (experimental)"},{name:"--minify-whitespace",description:"Minify whitespace (experimental)"},{name:"--minify-identifiers",description:"Minify identifiers"},{name:"--no-macros",description:"Disable macros from being executed in the bundler, transpiler and runtime"},{name:"--target",description:"Target environment",priority:50,args:{generators:(0,P.valueList)({values:["node","browser","bun"]})}},{name:"--inspect",description:"Activate Bun's debugger for a file",requiresSeparator:!0,args:pe},{name:"--inspect-wait",description:"Activate Bun's Debugger, wait for a connection before executing",requiresSeparator:!0,args:pe},{name:"--inspect-brk",description:"Activate Bun's Debugger, set breakpoint on first line of code and wait",requiresSeparator:!0,args:pe},{name:"--if-present",description:"Exit without an error if the entrypoint does not exist"},{name:"--conditions",description:"Pass custom conditions to resolve",args:{name:"conditions"}}],fn=[{name:"--hot",description:"Enable auto reload in the Bun runtime, test runner, or bundler",priority:50},{name:"--watch",description:"Automatically restart the process on file change",priority:50},{name:"--no-clear-screen",description:"Disable clearing the terminal screen on reload when --hot or --watch is enabled"},{name:"--env-file",description:"Load environment variables from the specified file(s)",isRepeatable:!0,args:{name:"path",template:"filepaths"}},{name:"--no-install",description:"Disable auto install in the Bun runtime"},{name:"-i",description:"Automatically install dependencies and use global cache in Bun's runtime, equivalent to --install=fallback"},{name:"--install",args:{name:"arg",description:'Install dependencies automatically when no node_modules are present, default: "auto". "force" to ignore node_modules, fallback to install any missing',suggestions:["auto","force","fallback","disable"]}},{name:"--prefer-offline",description:"Skip staleness checks for packages in the Bun runtime and resolve from disk"},{name:"--prefer-latest",description:"Use the latest matching versions of packages in the Bun runtime, always checking npm"},{name:"--silent",description:"Don't repeat the command for bun run"}],hn=[{name:"--production",description:"Set NODE_ENV=production and enable minification",priority:50},{name:"--compile",description:"Generate a standalone Bun executable containing your bundled code",priority:50},{name:"--compile-exec-argv",description:"Prepend arguments to the standalone executable's execArgv",args:{name:"args"}},{name:"--bytecode",description:"Use a bytecode cache when compiling"},{name:"--format",description:'Specifies the module format to build to. Defaults to "esm", or "cjs" with --bytecode',args:{name:"args",suggestions:["esm","cjs","iife"]}},{name:"--packages",description:"Add dependencies to bundle or keep them external",args:{name:"mode",suggestions:["external","bundle"]}},{name:"--env",description:"Inline environment variables into the bundle as process.env.${name}. Use a glob like 'FOO_PUBLIC_*' to inline a prefix. Default: 'disable'",args:{name:"mode",suggestions:["disable"]}},{name:"--metafile",description:"Write a JSON file with metadata about the build",args:{name:"path"}},{name:"--banner",description:'Add a banner to the bundled output such as "use client" for React Server Components',args:{name:"string"}},{name:"--footer",description:"Add a footer to the bundled output such as // built with bun!",args:{name:"string"}},{name:"--keep-names",description:"Preserve original function and class names when minifying"},{name:"--css-chunking",description:"Chunk CSS files together to reduce duplicated CSS loaded in a browser"},{name:"--app",description:"Build a web app for production using Bun Bake (experimental)"},{name:"--windows-hide-console",description:"When using --compile targeting Windows, prevent a console window from opening"},{name:"--windows-icon",description:"When using --compile targeting Windows, set an executable icon",args:{name:"path",template:"filepaths"}},{name:"--outdir",description:'Default to "dist" if multiple files',priority:50,args:{name:"path"}},{name:"--outfile",description:"Write to a file",priority:50,args:{name:"path"}},{name:"--root",description:"Root directory used for multiple entry points",args:{name:"path"}},{name:"--splitting",description:"Enable code splitting",priority:50},{name:"--public-path",description:"A prefix to be appended to any import paths in bundled code",args:{name:"args"}},{name:"--sourcemap",description:"Build with sourcemaps - 'linked', 'inline', 'external', or 'none'",requiresSeparator:"-",priority:50,args:{name:"args",isOptional:!0,suggestions:["linked","inline","external","none"]}},{name:"--entry-naming",description:'Customize entry point filenames. Defaults to "[dir]/[name].[ext]"',args:{name:"args"}},{name:"--chunk-naming",description:'Customize chunk filenames. Defaults to "[name]-[hash].[ext]"',args:{name:"args"}},{name:"--asset-naming",description:'Customize asset filenames. Defaults to "[name]-[hash].[ext]"',args:{name:"args"}},{name:"--server-components",description:"Enable React Server Components (experimental)"},{name:"--no-bundle",description:"Transpile file only, do not bundle"}],yn=[{name:"--timeout",description:"Set the per-test timeout in milliseconds, default is 5000",args:{name:"number"}},{name:["-u","--update-snapshots"],description:"Update snapshot files"},{name:"--retry",description:"Default retry count for all tests, overridden by per-test { retry: N }",args:{name:"number"}},{name:"--concurrent",description:"Treat all tests as `test.concurrent()` tests"},{name:"--max-concurrency",description:"Maximum number of concurrent tests to execute at once. Default is 20",args:{name:"number"}},{name:"--randomize",description:"Run tests in random order"},{name:"--seed",description:"Set the random seed for test randomization",args:{name:"number"}},{name:"--path-ignore-patterns",description:"Glob patterns for test file paths to ignore",isRepeatable:!0,args:{name:"pattern"}},{name:"--rerun-each",description:"Re-run each test file <NUMBER> times, helps catch certain bugs",args:{name:"number"}},{name:"--only",description:'Only run tests that are marked with "test.only()"'},{name:"--todo",description:'Include tests that are marked with "test.todo()"'},{name:"--coverage",description:"Generate a coverage profile"},{name:"--coverage-reporter",description:"Report coverage in 'text' and/or 'lcov'. Defaults to 'text'",isRepeatable:!0,args:{name:"reporter",suggestions:["text","lcov"]}},{name:"--coverage-dir",description:"Directory for coverage files. Defaults to 'coverage'",args:{name:"path",template:"folders"}},{name:"--reporter",description:"Test output reporter format. 'junit' requires --reporter-outfile. Default: console output",args:{name:"format",suggestions:["junit","dots"]}},{name:"--reporter-outfile",description:"Output file path for the reporter format",args:{name:"path"}},{name:"--dots",description:"Enable dots reporter. Shorthand for --reporter=dots"},{name:"--bail",description:"Exit the test suite after <NUMBER> failures. If you do not specify a number, it defaults to 1",args:{name:"number",isOptional:!0}},{name:["-t","--test-name-pattern"],description:"Run only tests with a name that matches the given regex",args:{name:"pattern"}}],ze=[{name:"--dump-environment-variables",description:"Dump environment variables from .env and process as JSON and quit. Useful for debugging",priority:49},{name:"--dump-limits",description:"Dump system limits. Useful for debugging",priority:49}],de=[...gn,...fn],wn=[...de,...hn,...ze],kn=[...de,...yn,...ze],ee=[{name:["-c","--config"],args:{name:"path",template:"filepaths",isOptional:!0},description:"Load config (bunfig.toml)"},{name:["-y","--yarn"],description:"Write a yarn.lock file (yarn v1)"},{name:["-p","--production"],description:"Don't install devDependencies"},{name:"--no-save",description:"Don't save a lockfile"},{name:"--save",description:"Save to package.json"},{name:"--dry-run",description:"Don't install anything"},{name:"--frozen-lockfile",description:"Disallow changes to lockfile"},{name:["-f","--force"],description:"Always request the latest versions from the registry & reinstall all dependencies"},{name:"--cache-dir",args:{name:"path",template:"folders"},description:"Store & load cached data from a specific directory path"},{name:"--no-cache",description:"Ignore manifest cache entirely"},{name:"--silent",description:"Don't log anything"},{name:"--verbose",description:"Excessively verbose logging"},{name:["-g","--global"],description:"Install globally"},{name:"--cwd",args:{name:"path",template:"folders"},description:"Set a specific cwd"},{name:"--backend",args:{name:"syscall",suggestions:["clonefile","hardlink","copyfile"]},description:"Platform-specific optimizations for installing dependencies. 'clonefile' (macOS default), 'hardlink' (Linux and Windows default), 'copyfile'"},{name:"--filter",isRepeatable:!0,args:{name:"pattern"},description:"Install dependencies for the matching workspaces"},{name:"--linker",args:{name:"strategy",suggestions:["isolated","hoisted"]},description:"Linker strategy"},{name:"--omit",isRepeatable:!0,args:{name:"type",suggestions:["dev","optional","peer"]},description:"Exclude 'dev', 'optional', or 'peer' dependencies from install"},{name:"--lockfile-only",description:"Generate a lockfile without installing dependencies"},{name:"--registry",args:{name:"url"},description:"Use a specific registry by default, overriding .npmrc, bunfig.toml and environment variables"},{name:"--ca",args:{name:"cert"},description:"Provide a Certificate Authority signing certificate"},{name:"--cafile",args:{name:"path",template:"filepaths"},description:"The same as `--ca`, but is a file path to the certificate"},{name:"--concurrent-scripts",args:{name:"number"},description:"Maximum number of concurrent jobs for lifecycle scripts"},{name:"--network-concurrency",args:{name:"number"},description:"Maximum number of concurrent network requests (default 48)"},{name:"--minimum-release-age",args:{name:"seconds"},description:"Only install packages published at least N seconds ago"},{name:"--cpu",args:{name:"arch",suggestions:["x64","arm64","*"]},description:"Override CPU architecture for optional dependencies"},{name:"--os",args:{name:"os",suggestions:["linux","darwin","*"]},description:"Override operating system for optional dependencies"},{name:"--link-native-bins",deprecated:!0,args:{name:"str",isVariadic:!0},description:"Link 'bin' from a matching platform-specific 'optionalDependencies' instead. Default: esbuild, turbo"},{name:"--help",description:"Print the help menu"},{name:"--no-progress",description:"Disable the progress bar"},{name:"--no-summary",description:"Don't print a summary"},{name:"--no-verify",description:"Skip verifying integrity of newly downloaded packages"},{name:"--ignore-scripts",description:"Skip lifecycle scripts in the project's package.json (dependency scripts are never run)"},{name:["-d","--dev","-D","--development"],description:"Install as devDependency",priority:75,isRepeatable:!1},{name:"--exact",description:"Install exact version"},{name:"--optional",description:"Install as optionalDependency"}],bn={script:["command","sh","-c","find $BUN_INSTALL/install/global/node_modules -type l -o -type d -maxdepth 2 | awk -F 'node_modules/' '{print $2}'"],postProcess(e){return e.split(`
|
|
7
|
+
`).map(n=>({name:n,description:"Link to this package",icon:"\u{1F4E6}"}))},cache:{strategy:"stale-while-revalidate",ttl:60*60*24}},vn={name:"bun",description:"A fast bundler, transpiler, JavaScript Runtime and package manager for web software",icon:j,args:[{name:"file",generators:[(0,P.filepaths)({matches:/\.[mc]?[jt]sx?$/}),R]},{name:"args"}],options:[...de.filter(e=>e.name.includes("--inspect")||e.name.includes("--hot")||e.name.includes("--watch")||e.name.includes("--env-file")),{name:["-e","--eval"],description:"Evaluate argument as a script",args:{name:"script"}},{name:["-p","--print"],description:"Evaluate argument as a script and print the result",args:{name:"script"}}],subcommands:[{name:["c","create"],icon:j,description:"Start a new project from a template",args:[{name:"template",description:"Package from @bun-examples, GitHub repo, or local file",suggestions:["react","next","hono","discord-interactions","blank","bun-bakery",...K.filter(e=>typeof e.name=="string"?e.name.startsWith("create-"):e.name.some(n=>n.startsWith("create-"))).map(e=>{let n=e.name;return typeof n!="string"&&(n=n[0]),n=n.replace(/^create-/,""),{...e,name:n,priority:76}})],generators:[{template:"folders"},{custom:async(e,n,t)=>{let{stdout:a}=await n({command:"ls",args:["-1",`${t.environmentVariables.HOME}/.bun-create`]});return a.split(`
|
|
8
8
|
`).map(i=>({name:i}))}},{script:["command","ls","-1",".bun-create"],splitOn:`
|
|
9
|
-
`},
|
|
10
|
-
`).map(n=>({name:n.split("/").pop(),priority:76,description:`run ${n}`,insertValue:n}))},cache:{strategy:"stale-while-revalidate",ttl:60*60*24}},isVariadic:!0,filterStrategy:"fuzzy",isOptional:!0,description:"Test files to run"},options:
|
|
9
|
+
`},ce],loadSpec:async e=>({name:"create-"+e,type:"global"}),isCommand:!0},{name:"name",template:"folders",suggestCurrentToken:!0}],options:[{name:"--force",description:"Overwrite existing files"},{name:"--no-install",description:"Don't install node_modules"},{name:"--no-git",description:"Don't create a git repository"},{name:"--verbose",description:"Too many logs"},{name:"--no-package-json",description:"Disable package.json transforms"},{name:"--open",description:"On finish, start bun and open in browser"}]},{name:"run",icon:j,description:"Run a package.json script or executable",args:{name:"script",filterStrategy:"fuzzy",generators:[(0,P.filepaths)({extensions:["ts","tsx","js","jsx","mjs","cjs"]}),R]},options:[{name:["-F","--filter"],description:"Run a script in all workspace packages matching the pattern",isRepeatable:!0,args:{name:"pattern"}},{name:"--workspaces",description:'Run a script in all workspace packages (from the "workspaces" field in package.json)'},{name:"--elide-lines",description:"Truncate each script's output to its last N lines when using --filter. Default 0 shows all lines",args:{name:"number"}},{name:"--parallel",description:"Run multiple scripts or workspace scripts concurrently with prefixed output"},{name:"--sequential",description:"Run multiple scripts or workspace scripts one after another with prefixed output"},{name:"--no-exit-on-error",description:"Continue running other scripts when one fails (with --parallel/--sequential)"},{name:"--shell",description:"Control the shell used for package.json scripts",args:{name:"shell",suggestions:["bun","system"]}}]},{name:"exec",icon:j,description:"Run a shell script directly with Bun",args:{name:"script",description:"Shell script to run with Bun Shell"}},{name:["i","install"],icon:"\u{1F4E6}",description:"Install dependencies for a package.json",options:ee},{name:["a","add"],icon:"\u{1F4E6}",description:"Add a dependency to package.json",options:ee,args:{name:"package",isVariadic:!0,debounce:!0,generators:O,filterStrategy:"fuzzy"}},{name:["rm","remove"],icon:"\u{1F4E6}",description:"Remove a dependency from package.json",options:ee,args:{name:"package",filterStrategy:"fuzzy",generators:x,isVariadic:!0}},{name:["build","bun"],icon:j,description:"Bundle files using Bun's native bundler",args:{name:"entrypoints",isVariadic:!0,generators:(0,P.filepaths)({extensions:["ts","tsx","js","jsx","mjs","cjs"]}),description:"Entrypoint to bundle. If multiple entrypoints provided, must specify --outdir"},options:wn},{name:["up","update"],icon:j,description:"Update outdated dependencies",options:[...ee,{name:["-L","--latest"],description:"Update packages to their latest versions"},{name:["-i","--interactive"],description:"Show an interactive list of outdated packages to select for update"}],args:{name:"package",filterStrategy:"fuzzy",isOptional:!0,generators:x,isVariadic:!0}},{name:"outdated",icon:"\u{1F4E6}",description:"Display latest versions of outdated dependencies",args:{name:"filter",isOptional:!0,isVariadic:!0,generators:x},options:[{name:["-F","--filter"],description:"Display outdated dependencies for each matching workspace",isRepeatable:!0,args:{name:"pattern"}},{name:["-r","--recursive"],description:"Check outdated packages in all workspaces"}]},{name:"audit",icon:"\u{1F4E6}",description:"Check installed packages for vulnerabilities",options:[{name:"--json",description:"Output in JSON format"},{name:"--audit-level",description:"Only report vulnerabilities at this severity or higher",args:{name:"level",suggestions:["low","moderate","high","critical"]}},{name:["-p","-P","--prod","--production"],description:"Only audit packages reachable through dependencies, optionalDependencies, or peerDependencies"},{name:"--omit",description:"Skip packages only reachable through the given type",isRepeatable:!0,args:{name:"type",suggestions:["dev","optional","peer"]}},{name:"--ignore",description:"Ignore an advisory by GHSA ID or numeric ID",isRepeatable:!0,args:{name:"id"}}],subcommands:[{name:"fix",description:"Upgrade vulnerable packages to the lowest non-vulnerable version",options:[{name:"--latest",description:"Rewrite ranges in your own package.json and catalogs when they block a fix"},{name:"--dry-run",description:"Print the plan without installing"},{name:"--json",description:"Output the plan and result in JSON format"}]}]},{name:"why",icon:"\u{1F4E6}",description:"Explain why a package is installed",args:{name:"package",filterStrategy:"fuzzy",generators:x},options:[{name:"--top",description:"Show only the top-level dependencies"},{name:"--depth",description:"Maximum depth of the dependency tree to display",args:{name:"number"}}]},{name:"info",icon:"\u{1F4E6}",description:"Display package metadata from the registry",args:{name:"package",debounce:!0,generators:O,filterStrategy:"fuzzy"},options:[{name:"--json",description:"Output in JSON format"}]},{name:"publish",icon:"\u{1F4E6}",description:"Publish a package to the npm registry",args:{name:"tarball",isOptional:!0,generators:(0,P.filepaths)({extensions:["tgz"]})},options:[{name:"--access",description:"Set access level for scoped packages",args:{name:"level",suggestions:["public","restricted"]}},{name:"--tag",description:'Tag the release. Default is "latest"',args:{name:"tag"}},{name:"--otp",description:"Provide a one-time password for authentication",args:{name:"code"}},{name:"--auth-type",description:"Specify the type of one-time password authentication (default is 'web')",args:{name:"type",suggestions:["web","legacy"]}},{name:"--gzip-level",description:"Specify a custom compression level for gzip (0-9)",args:{name:"level"}},{name:"--dry-run",description:"Perform a dry run without publishing"}]},{name:"patch",icon:"\u{1F4E6}",description:"Prepare a package for patching",args:{name:"package",filterStrategy:"fuzzy",generators:x},options:[{name:"--commit",description:"Install a package containing modifications in `dir`"},{name:"--patches-dir",description:"The directory to put the patch file in (only if --commit is used)",args:{name:"path",template:"folders"}}]},{name:"patch-commit",icon:"\u{1F4E6}",description:"Generate a patch file for a patched package (pnpm compat)",args:{name:"package",filterStrategy:"fuzzy",generators:x},options:[{name:"--patches-dir",description:"The directory to put the patch file in",args:{name:"path",template:"folders"}}]},{name:"prune",icon:"\u{1F4E6}",description:"Remove packages from node_modules that are not defined in bun.lock",options:[{name:"--dry-run",description:"List what would be removed without deleting anything"},{name:"--production",description:"Also remove devDependencies"},{name:"--filter",description:"Prune only the matching workspaces",isRepeatable:!0,args:{name:"pattern"}},{name:"--omit",description:"Also remove 'dev', 'optional', or 'peer' dependencies",isRepeatable:!0,args:{name:"type",suggestions:["dev","optional","peer"]}}]},{name:"link",icon:"\u{1F4E6}",description:"Run without an argument to register this package to the global package registry. Uses the name field from package.json",args:{name:"package",filterStrategy:"fuzzy",isOptional:!0,generators:bn,description:"Install a package from the global package registry"},options:[{name:"--save",description:"Save to package.json",dependsOn:["package"]}]},{name:"unlink",icon:"\u{1F4E6}",description:"Unlink this package from the global package registry"},{name:"upgrade",icon:j,description:"Get the latest version of bun",options:[{name:"--canary",description:"Install the latest canary release"}]},{name:"test",icon:j,description:"Run unit tests with Bun",args:{name:"files",generators:{script:["command","sh","-c",'find $(npm prefix) | grep -E ".*.(test|_test|spec|_spec).(ts|tsx|js|jsx)$" | grep -vE ".*/node_modules/.*" | sed "s|$(npm prefix)/||"'],postProcess(e){return e.split(`
|
|
10
|
+
`).map(n=>({name:n.split("/").pop(),priority:76,description:`run ${n}`,insertValue:n}))},cache:{strategy:"stale-while-revalidate",ttl:60*60*24}},isVariadic:!0,filterStrategy:"fuzzy",isOptional:!0,description:"Test files to run"},options:kn},{name:"pm",icon:j,description:"Set of utilities for working with Bun's package manager",subcommands:[{name:"bin",description:"Print the path to bin folder"},{name:"cache",description:"Print the path to the cache folder",subcommands:[{name:"rm",description:"Clear the cache"}]},{name:"hash",description:"Generate & print the hash of the current lockfile"},{name:"hash-print",description:"Print the hash stored in the current lockfile"},{name:"hash-string",description:"Print the string used to hash the lockfile"},{name:"ls",description:"List the dependency tree according to the current lockfile",options:[{name:["-a","--all"],description:"List the entire dependency tree"}]},{name:"pack",description:"Create a tarball of the current workspace",options:[{name:"--dry-run",description:"Do everything except writing the tarball to disk"},{name:"--destination",description:"The directory the tarball will be saved in",args:{name:"dir",template:"folders"}},{name:"--filename",description:"The name of the tarball",args:{name:"name"}},{name:"--ignore-scripts",description:"Don't run pre/postpack and prepare scripts"},{name:"--gzip-level",description:"Set the gzip compression level (0-9, default 9)",args:{name:"level"}},{name:"--quiet",description:"Only output the tarball filename"}]},{name:"whoami",description:"Print the current npm username"},{name:"view",description:"View package metadata from the registry (bun info)",args:{name:"package",debounce:!0,generators:O,filterStrategy:"fuzzy"}},{name:"version",description:"Bump the version in package.json and create a git commit and tag",args:{name:"increment",isOptional:!0,suggestions:["patch","minor","major","prepatch","preminor","premajor","prerelease","from-git"]},options:[{name:"--no-git-tag-version",description:"Skip creating a git commit and tag"},{name:"--dry-run",description:"Print the new version without writing package.json"}]},{name:"pkg",description:"Manage data in package.json",subcommands:[{name:"get",description:"Get properties from package.json",args:{name:"key",isOptional:!0,isVariadic:!0}},{name:"set",description:"Set properties in package.json",args:{name:"key=value",isVariadic:!0},options:[{name:"--json",description:"Parse values as JSON"}]},{name:"delete",description:"Delete properties from package.json",args:{name:"key",isVariadic:!0}},{name:"fix",description:"Auto-correct common package.json errors"}]},{name:"diff",description:"Compare package versions across registry specs, local folders, or tarballs",args:{name:"spec",isOptional:!0,isVariadic:!0,generators:x}},{name:"licenses",description:"List every installed package grouped by license"},{name:"migrate",description:"Migrate another package manager's lockfile without installing anything"},{name:"untrusted",description:"Print current untrusted dependencies with scripts"},{name:"trust",description:"Run scripts for untrusted dependencies and add to `trustedDependencies`",args:{name:"names",isOptional:!0,isVariadic:!0},options:[{name:"--all",description:"Trust all untrusted dependencies"}]},{name:"default-trusted",description:"Print the default trusted dependencies list"}]},{name:"completions",icon:j,description:"Install shell completions"},{name:"discord",icon:"fig://icon?type=discord",description:"Open bun's Discord server"},{name:"help",description:"Print the help menu",icon:j},{name:"x",icon:j,description:"Execute a package binary (CLI), installing if needed (bunx)",loadSpec:"bunx"},{name:"repl",icon:j,description:"Start a REPL (read eval print loop) session with Bun",options:[{name:["-e","--eval"],description:"Evaluate a script with REPL semantics and exit",args:{name:"script"}},{name:["-p","--print"],description:"Evaluate a script with REPL semantics and print the result",args:{name:"script"}}]},{name:"init",icon:j,description:"Initialize a new bun project",options:[{name:["-y","--yes"],description:"Answer yes to all prompts"},{name:"--react",description:"Scaffold a React project",requiresSeparator:!0,args:{name:"preset",isOptional:!0,suggestions:["tailwind","shadcn"]}}]}]},Gn=vn;export{Gn as default};
|