Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 0 additions & 29 deletions crates/vite_global_cli/src/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -253,35 +253,6 @@ impl Commands {

/// Arguments for the `env` command
#[derive(clap::Args, Debug)]
#[command(after_help = "\
Examples:
Setup:
vp env setup # Create shims for node, npm, npx, corepack
vp env on # Use vite-plus managed Node.js
vp env print # Print shell snippet for this session

Manage:
vp env pin lts # Pin to latest LTS version
vp env install # Install version from .node-version / package.json
vp env use 20 # Use Node.js 20 for this shell session
vp env use --unset # Remove session override

Inspect:
vp env current # Show current resolved environment
vp env current --json # JSON output for automation
vp env doctor # Check environment configuration
vp env which node # Show which node binary will be used
vp env list-remote --lts # List only LTS versions

Execute:
vp env exec --node lts npm i # Execute 'npm i' with latest LTS
vp env exec node -v # Shim mode (version auto-resolved)

Related Commands:
vp install -g <package> # Install a package globally
vp uninstall -g <package> # Uninstall a package globally
vp update -g [package] # Update global packages
vp list -g [package] # List global packages")]
pub struct EnvArgs {
/// Subcommand (e.g., 'default', 'setup', 'doctor', 'which')
#[command(subcommand)]
Expand Down
1 change: 1 addition & 0 deletions crates/vite_global_cli/src/help.rs
Original file line number Diff line number Diff line change
Expand Up @@ -612,6 +612,7 @@ fn env_help_doc() -> HelpDoc {
" vp install -g <package> # Install a package globally",
" vp uninstall -g <package> # Uninstall a package globally",
" vp update -g [package] # Update global packages",
" vp outdated -g [package] # List outdated packages",
" vp list -g [package] # List global packages",
],
),
Expand Down
1 change: 1 addition & 0 deletions packages/cli/snap-tests-global/cli-helper-message/snap.txt
Original file line number Diff line number Diff line change
Expand Up @@ -397,6 +397,7 @@ Related Commands:
vp install -g <package> # Install a package globally
vp uninstall -g <package> # Uninstall a package globally
vp update -g [package] # Update global packages
vp outdated -g [package] # List outdated packages
vp list -g [package] # List global packages

Documentation: https://viteplus.dev/guide/env
Expand Down
Loading