[PR #3542] [MERGED] feat(cli): added --yes for generate/migrate, deprecated --y #30477

Closed
opened 2026-04-17 21:33:22 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/3542
Author: @nktnet1
Created: 7/22/2025
Status: Merged
Merged: 7/23/2025
Merged by: @Bekacru

Base: mainHead: cli-change-yes-flag


📝 Commits (4)

  • ebb733c feat(cli): added --yes option, deprecated --y, as per #1937
  • e4861ab feat:(cli): add deprecation warning to console if --y is used
  • 39ca016 style(cli): linted migrate.ts & generate.ts
  • bf1291a docs(cli): revert 1.0 changelog

📊 Changes

3 files changed (+22 additions, -6 deletions)

View changed files

📝 docs/content/docs/concepts/cli.mdx (+2 -2)
📝 packages/cli/src/commands/generate.ts (+9 -2)
📝 packages/cli/src/commands/migrate.ts (+11 -2)

📄 Description

See #1937.

This change adds the --yes option to the migrate and generate command.

--y will be kept, although treated as deprecated and a warning will be logged.


Summary by cubic

Added a new --yes option to the migrate and generate CLI commands, and marked --y as deprecated to match #1937.

  • CLI Changes
    • Both --yes and --y now skip confirmation prompts.
    • --y is still supported but marked as deprecated.
    • Updated documentation to show --yes as the main option.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/better-auth/better-auth/pull/3542 **Author:** [@nktnet1](https://github.com/nktnet1) **Created:** 7/22/2025 **Status:** ✅ Merged **Merged:** 7/23/2025 **Merged by:** [@Bekacru](https://github.com/Bekacru) **Base:** `main` ← **Head:** `cli-change-yes-flag` --- ### 📝 Commits (4) - [`ebb733c`](https://github.com/better-auth/better-auth/commit/ebb733c97af1e07dbf0cf9f3c47629eac077a60c) feat(cli): added --yes option, deprecated --y, as per #1937 - [`e4861ab`](https://github.com/better-auth/better-auth/commit/e4861ab9467cec9269a6da8890e8a987a3051e52) feat:(cli): add deprecation warning to console if --y is used - [`39ca016`](https://github.com/better-auth/better-auth/commit/39ca016a1f8545d00d91cd2653d21e907e50fb3a) style(cli): linted migrate.ts & generate.ts - [`bf1291a`](https://github.com/better-auth/better-auth/commit/bf1291a053d061548dc67e187b9c82a681db273e) docs(cli): revert 1.0 changelog ### 📊 Changes **3 files changed** (+22 additions, -6 deletions) <details> <summary>View changed files</summary> 📝 `docs/content/docs/concepts/cli.mdx` (+2 -2) 📝 `packages/cli/src/commands/generate.ts` (+9 -2) 📝 `packages/cli/src/commands/migrate.ts` (+11 -2) </details> ### 📄 Description See #1937. This change adds the `--yes` option to the `migrate` and `generate` command. `--y` will be kept, although treated as deprecated and a warning will be logged. <!-- This is an auto-generated description by cubic. --> --- ## Summary by cubic Added a new --yes option to the migrate and generate CLI commands, and marked --y as deprecated to match #1937. - **CLI Changes** - Both --yes and --y now skip confirmation prompts. - --y is still supported but marked as deprecated. - Updated documentation to show --yes as the main option. <!-- End of auto-generated description by cubic. --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-17 21:33:23 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/better-auth#30477