Commands

Enum Commands 

Source
pub enum Commands {
Show 19 variants Version, List { tool: Option<String>, status: bool, installed: bool, available: bool, }, Install { tool: String, version: Option<String>, force: bool, }, Update { tool: Option<String>, apply: bool, }, SelfUpdate { check: bool, version: Option<String>, token: Option<String>, prerelease: bool, force: bool, }, Uninstall { tool: String, version: Option<String>, force: bool, }, Which { tool: String, all: bool, }, Versions { tool: String, latest: Option<usize>, prerelease: bool, detailed: bool, interactive: bool, }, Switch { tool_version: String, global: bool, }, Config { command: Option<ConfigCommand>, }, Search { query: Option<String>, category: Option<String>, installed_only: bool, available_only: bool, format: OutputFormat, verbose: bool, }, Sync { check: bool, force: bool, dry_run: bool, verbose: bool, no_parallel: bool, no_auto_install: bool, }, Init { interactive: bool, template: Option<String>, tools: Option<String>, force: bool, dry_run: bool, list_templates: bool, }, Clean { dry_run: bool, cache: bool, orphaned: bool, all: bool, force: bool, older_than: Option<u32>, verbose: bool, }, Stats, Plugin { command: PluginCommand, }, Shell { command: ShellCommand, }, Venv { command: VenvCommand, }, Global { command: GlobalCommand, },
}

Variants§

§

Version

Show version information

§

List

List supported tools

Fields

§tool: Option<String>

Tool name to show details for (optional)

§status: bool

Show installation status for tools

§installed: bool

Show only installed tools

§available: bool

Show only available tools

§

Install

Install a specific tool version

Fields

§tool: String

Tool name (e.g., uv, node, go, rust)

§version: Option<String>

Version to install (e.g., 1.0.0, latest, lts)

§force: bool

Force reinstallation even if already installed

§

Update

Update tools to latest versions

Fields

§tool: Option<String>

Tool name (optional, updates all if not specified)

§apply: bool

Apply updates automatically

§

SelfUpdate

Update vx itself to the latest version

Fields

§check: bool

Only check for updates, don’t install

§version: Option<String>

Specific version to install

§token: Option<String>

GitHub token for authenticated API requests (avoids rate limits)

§prerelease: bool

Include pre-release versions

§force: bool

Force update even if already up to date

§

Uninstall

Uninstall tool versions (preferred over remove)

Fields

§tool: String

Tool name

§version: Option<String>

Version to uninstall (optional, removes all if not specified)

§force: bool

Force removal without confirmation

§

Which

Show which tool version is being used (preferred over where)

Fields

§tool: String

Tool name

§all: bool

Show all installed versions

§

Versions

Show available versions for a tool (preferred over fetch)

Fields

§tool: String

Tool name

§latest: Option<usize>

Show only latest versions (limit results)

§prerelease: bool

Include pre-release versions

§detailed: bool

Show detailed version information

§interactive: bool

Interactive mode for version selection

§

Switch

Switch to a different version of a tool

Fields

§tool_version: String

Tool and version (e.g., go@1.21.6, node@18.0.0)

§global: bool

Make this the global default

§

Config

Configuration management

Fields

§

Search

Search available tools

Fields

§query: Option<String>

Search query

§category: Option<String>

Filter by category

§installed_only: bool

Show only installed tools

§available_only: bool

Show only available (not installed) tools

§format: OutputFormat

Output format

§verbose: bool

Show verbose information

§

Sync

Sync project tools from .vx.toml

Fields

§check: bool

Only check, don’t install

§force: bool

Force reinstall all tools

§dry_run: bool

Preview operations without executing

§verbose: bool

Show verbose output

§no_parallel: bool

Disable parallel installation

§no_auto_install: bool

Disable auto-install

§

Init

Initialize vx configuration for current project

Fields

§interactive: bool

Interactive initialization

§template: Option<String>

Use predefined template

§tools: Option<String>

Specify tools to include (comma-separated)

§force: bool

Force overwrite existing configuration

§dry_run: bool

Preview configuration without creating file

§list_templates: bool

List available templates

§

Clean

Clean up system (preferred over cleanup)

Fields

§dry_run: bool

Preview cleanup operations without executing

§cache: bool

Only clean cache files

§orphaned: bool

Only clean orphaned tool versions

§all: bool

Clean all (cache + orphaned)

§force: bool

Force cleanup without confirmation

§older_than: Option<u32>

Clean files older than specified days

§verbose: bool

Show verbose output

§

Stats

Show package statistics and disk usage

§

Plugin

Plugin management commands

Fields

§

Shell

Shell integration commands

Fields

§

Venv

Virtual environment management

Fields

§command: VenvCommand
§

Global

Global tool management

Fields

Trait Implementations§

Source§

impl Clone for Commands

Source§

fn clone(&self) -> Commands

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl FromArgMatches for Commands

Source§

fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>

Instantiate Self from ArgMatches, parsing the arguments as needed. Read more
Source§

fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>

Instantiate Self from ArgMatches, parsing the arguments as needed. Read more
Source§

fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>

Assign values from ArgMatches to self.
Source§

fn update_from_arg_matches_mut<'b>( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>

Assign values from ArgMatches to self.
Source§

impl Subcommand for Commands

Source§

fn augment_subcommands<'b>(__clap_app: Command) -> Command

Append to Command so it can instantiate Self via FromArgMatches::from_arg_matches_mut Read more
Source§

fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command

Append to Command so it can instantiate self via FromArgMatches::update_from_arg_matches_mut Read more
Source§

fn has_subcommand(__clap_name: &str) -> bool

Test whether Self can parse a specific subcommand

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<T> ErasedDestructor for T
where T: 'static,