Download & Install WordPress via Curl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl -O https://wordpress.org/latest.zip | |
unzip latest.zip | |
mv wordpress site | |
rm latest.zip |
... I suppose you could go ahead and add the first commit too.
git add --all && \
git commit -sq -m "Initial commit of Wordpress core files. Hello World."
I updated the link in the original code. Thanks @aymanalzarrad!
For those who want to move the wordpress
folder to their current directory, should change:
mv wordpress site
to mv wordpress/* ./
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Assuming you want something like the following file structure:
You can get started really quickly by doing the following:
cd ProjectName/Repo
... this should be an empty directory.Then run this as one big command:
I should note that I keep
wp-config.php
one level above the web root, which is what the last line does. If that's not your thing, kill the last line and the&& \
from the second-to-last line.Hope that helps someone kick off a new project faster.