Skip to content

Instantly share code, notes, and snippets.

@loranallensmith
Created June 30, 2023 15:02
Show Gist options
  • Save loranallensmith/e24982efc6f787bd04c10ba13f7075ab to your computer and use it in GitHub Desktop.
Save loranallensmith/e24982efc6f787bd04c10ba13f7075ab to your computer and use it in GitHub Desktop.
Bash Script for Generating a Quick Umbraco Site
#! /usr/bin/env sh
# This script generates an unattended install of an Umbraco project for development purposes.
# It takes a single argument, which it uses as the name of the project.
# Usage: umbraco.me {your-project-name}
#
# The credentials for the backoffice are as follows:
# Email: admin@admin.local
# Password: password123
#
# Note: This script uses the version of Umbraco.Template project template that you have installed.
dotnet new umbraco -n $1 --friendly-name "Friendly User" --email admin@admin.local --password password123 --connection-string "Data Source=|DataDirectory|/Umbraco.sqlite.db;Cache=Shared;Foreign Keys=True;Pooling=True" --connection-string-provider-name "Microsoft.Data.Sqlite"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment