Plugins
Plugins are how vfox knows to handle different tools like Node.js, Java, Elixir etc.
See Creating Plugins for the plugin API used to support more tools.
Available
View all available plugins.
Usage
vfox availableAdd
Add a plugin from the official repository or a custom source.
Usage
vfox add [options] <plugin-name> [<plugin-name2>...]plugin-name: Plugin name, such as nodejs. You can install multiple plugins at once, separated by spaces.
Options
-a, --alias: Set the plugin alias.-s, --source: Install the plugin from the specified path (can be a remote file or a local file).
WARNING
--alias and --source are not supported when adding multiple plugins. Passing multiple plugin names exits non-zero if any plugin fails to add.
Examples
Install plugin from the official repository
$ vfox add --alias node nodejs
$ vfox add golang java nodejsInstall custom plugin
$ vfox add --source https://github.com/version-fox/vfox-nodejs/releases/download/v0.0.5/vfox-nodejs_0.0.5.zip custom-nodeInfo
View the SDK information installed locally.
Usage
vfox info <plugin-name>
vfox info <plugin-name>@<version>
vfox info [options] <plugin-name>plugin-name: Plugin name, such as nodejs. version: Specific version of the plugin.
Options
-f, --format: Format the output using the given Go template. Available fields:- For plugin info:
Name,Version,Homepage,InstallPath,Description - For version info:
Name,Version,Path,Home,Origin,Target
- For plugin info:
--json: Output as JSON. For a version it adds the environment the plugin sets up and the receiptvfoxkeeps.
For a version, Home is the main runtime directory of the SDK, the one to point JAVA_HOME and the like at. Path is the directory that holds it (the version directory) and is kept as it always was. Origin is installed or linked (see vfox link), and Target is the directory a linked version points to.
Examples
View plugin information
vfox info nodejsView specific version path
vfox info nodejs@20.0.0Format output with template
vfox info --format "{{.Homepage}}" nodejs
vfox info --format "{{.InstallPath}}" nodejs
vfox info --format "{{.Path}}" nodejs@20.0.0
vfox info --format "{{.Home}}" nodejs@20.0.0Machine-readable output
vfox info --json java@17.0.9Remove
Remove the installed plugin.
Usage
vfox remove <plugin-name>DANGER
vfox will remove all versions of the runtime installed by the current plugin.
Update
Update a specified or all plugin(s)
Usage
vfox update <plugin-name>
vfox update --all # update all installed plugins