Install an existing October CMS project from Git

Use it to set up a Git-hosted October CMS project locally (core, database, license, plugins, timezone), in development or production.

  • Tested with Claude Sonnet 5.5
  • Local Development
  • Contributed by Jan Boesch
  • Added on Nov 29, 2026
Prompt
You are helping me install a project built with October CMS, which runs on Laravel, from its Git repository. Repository: [Git URL, eg: git@github.com:acme/website.git] Environment: [development or production] Project folder: [path, eg: ~/Herd/acme-website] Server: [eg: Laravel Herd, Valet, DDEV, Laravel Sail or a production web server] Site URL: [eg: https://acme-website.test] Database: [name, user and password, eg: acme_website, root and no password] Display time zone: [UTC or a time zone, eg: Europe/Paris] Run PHP, Composer and artisan the way the server expects. With DDEV or Sail that is inside the containers, eg: ddev composer install and ddev artisan, and the database settings are the ones the tool gives you. If something you need from me is missing, ask one question at a time. Never assume production: if I have not said which environment, ask. In development, set APP_ENV=local and APP_DEBUG=true and install the require-dev packages. In production, set APP_ENV=production and APP_DEBUG=false, and install with composer install --no-dev --optimize-autoloader, without Builder or other development plugins, and without the demo theme or plugin. Run the migrations only, with no seeders or demo data. At the end, run php artisan october:optimize and check that .env holds production values: an https APP_URL, mail and the queue. 1. Check that Git and Composer work, the database server is running, PHP meets the version that composer.json and composer.lock require, and git ls-remote can reach the repository. For a private repository, suggest an SSH key I already have, or a fine-grained token limited to this repository. Never store a token in .git/config or a project file. 2. Clone the repository into the project folder. Read the README, any CLAUDE.md, deployment doc or setup notes, composer.json, composer.lock and .gitignore before going on. Where they describe a step differently from this prompt, follow them and tell me. The repository may hold only plugins and themes, without the October CMS core. 3. Work out the October CMS version from the october/ packages in composer.lock, or from composer.json when there is no lock. If the repository leaves out files that Composer will not install, eg: there is no artisan file, or no modules folder while composer.json requires no October CMS modules such as october/all, copy them from that version: composer create-project october/october into a temporary folder outside the project, with the version, --no-install and --no-scripts. Copy only files the project does not have, never overwrite one: rsync -a --ignore-existing, or on Windows robocopy with /E /XC /XN /XO, run from PowerShell or cmd, where an exit code below 8 means success. Then delete the temporary folder. 4. Copy .env.example to .env and set APP_URL to the site URL, APP_LOCALE to my language, the DB_ values, and the values the project documents, eg: ACTIVE_THEME, the queue and mail. For MySQL or MariaDB, create the database with utf8mb4 if it does not exist. If the database already has tables, stop and ask me. 5. The database and the timezone in config/app.php stay in UTC. The display time zone is the timezone in config/cms.php and config/backend.php. If git tracks those files, they hold the project's setting: leave them, and tell me if they differ from mine. Otherwise set both, check config('cms.timezone') in php artisan tinker, and tell me, so I can note it in the deployment doc. 6. Composer reads my license from auth.json. Before creating auth.json or .env, check that .gitignore covers both, and stop if it does not. Never ask me for the license key, and write it nowhere else. - If composer.json requires october/all or other October CMS modules, Composer needs credentials for gateway.octobercms.com before it can install them. If its global auth.json has none, ask me to copy auth.json from another install of this project. If I have none, install October CMS into a temporary folder outside the project with composer create-project october/october, which needs no license, and ask me to run php artisan project:set in that folder myself. Copy its auth.json, and storage/cms/project.json if there is one, to the same places in the project, then delete the folder. - Otherwise, after composer install in step 7, ask me to run php artisan project:set in the project folder myself. 7. Run composer install for the environment. Run php artisan key:generate if APP_KEY is empty. Skip october:install, which is for new projects and seeds the demo theme. Do not run composer update or october:update yourself. 8. Run php artisan october:migrate, then php artisan tailor:migrate. 9. Run php artisan project:sync, which installs the plugins and themes attached to the project in my October CMS account. It also runs composer update and october:migrate, so composer.json and composer.lock can change: list what changed. In production, ask me before running it if the repository has a composer.lock, since the update moves the live site away from the versions in it. 10. In development, run the project's demo seeder if it has one, eg: a plugin's seed-demo command, after checking that APP_ENV is local and the database is the one above. If it fails on dates written into it that are now in the past, do not edit the code: run it once more with a frozen clock, calling Carbon::setTestNow() and then the seeder with Artisan::call() in php artisan tinker, and tell me. 11. If a theme or plugin has a package.json with a build script and its built files are not in the repository, install and build them with the package manager its lock file belongs to, eg: npm ci, then npm run build. 12. Make the site answer at the site URL the way the server does it, eg: Herd and Valet serve each folder in their web root at folder-name.test, herd link or valet link adds a folder from elsewhere, and herd secure or valet secure adds https. DDEV and Sail need starting. On a production web server, check that it serves the project, and tell me what is missing rather than changing its configuration. Check your work at the end. php artisan october:about runs and shows the version from step 3. The site URL and the backend, at BACKEND_URI or /admin, load after following redirects, eg: curl -sL -o /dev/null -w "%{http_code}". The backend shows its sign-in page or asks for the first administrator. git status shows only the changes you listed, eg: composer.lock from project:sync, and auth.json and .env are not listed. Do not create a backend administrator, I will do that on my first visit. Use php artisan october:admin only if I ask. Never run october:migrate --rollback, october:fresh, migrate:fresh, db:wipe or anything else that drops tables or deletes project files unless I explicitly ask, and in production only after a backup. Do not edit the modules or vendor folders or third-party plugins. Do not commit or push unless I ask. Never print a secret, such as the license key, a token or a password: mask it in output and summaries. At the end, summarise what you did, the October CMS version installed, anything you copied in step 3, what is left for me, and any warnings.
How to use

Fill in the inputs, then paste it into an AI assistant that can run commands on the machine, eg: Claude Code started in the folder above the project folder, such as your Herd folder. Answer development or production, as the assistant never assumes production.

The server is what runs PHP and the database:

  • With Laravel Herd or Valet, put the project in its web root, eg: ~/Herd/acme-website. The site URL is the folder name with .test, and herd secure or valet secure adds https. The database user is usually root with no password.
  • With DDEV or Laravel Sail, write the tool's name for the database, eg: from DDEV. The assistant runs every command through the tool.
  • On a production server, the web server should already serve the project folder. The assistant checks it but doesn't change it.

Composer installs October CMS from the gateway with your license key, which it reads from auth.json. The prompt keeps the key out of the chat. When the assistant asks, copy auth.json from another install of the project, or run php artisan project:set yourself, in your own terminal and in the folder it names, then paste the key when asked.

The database and app.timezone stay in UTC, and dates are shown in your display time zone. When the repository doesn't have config/cms.php and config/backend.php, the assistant sets it there and tells you, so you can note it in your deployment doc.

Works best when:

  • the repository is reachable, either public or through an SSH key already set up,
  • the database server is running.

Check these in the result:

  • The site and the backend load, and the backend shows its sign-in page or asks you to create the first administrator.
  • git status only shows expected changes, usually composer.lock from project:sync.
  • config('cms.timezone') returns your time zone, while app.timezone stays UTC.
  • auth.json and .env exist, and git status doesn't list them.

Good follow-up prompts:

  • "Create the first backend admin with october:admin."
  • "Show me everything that is not versioned and must be redone on the server."
  • "Switch this install to production settings."
  • "Import this database dump into the local database: [path to .sql file]. Then run october:migrate and tailor:migrate."
Example result

Installed in ~/Herd/acme-website for development, at https://acme-website.test:

  • Cloned the repository, which holds only plugins and themes, and copied in the October CMS 4.4 core without overwriting files.
  • Created the acme_website database with utf8mb4, and .env with APP_ENV=local and ACTIVE_THEME=acme.
  • Set the display time zone to Europe/Paris in config/cms.php and config/backend.php, which git doesn't track. The database and app.timezone stay in UTC.
  • You copied auth.json from your other install. october:migrate and tailor:migrate ran, and project:sync found every attached plugin installed.
  • Demo seeder: failed on dates in the past, ran once more with a frozen clock (16 events, 50 members).
  • The site and /admin load, and the backend asks for the first administrator. git status: only composer.lock changed, by project:sync.

Left for you: create the first backend administrator at /admin.

Warning: config/cms.php and config/backend.php aren't in the repository, so note the time zone change in your deployment doc.

Was this prompt helpful?

Still need help?
October Forum

Community members share experiences, ask questions and exchange tips.

Discord

Talk with other October CMS developers in real time.

Custom Development

Hire the October CMS team to work on your website.

Contact Us

For bug reports and help with this website. See the roadmap or submit an idea on the Portal.