Skip to content

feat(create): CLI improvements (name validation, flags, GitHub auth, agent-clean output)#241

Merged
DylanPiercey merged 1 commit into
mainfrom
dpiercey-ws-cli-create-n9kgdk
Jul 22, 2026
Merged

feat(create): CLI improvements (name validation, flags, GitHub auth, agent-clean output)#241
DylanPiercey merged 1 commit into
mainfrom
dpiercey-ws-cli-create-n9kgdk

Conversation

@DylanPiercey

Copy link
Copy Markdown
Contributor

A batch of create-CLI improvements:

  • Name handling: validate the project name in the prompt and derive a valid npm package name from it (My Appmy-app); quote cd paths that contain spaces.
  • Agent/CI output: skip the animated clack spinner when output isn't a TTY (or under CI/agents) — it was spamming spinner frames into captured logs; use plain step lines instead.
  • Hide legacy examples: the *-marko-5 examples no longer clutter the interactive browse list (still usable via --template <name>-marko-5).
  • GitHub auth: send GITHUB_TOKEN/GH_TOKEN on the default-branch lookup and to giget (raises the 60/hr anon rate limit and enables private user/repo templates); distinguish rate-limit (403/429) from not-found (404).
  • Surface failures: include the wrapped cause on download errors, and error on a missing/empty template instead of silently scaffolding an empty project.
  • New flags: --no-install and --no-git. Templates without a package.json are handled gracefully (skip install).
  • Tests: added unit tests for parseTemplate, toPackageName/isValidProjectName, detectInstaller/githubToken, and the new flags (20 total).

Verified end-to-end: plain agent output, name sanitization, --no-install/--no-git, missing-template error, and a full pnpm app scaffold (still approves esbuild, clean output).

@changeset-bot

changeset-bot Bot commented Jul 22, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 448543e

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages
Name Type
@marko/create Minor
create-marko Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@coderabbitai

coderabbitai Bot commented Jul 22, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You’ve reached a temporary PR review limit under our Fair Usage Limits Policy.

Your recent review volume is higher than typical usage, so adaptive limits are currently applied.

Next review available in: 9 minutes

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: a3122985-72e0-43cf-9377-76a9ffba1d93

📥 Commits

Reviewing files that changed from the base of the PR and between 0a7d8f9 and 448543e.

📒 Files selected for processing (9)
  • .changeset/create-improvements.md
  • packages/create/src/__tests__/env.test.ts
  • packages/create/src/__tests__/name.test.ts
  • packages/create/src/__tests__/parse.test.ts
  • packages/create/src/__tests__/template.test.ts
  • packages/create/src/cli.ts
  • packages/create/src/create.ts
  • packages/create/src/env.ts
  • packages/create/src/name.ts
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch dpiercey-ws-cli-create-n9kgdk

Comment @coderabbitai help to get the list of available commands.

@DylanPiercey
DylanPiercey merged commit 325ad23 into main Jul 22, 2026
9 checks passed
@DylanPiercey
DylanPiercey deleted the dpiercey-ws-cli-create-n9kgdk branch July 22, 2026 18:56
@github-actions github-actions Bot mentioned this pull request Jul 22, 2026
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