cmd: Add a few commands to facilitate testing.