[PATCH 02/10] cmd: add support for a new "extension" command