Skip to content

feat: add completions scripts command#7049

Open
Salnika wants to merge 6 commits intoyarnpkg:masterfrom
Salnika:feat/add-completions-scripts
Open

feat: add completions scripts command#7049
Salnika wants to merge 6 commits intoyarnpkg:masterfrom
Salnika:feat/add-completions-scripts

Conversation

@Salnika
Copy link

@Salnika Salnika commented Feb 10, 2026

What's the problem this PR addresses?

This PR adds built‑in way to generate shell completions. It adds a yarn completions command that generate a completion script for bash/zsh/fish/PowerShell.

It closes #512
...

How did you fix it?

  • Added a new completions command to @yarnpkg/plugin-essentials that generates completion scripts for bash, zsh, fish, and PowerShell.
  • Added an --install option to write the script into shell completion locations.
    ...

Checklist

  • I have set the packages that need to be released for my changes to be effective.
  • I will check that all automated PR checks pass before the PR gets reviewed.

@Salnika
Copy link
Author

Salnika commented Mar 5, 2026

Hey @arcanis if you have time to take a look at this (not urgent)🙏 Even if it is rejected I would love to have some feedback

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature] CLI autocomplete

2 participants