Creating apps (deployments? services?) with the CLI

How did you solve it? Pls share so others can learn too.