How to download the source code of a particular Magento version in 2025 with the production (not Git) filesystem structure?

(
	o=(
		--repository-url=https://repo.magento.com/
		magento/project-community-edition=<version>	
	) 
	composer create-project "${o[@]}" .
)

Example

(
	o=(
		--repository-url=https://repo.magento.com/
		magento/project-community-edition=2.4.7-p3	
	) 
	composer create-project "${o[@]}" .
)

See also