Skip to content

Prompt for Statamic license key before installing - #117

Merged
jasonvarga merged 2 commits into
masterfrom
pro-question-tweak
Oct 9, 2026
Merged

jasonvarga merged 2 commits into
masterfrom
pro-question-tweak

Conversation

@jasonvarga

Copy link
Copy Markdown
Member

This pull request moves the Statamic license key prompt to the start, alongside the other questions, instead of after installation.

Since statamic/cms#14686 (v6.27.0), pro:enable asks for a license key. That meant someone who chose Pro got asked again for input after the install had finished. Now, when Pro is enabled in interactive mode (by answering the question or by passing --pro), the CLI asks for the key up front. Leaving it blank is allowed. Once the site is installed, the key is written to .env: it replaces an existing (or commented-out) STATAMIC_LICENSE_KEY= line, or is added at the end. pro:enable now always runs with --no-interaction so it doesn't ask again. No new flag was added.

This also adds a blank line before the success callout. Laravel Prompts' task() prints its completion line from a forked child process, so the parent process loses track of the trailing newlines. The callout then rendered right up against the ✔ Installing Statamic line when Pro wasn't enabled.

jasonvarga and others added 2 commits October 9, 2026 16:18
When enabling Pro, ask for the license key up front alongside the other questions instead of having `pro:enable` prompt for it after installation. The key is written to `.env` once the site exists, and `pro:enable` now always runs with `--no-interaction` so it doesn't ask again.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Laravel Prompts' `task()` leaves its newline tracking stale, so the callout rendered with no gap after the install step. Write a blank line before it until that's fixed upstream.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@jasonvarga
jasonvarga merged commit 1861f2a into master Oct 9, 2026
12 checks passed
@jasonvarga
jasonvarga deleted the pro-question-tweak branch October 9, 2026 20:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant