How to download files using curl

curl -O https://wordpress.org/latest.zip
curl https://getcomposer.org/installer -o composer-setup.php