Author | Simone Bizzotto (@niphlod) |
Availability | Windows, Linux, macOS |
Want to see the source code for this command? Check out Find-DbaCommand on GitHub.
Want to see the Bill Of Health for this command? Check out Find-DbaCommand.
Finds dbatools commands searching through the inline help text
Finds dbatools commands searching through the inline help text, building a consolidated json index and querying it because Get-Help is too slow
Find-DbaCommand
[[-Pattern] <String>]
[[-Tag] <String[]>]
[[-Author] <String>]
[[-MinimumVersion] <String>]
[[-MaximumVersion] <String>]
[-Rebuild]
[-EnableException]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
PS C:\> Find-DbaCommand "snapshot"
For lazy typers: finds all commands searching the entire help for "snapshot"
PS C:\> Find-DbaCommand -Pattern "snapshot"
For rigorous typers: finds all commands searching the entire help for "snapshot"
PS C:\> Find-DbaCommand -Tag Job
Finds all commands tagged with "Job"
PS C:\> Find-DbaCommand -Tag Job,Owner
Finds all commands tagged with BOTH "Job" and "Owner"
PS C:\> Find-DbaCommand -Author Chrissy
Finds every command whose author contains our beloved "Chrissy"
PS C:\> Find-DbaCommand -Author Chrissy -Tag AG
Finds every command whose author contains our beloved "Chrissy" and it tagged as "AG"
PS C:\> Find-DbaCommand -Pattern snapshot -Rebuild
Finds all commands searching the entire help for "snapshot", rebuilding the index (good for developers)
Searches help for all commands in dbatools for the specified pattern and displays all results
Alias | |
Required | False |
Pipeline | false |
Default Value |
Finds all commands tagged with this auto-populated tag
Alias | |
Required | False |
Pipeline | false |
Default Value |
Finds all commands tagged with this author
Alias | |
Required | False |
Pipeline | false |
Default Value |
Finds all commands tagged with this auto-populated minimum version
Alias | |
Required | False |
Pipeline | false |
Default Value |
Finds all commands tagged with this auto-populated maximum version
Alias | |
Required | False |
Pipeline | false |
Default Value |
Rebuilds the index
Alias | |
Required | False |
Pipeline | false |
Default Value | False |
By default, when something goes wrong we try to catch it, interpret it and give you a friendly warning message.
This avoids overwhelming you with "sea of red" exceptions, but is inconvenient because it basically disables advanced scripting.
Using this switch turns this "nice by default" feature off and enables you to catch exceptions with your own try/catch.
Alias | |
Required | False |
Pipeline | false |
Default Value | False |
Displays what would happen if the command is run
Alias | wi |
Required | False |
Pipeline | false |
Default Value |
Confirms overwrite of index
Alias | cf |
Required | False |
Pipeline | false |
Default Value |