mirror of
https://github.com/asdf-vm/asdf.git
synced 2024-12-19 18:05:02 -07:00
67 lines
7.8 KiB
JavaScript
67 lines
7.8 KiB
JavaScript
import{_ as a,c as n,a2 as e,o as p}from"./chunks/framework.BQmytedh.js";const f=JSON.parse('{"title":"所有命令","description":"","frontmatter":{},"headers":[],"relativePath":"zh-hans/manage/commands.md","filePath":"zh-hans/manage/commands.md","lastUpdated":1687069487000}'),l={name:"zh-hans/manage/commands.md"};function t(i,s,o,c,r,d){return p(),n("div",null,s[0]||(s[0]=[e(`<h1 id="所有命令" tabindex="-1">所有命令 <a class="header-anchor" href="#所有命令" aria-label="Permalink to "所有命令""></a></h1><p><code>asdf</code> 中所有可用命令的列表。这个列表就是 <code>asdf help</code> 命令的打印内容。</p><div class="language-txt vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">txt</span><pre class="shiki shiki-themes github-light github-dark vp-code" tabindex="0"><code><span class="line"><span>MANAGE PLUGINS</span></span>
|
||
<span class="line"><span>asdf plugin add <name> [<git-url>] Add a plugin from the plugin repo OR,</span></span>
|
||
<span class="line"><span> add a Git repo as a plugin by</span></span>
|
||
<span class="line"><span> specifying the name and repo url</span></span>
|
||
<span class="line"><span>asdf plugin list [--urls] [--refs] List installed plugins. Optionally show</span></span>
|
||
<span class="line"><span> git urls and git-ref</span></span>
|
||
<span class="line"><span>asdf plugin list all List plugins registered on asdf-plugins</span></span>
|
||
<span class="line"><span> repository with URLs</span></span>
|
||
<span class="line"><span>asdf plugin remove <name> Remove plugin and package versions</span></span>
|
||
<span class="line"><span>asdf plugin update <name> [<git-ref>] Update a plugin to latest commit on</span></span>
|
||
<span class="line"><span> default branch or a particular git-ref</span></span>
|
||
<span class="line"><span>asdf plugin update --all Update all plugins to latest commit on</span></span>
|
||
<span class="line"><span> default branch</span></span>
|
||
<span class="line"><span></span></span>
|
||
<span class="line"><span></span></span>
|
||
<span class="line"><span>MANAGE PACKAGES</span></span>
|
||
<span class="line"><span>asdf current Display current version set or being</span></span>
|
||
<span class="line"><span> used for all packages</span></span>
|
||
<span class="line"><span>asdf current <name> Display current version set or being</span></span>
|
||
<span class="line"><span> used for package</span></span>
|
||
<span class="line"><span>asdf global <name> <version> Set the package global version</span></span>
|
||
<span class="line"><span>asdf global <name> latest[:<version>] Set the package global version to the</span></span>
|
||
<span class="line"><span> latest provided version</span></span>
|
||
<span class="line"><span>asdf help <name> [<version>] Output documentation for plugin and tool</span></span>
|
||
<span class="line"><span>asdf install Install all the package versions listed</span></span>
|
||
<span class="line"><span> in the .tool-versions file</span></span>
|
||
<span class="line"><span>asdf install <name> Install one tool at the version</span></span>
|
||
<span class="line"><span> specified in the .tool-versions file</span></span>
|
||
<span class="line"><span>asdf install <name> <version> Install a specific version of a package</span></span>
|
||
<span class="line"><span>asdf install <name> latest[:<version>] Install the latest stable version of a</span></span>
|
||
<span class="line"><span> package, or with optional version,</span></span>
|
||
<span class="line"><span> install the latest stable version that</span></span>
|
||
<span class="line"><span> begins with the given string</span></span>
|
||
<span class="line"><span>asdf latest <name> [<version>] Show latest stable version of a package</span></span>
|
||
<span class="line"><span>asdf latest --all Show latest stable version of all the</span></span>
|
||
<span class="line"><span> packages and if they are installed</span></span>
|
||
<span class="line"><span>asdf list <name> [version] List installed versions of a package and</span></span>
|
||
<span class="line"><span> optionally filter the versions</span></span>
|
||
<span class="line"><span>asdf list all <name> [<version>] List all versions of a package and</span></span>
|
||
<span class="line"><span> optionally filter the returned versions</span></span>
|
||
<span class="line"><span>asdf local <name> <version> Set the package local version</span></span>
|
||
<span class="line"><span>asdf local <name> latest[:<version>] Set the package local version to the</span></span>
|
||
<span class="line"><span> latest provided version</span></span>
|
||
<span class="line"><span>asdf shell <name> <version> Set the package version to</span></span>
|
||
<span class="line"><span> \`ASDF_\${LANG}_VERSION\` in the current shell</span></span>
|
||
<span class="line"><span>asdf uninstall <name> <version> Remove a specific version of a package</span></span>
|
||
<span class="line"><span>asdf where <name> [<version>] Display install path for an installed</span></span>
|
||
<span class="line"><span> or current version</span></span>
|
||
<span class="line"><span>asdf which <command> Display the path to an executable</span></span>
|
||
<span class="line"><span></span></span>
|
||
<span class="line"><span></span></span>
|
||
<span class="line"><span>UTILS</span></span>
|
||
<span class="line"><span>asdf exec <command> [args...] Executes the command shim for current version</span></span>
|
||
<span class="line"><span>asdf env <command> [util] Runs util (default: \`env\`) inside the</span></span>
|
||
<span class="line"><span> environment used for command shim execution.</span></span>
|
||
<span class="line"><span>asdf info Print OS, Shell and ASDF debug information.</span></span>
|
||
<span class="line"><span>asdf version Print the currently installed version of ASDF</span></span>
|
||
<span class="line"><span>asdf reshim <name> <version> Recreate shims for version of a package</span></span>
|
||
<span class="line"><span>asdf shim-versions <command> List the plugins and versions that</span></span>
|
||
<span class="line"><span> provide a command</span></span>
|
||
<span class="line"><span>asdf update Update asdf to the latest stable release</span></span>
|
||
<span class="line"><span>asdf update --head Update asdf to the latest on the master branch</span></span>
|
||
<span class="line"><span></span></span>
|
||
<span class="line"><span>RESOURCES</span></span>
|
||
<span class="line"><span>GitHub: https://github.com/asdf-vm/asdf</span></span>
|
||
<span class="line"><span>Docs: https://asdf-vm.com</span></span></code></pre></div>`,3)]))}const h=a(l,[["render",t]]);export{f as __pageData,h as default};
|