How do I download a specific version of a module? The official documentation for Drupal Console says that the arguments for drupal module:download are the following.

drupal module:download [arguments] [options]


is there an argument or option to specify the dev/beta version of the module?
We can use following code to download latest stable release :

drupal mod modulename --latest


if we want to select a specific release other than latest then we can go for

drupal mod modulename --unstable


hope this will help.
https://docs.drupalconsole.com/en/commands/module-download.html