Fix create-repo CLI

The `task` attribute should be transformed into JSON when sending to the server.