Skip to content

36. Cmdlet Naming

Note

The below information is extensively based in information taken from the PowerShell® Notes for Professionals book. I plan to extend this information based on my day to day usage of the language.

CmdLets should be named using a - naming scheme in order to improve discoverability.

36.1: Verbs

Verbs used to name CmdLets should be named from verbs from the list supplied be Get-Verb

Further details on how to use verbs can be found at Approved Verbs for Windows PowerShell

36.2: Nouns

Nouns should always be singular.

Be consistent with the nouns. For instance Find-Package needs a provider the noun is PackageProvider not ProviderPackage.