first draft of deploy command

Some bugs at the moment