Add `generate` command to CLI