cli: allow --dry-run to be combined with --server (#7436)