I am using wp-cli to download WordPress
wp-cli
wp-cli --allow-root core download
Is there any way to pin WordPress version?
./wp-cli.phar --version=5.9.2 --allow-root core download