Add extensions mechanism to cli