GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix(cli): show installation commands for global-only commands by liangmiQwQ · Pull Request #3448 · voidzero-dev/vite-plus

fix(cli): show installation commands for global-only commands #3448

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Sign up for GitHub

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
fengmk2 merged 4 commits into voidzero-dev:main from liangmiQwQ:liang/codex/local-global-install-hint
Nov 19, 2026

Uh oh!

There was an error while loading. Please reload this page.

Merged

fix(cli): show installation commands for global-only commands #3448

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
4 commits
Select commit Hold shift + click to select a range
da8bbfc
fix(cli): show installation commands for global-only commands
liangmiQwQ Nov 13, 2026
03ebbd6
fix(cli): format global installation hints
liangmiQwQ Nov 15, 2026
aab974f
fix(cli): repeat the full command in global-only hints
liangmiQwQ Nov 18, 2026
fc2ca0d
fix(cli): stop echoing arguments in global-only hints
liangmiQwQ Nov 18, 2026
File filter
Filter by extension

Clear filters
Conversations
Failed to load comments.
Loading

Uh oh!

There was an error while loading. Please reload this page.

Jump to
Jump to file
Failed to load files.
Loading

Uh oh!

There was an error while loading. Please reload this page.

Diff view
Diff view

There are no files selected for viewing

30 changes: 27 additions & 3 deletions 30 .../command_global_only_local/snapshots/global_only_commands_require_global_cli.md
Show comments
View file
Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,15 @@ environment management requires the global vp binary
**Exit code:** 2

```
error: The `env` command is only available in the global `vp` CLI. See https://viteplus.dev/guide/ to install it, then run the same command via the global `vp` binary.
error: The `env` command is only available in the global `vp` CLI.

Install it with:
curl -fsSL https://vite.plus | bash

Then open a new terminal and run the command again.
If it's already installed, run the command directly in your terminal instead of through a package manager or package.json script.

Installation Guide: https://viteplus.dev/guide/
```

## `vp upgrade --check`
Expand All @@ -17,7 +25,15 @@ self-upgrade requires the global vp binary
**Exit code:** 2

```
error: The `upgrade` command is only available in the global `vp` CLI. See https://viteplus.dev/guide/ to install it, then run the same command via the global `vp` binary.
error: The `upgrade` command is only available in the global `vp` CLI.

Install it with:
curl -fsSL https://vite.plus | bash

Then open a new terminal and run the command again.
If it's already installed, run the command directly in your terminal instead of through a package manager or package.json script.

Installation Guide: https://viteplus.dev/guide/
```

## `vp implode --yes`
Expand All @@ -27,5 +43,13 @@ self-removal requires the global vp binary
**Exit code:** 2

```
error: The `implode` command is only available in the global `vp` CLI. See https://viteplus.dev/guide/ to install it, then run the same command via the global `vp` binary.
error: The `implode` command is only available in the global `vp` CLI.

Install it with:
curl -fsSL https://vite.plus | bash

Then open a new terminal and run the command again.
If it's already installed, run the command directly in your terminal instead of through a package manager or package.json script.

Installation Guide: https://viteplus.dev/guide/
```
5 changes: 5 additions & 0 deletions 5 crates/vp_cli_snapshots/tests/cli_snapshots/redact.rs
Show comments
View file
Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -556,6 +556,11 @@ pub fn redact_output(
paths: &[(&str, &'static str)],
normalize_separators: bool,
) -> String {
// Keep installation guidance snapshots portable while matching the full platform command.
output = output.replace(
"powershell -c \"irm https://vite.plus/ps1 | iex\"",
"curl -fsSL https://vite.plus | bash",
);
// Piped Windows commands retain CRLF, unlike the rendered PTY output.
{
use cow_utils::CowUtils as _;
Expand Down
17 changes: 15 additions & 2 deletions 17 packages/cli/binding/src/cli/help.rs
Show comments
View file
Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -116,9 +116,22 @@ fn print_invalid_subcommand_error(error: &clap::Error) -> bool {
if GLOBAL_ONLY_SUBCOMMANDS.contains(&invalid_subcommand.as_str()) {
let command =
style(format!("`{invalid_subcommand}`")).for_stderr().blue().bright().to_string();
let install_command = if cfg!(windows) {
"powershell -c \"irm https://vite.plus/ps1 | iex\""
} else {
"curl -fsSL https://vite.plus | bash"
};
let install_command = style(install_command).for_stderr().blue().bright();
output::error(&format!(
"The {command} command is only available in the global `vp` CLI. See {} to install it, then run the same command via the global `vp` binary.",
vp_shared::documentation_url("/guide/")
"The {command} command is only available in the global `vp` CLI.\n\n\
{}\n {install_command}\n\n\
Then open a new terminal and run the command again.\n\
If it's already installed, run the command {} instead of through a package manager or package.json script.\n\n\
{} {}",
style("Install it with:").for_stderr().bold(),
style("directly in your terminal").for_stderr().bold(),
style("Installation Guide:").for_stderr().bold(),
style(vp_shared::documentation_url("/guide/")).for_stderr().underlined()
));
return true;
}
Expand Down
Loading
Oops, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

Add this suggestion to a batch that can be applied as a single commit. This suggestion is invalid because no changes were made to the code. Suggestions cannot be applied while the pull request is closed. Suggestions cannot be applied while viewing a subset of changes. Only one suggestion per line can be applied in a batch. Add this suggestion to a batch that can be applied as a single commit. Applying suggestions on deleted lines is not supported. You must change the existing code in this line in order to create a valid suggestion. Outdated suggestions cannot be applied. This suggestion has been applied or marked resolved. Suggestions cannot be applied from pending reviews. Suggestions cannot be applied on multi-line comments. Suggestions cannot be applied while the pull request is queued to merge. Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.