Answers.Body: <p><strong>In Craft 3:</strong></p>
  
  <p>You can download the latest Craft 3 release in zip or .tar.gz format by going to:</p>
  
  <pre><code>https://craftcms.com/latest.zip
  https://craftcms.com/latest.tar.gz
  </code></pre>
  
  <p>Or since Craft 3 is <a href="https://getcomposer.org" rel="nofollow noreferrer">Composer</a> based, you can modify your <code>composer.json</code>'s <code>craftcms/cms</code> line to install the specific version you're looking for.</p>
  
  <p><strong>In Craft 2:</strong> </p>
  
  <p>You can get the latest Craft 2 version in either zip or tar.gz format by going to:</p>
  
  <pre><code>https://craftcms.com/latest-v2.zip
  https://craftcms.com/latest-v2.tar.gz
  </code></pre>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2014-06-16T06:59:01.633Z
Answers.Text: cool! didn't know that flag was there, thought you wanted to block commandline downloads when you added that js tickbox! thanks!
Answers.UserDisplayName: Luke Holder
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2014-06-15T21:48:32.447Z
Answers.LastActivityDate: 2018-11-30T03:55:43.127Z
Answers.LastEditDate: 2018-11-30T03:55:43.127Z
Answers.UserDisplayName: Brad Bell
Body: <p>If you have a base install script that you use to quickly turn out a new base install for Craft, it would be very useful for that script to be able to download the latest version of Craft when doing it’s new site setup logic.</p>
  
  <p>What’s the best way to do that?</p>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2014-06-16T13:39:23.200Z
Comments.Text: Note: If said base install script were made publicly available (e.g. https://github.com/mattstauffer/makeItCraft/ ), be sure to prompt the user for license acceptance so that it doesn't become a method of someone theoretically bypassing accepting the user agreement.
Comments.UserDisplayName: Matt Stauffer
Tags: <setup><install>
Title: Is there a way I can programmatically download the latest version of Craft?
ThreadText: # Is there a way I can programmatically download the latest version of Craft?
  
  (Asked by: username_0 on 2014-06-15)
  
  If you have a base install script that you use to quickly turn out a new base install for Craft, it would be very useful for that script to be able to download the latest version of Craft when doing it’s new site setup logic.
  
  What’s the best way to do that?
  
  **Tags:** setup, install
  
  > **Comments:**
  > **username_1**: Note: If said base install script were made publicly available (e.g. https://github.com/username_1/makeItCraft/ ), be sure to prompt the user for license acceptance so that it doesn't become a method of someone theoretically bypassing accepting the user agreement.  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_0 on 2014-06-15. Score: 37 | Accepted answer
  
  **In Craft 3:**
  
  You can download the latest Craft 3 release in zip or .tar.gz format by going to:
  
  ```
  https://craftcms.com/latest.zip
  https://craftcms.com/latest.tar.gz
  
  ```
  
  Or since Craft 3 is [Composer](https://getcomposer.org) based, you can modify your `composer.json`'s `craftcms/cms` line to install the specific version you're looking for.
  
  **In Craft 2:**
  
  You can get the latest Craft 2 version in either zip or tar.gz format by going to:
  
  ```
  https://craftcms.com/latest-v2.zip
  https://craftcms.com/latest-v2.tar.gz
  
  ```
  
  > **Comments:**
  > **username_2**: cool! didn't know that flag was there, thought you wanted to block commandline downloads when you added that js tickbox! thanks!  
  
  ---
  
  