commands: support snapshots API