Skip to content

Add manual instance autocomplete list (Add/Get/Remove-DbaInstanceList)#10300

Merged
potatoqualitee merged 2 commits intodevelopmentfrom
claude/issue-8918-20260403-1356
Apr 4, 2026
Merged

Add manual instance autocomplete list (Add/Get/Remove-DbaInstanceList)#10300
potatoqualitee merged 2 commits intodevelopmentfrom
claude/issue-8918-20260403-1356

Conversation

@andreasjordan
Copy link
Copy Markdown
Collaborator

Fixes #8918

Adds three new commands for managing a user-maintained list of SQL Server instance names pre-loaded into the TEPP cache for -SqlInstance autocomplete:

  • Add-DbaInstanceList - add instances to the autocomplete list
  • Get-DbaInstanceList - view the current list
  • Remove-DbaInstanceList - remove instances from the list

Instances are stored via the dbatools config system and can be persisted with -Register. Also supports $env:DBATOOLS_KNOWN_INSTANCES (comma-separated) for profile-based setup.

Generated with Claude Code

github-actions bot and others added 2 commits April 3, 2026 14:03
…d manual instance autocomplete list

Adds three new commands for managing a user-maintained list of SQL Server instance names that
are pre-loaded into the dbatools TEPP (tab expansion++) cache for the -SqlInstance parameter.
This allows users to have frequently used instances available for autocomplete in their
PowerShell terminal without needing to connect to them first.

Also supports loading instances from the $env:DBATOOLS_KNOWN_INSTANCES environment variable
(comma-separated) for easy profile-based setup.

Closes #8918

(do *InstanceList*)

Co-authored-by: Andreas Jordan <andreasjordan@users.noreply.github.com>
@andreasjordan andreasjordan marked this pull request as ready for review April 4, 2026 16:27
@potatoqualitee potatoqualitee merged commit ce6d7c1 into development Apr 4, 2026
14 checks passed
@potatoqualitee potatoqualitee deleted the claude/issue-8918-20260403-1356 branch April 4, 2026 21:04
@potatoqualitee
Copy link
Copy Markdown
Member

haha thank you, i love all the PRs!

potatoqualitee added a commit that referenced this pull request Apr 10, 2026
…#10300)

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
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.

Manual list of frequently used instances for auto complete

2 participants