Find D365Command - FH-Inway/d365fo.tools GitHub Wiki
Finds d365fo.tools commands searching through the inline help text
Find-D365Command [[-Pattern] <String>] [[-Tag] <String[]>] [[-Author] <String>] [[-MinimumVersion] <String>]
[[-MaximumVersion] <String>] [-Rebuild] [-EnableException] [-WhatIf] [-Confirm] [<CommonParameters>]
Finds d365fo.tools commands searching through the inline help text, building a consolidated json index and querying it because Get-Help is too slow
Find-D365Command "snapshot"
For lazy typers: finds all commands searching the entire help for "snapshot"
Find-D365Command -Pattern "snapshot"
For rigorous typers: finds all commands searching the entire help for "snapshot"
Find-D365Command -Tag copy
Finds all commands tagged with "copy"
Find-D365Command -Tag copy,user
Finds all commands tagged with BOTH "copy" and "user"
Find-D365Command -Author Mötz
Finds every command whose author contains "Mötz"
Find-D365Command -Author Mötz -Tag copy
Finds every command whose author contains "Mötz" and it tagged as "copy"
Find-D365Command -Pattern snapshot -Rebuild
Finds all commands searching the entire help for "snapshot", rebuilding the index (good for developers)
Searches help for all commands in d365fo.tools for the specified pattern and displays all results
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Finds all commands tagged with this auto-populated tag
Type: String[]
Parameter Sets: (All)
Aliases:
Required: False
Position: 2
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Finds all commands tagged with this author
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: 3
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Finds all commands tagged with this auto-populated minimum version
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: 4
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Finds all commands tagged with this auto-populated maximum version
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: 5
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Rebuilds the index
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: 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.
Type: SwitchParameter
Parameter Sets: (All)
Aliases: Silent
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
Displays what would happen if the command is run
Type: SwitchParameter
Parameter Sets: (All)
Aliases: wi
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Confirms overwrite of index
Type: SwitchParameter
Parameter Sets: (All)
Aliases: cf
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
Tags: Find, Help, Command Author: Mötz Jensen (@Splaxi)
License: MIT https://opensource.org/licenses/MIT
This cmdlet / function is copy & paste implementation based on the Find-DbaCommand from the dbatools.io project
Original author: Simone Bizzotto (@niphold)