liveBook · Manning

Verb-noun naming format

As explained in Practical Automation with PowerShell: Effective scripting from the console to the cloud

The Verb-Noun naming pattern names PowerShell commands with an approved action verb followed by a singular noun.

The Verb-Noun naming format gives PowerShell cmdlets and functions an approved action verb followed by a singular noun. Use Get-Verb to review approved verbs. section 2.2.3

Apply the convention when creating module commands:

  • Choose an approved verb rather than inventing an action word. section 2.2.3
  • Use a singular noun, such as Get-Command rather than Get-Commands. section 2.2.3
  • Follow the convention to make functions easier for other users to find and use; nonstandard names may trigger import warnings. section 2.2.3

Conventional command names

Get-Module and Import-Module follow the pattern: an approved-style verb precedes a singular noun. A name such as archive-File-Deleting may work but conflicts with customary PowerShell naming. section 2.2.3

How Practical Automation with PowerShell: Effective scripting from the console to the cloud covers it

How deep it goes
Defines verb approval and noun singularity, then notes usability consequences without detailing command-discovery internals.
Examples
Uses Get-Module, Import-Module, Get-Command, Get-Verb, and archive-File-Deleting as naming examples.
What it assumes
Assumes PowerShell commands, functions, and modules; teaches approved-verb lookup through Get-Verb.
What you can do after
Apply it via Get-Verb when naming PowerShell commands and designing module functions.
How it connects
Connects cmdlets and functions with modules, approved verbs, and singular nouns.

Also explained in

Compare how 3 books explain verb-noun naming format →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Practical Automation with PowerShell: Effective scripting from the console to the cloud. The section links point to the parts of the book it draws on.