Minimal working versions of `promote` and `repositories` commands.
Merge pull request #1 from yzl/yzl/minimal-promote

Minimal working versions of `promote` and `repositories` commands.