<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>

CC BY-SA 3.0
2014-06-16T06:59:01.633Z
cool! didn't know that flag was there, thought you wanted to block commandline downloads when you added that js tickbox! thanks!
Luke Holder
CC BY-SA 4.0
2014-06-15T21:48:32.447Z
2018-11-30T03:55:43.127Z
2018-11-30T03:55:43.127Z
Brad Bell
<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>

CC BY-SA 3.0
2014-06-16T13:39:23.200Z
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.
Matt Stauffer
<setup><install>
Is there a way I can programmatically download the latest version of Craft?
# 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/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.  

---

## 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 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!  

---

