Linux command
asdf 命令
安全
权限或系统影响较大,执行前请核对目标。
常用示例
Install
asdf plugin add [nodejs]
List
asdf plugin list
Install
asdf install [nodejs] [18.0.0]
Example
asdf global [nodejs] [18.0.0]
Example
asdf local [nodejs] [18.0.0]
Example
asdf list [nodejs]
说明
asdf is a universal version manager supporting multiple languages and tools through plugins. It provides a single interface for managing versions of Node.js, Python, Ruby, Go, and dozens of other tools. Versions can be set globally, per-project (.tool-versions file), or per-shell session.
参数
- plugin add _name_
- Install plugin
- plugin list
- List installed plugins
- install _plugin_ _version_
- Install specific version
- uninstall _plugin_ _version_
- Remove version
- global _plugin_ _version_
- Set global default
- local _plugin_ _version_
- Set project version
- list _plugin_
- List installed versions
- list all _plugin_
- List all available versions
- current
- Show current versions
- reshim _plugin_
- Rebuild shims
FAQ
What is the asdf command used for?
asdf is a universal version manager supporting multiple languages and tools through plugins. It provides a single interface for managing versions of Node.js, Python, Ruby, Go, and dozens of other tools. Versions can be set globally, per-project (.tool-versions file), or per-shell session.
How do I run a basic asdf example?
Run `asdf plugin add [nodejs]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does plugin add _name_ do in asdf?
Install plugin