“extend” is an API-only function which binds a new external function as a command into the PyMOL scripting language.
For security reasons, new PyMOL commands created using “extend” are not saved or restored in sessions.
alias | cmd.extend | commands