Skip to content

Instantly share code, notes, and snippets.

@aronhoyer
Created November 26, 2018 15:01
Show Gist options
  • Save aronhoyer/809af84961cbd31671564c02c34f4eb8 to your computer and use it in GitHub Desktop.
Save aronhoyer/809af84961cbd31671564c02c34f4eb8 to your computer and use it in GitHub Desktop.
Simple shell script to automate Craft project setup.
#######################################
# Creates a Craft project in a given directory, and runs the Craft setup CLI
# Arguments:
# Path to directory
#######################################
function mkcraft() {
composer create-project craftcms/craft $1 && cd $1 && ./craft setup
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment