\newcommand

\newcommand{cmd}[args]{def} \renewcommand{cmd}[args]{def}

These commands define (or redefine) a command.