Get help on a Python command

To... Do this

Show a short synopsis of command usage and flags.

In the command line or Script Editor, type:

import maya.cmds
helpInfo = cmds.help('<command name>')
print(helpInfo)

For example:

import maya.cmds
helpInfo = cmds.help('move')
print(helpInfo)

Show the Maya Help for a command.

Go to the Help menu and select Maya Scripting Reference > Python Command Reference.

Display auto-completion results for commands and object paths as you type them in the script editor In the Script Editor, turn on Command > Command Completion and Object Path Completion. Then type the first few letters of a command and press Ctrl + Spacebar, or turn on Command > Show Tooltip Help to display auto-complete options automatically.