Repository navigation
Closed
Labels
Issue-Discussionthe issue may not have a clear classification yet. The issue may generate an RFC or may be reclassifResolution-FixedThe issue is fixed.WG-Cmdletsgeneral cmdlet issues
Description
Related documentation issue: MicrosoftDocs/PowerShell-Docs#1480
Get-Help helpfully lists the verb names and the group they fall into.
However, it doesn't list the - also standardized - alias prefix associated with each verb, such as g for Get and ip for Import, as defined in Approved Verbs for Windows PowerShell Commands.
Having these aliases readily available for reference would help establish a common, consistent language for aliases too, which in the long run would hopefully make people move away from the hotly debated legacy aliases.
It looks like all that is needed is to an .AliasPrefix property to type [System.Management.Automation.VerbInfo].
Current behavior
> Get-Verb | Select-Object -First 3
Verb Group
---- -----
Add Common
Clear Common
Close CommonDesired behavior
> Get-Verb | Select-Object -First 3
Verb Group Alias Prefix
---- ----- ---------
Add Common a
Clear Common cl
Close Common csFor easy reference, here's the current mapping (without group) information:
Add (a)
Approve (ap)
Assert (as)
Backup (ba)
Block (bl)
Checkpoint (ch)
Clear (cl)
Close (cs)
Compare (cr)
Complete (cp)
Compress (cm)
Confirm (cn)
Connect (cc)
Convert (cv)
ConvertFrom (cf)
ConvertTo (ct)
Copy (cp)
Debug (db)
Deny (dn)
Disable (d)
Disconnect (dc)
Dismount (dm)
Edit (ed)
Enable (e)
Enter (et)
Exit (ex)
Expand (en)
Export (ep)
Find (fd)
Format (f)
Get (g)
Grant (gr)
Group (gp)
Hide (h)
Import (ip)
Initialize (in)
Install (is)
Invoke (i)
Join (j)
Limit (l)
Lock (lk)
Measure (ms)
Merge (mg)
Mount (mt)
Move (m)
New (n)
Open (op)
Out (o)
Ping (pi)
Protect (pt)
Publish (pb)
Push (pu)
Read (rd)
Receive (rc)
Redo (re)
Register (rg)
Remove (r)
Rename (rn)
Repair (rp)
Request (rq)
Reset (rs)
Resolve (rv)
Restart (rt)
Restore (rr)
Resume (ru)
Revoke (rk)
Save (sv)
Search (sr)
Select (sc)
Send (sd)
Set (s)
Show (sh)
Skip (sk)
Split (sl)
Start (sa)
Step (st)
Stop (sp)
Submit (sb)
Suspend (ss)
Switch (sw)
Sync (sy)
Test (t)
Trace (tr)
Unblock (ul)
Undo (un)
Uninstall (us)
Unlock (uk)
Unprotect (up)
Unpublish (ub)
Unregister (ur)
Update (ud)
Use (u)
Wait (w)
Watch (wc)
Write (wr)
Environment data
PowerShell Core v6.0.0-beta.4Reacted by Flavien MICHALECZEK and Joel Bennett
Metadata
Metadata
Assignees
Labels
Issue-Discussionthe issue may not have a clear classification yet. The issue may generate an RFC or may be reclassifResolution-FixedThe issue is fixed.WG-Cmdletsgeneral cmdlet issues
Activity
iSazonov commentedon Jul 28, 2017
Documentation is silent too.
mklement0 commentedon Jul 28, 2017
Ilya (@iSazonov): Good point, thanks. I've create a documentation issue and have update the initial post with a link to it.