'Pin a wordpress version on wp-cli

I am using wp-cli to download WordPress

wp-cli --allow-root core download

Is there some way to pin the WordPress version?



Solution 1:[1]

./wp-cli.phar --version=5.9.2 --allow-root core download

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Rodrigo