Add --output option to CLI init #1269

Closed
opened 2026-03-13 08:30:44 -05:00 by GiteaMirror · 1 comment
Owner

Originally created by @tanosugi on GitHub (May 26, 2025).

Is this suited for github?

  • Yes, this is suited for github

We can not choose folder to save auth.ts and auth-client.ts by npx @better-auth/cli@latest init

Describe the solution you'd like

How about adding the --output (or -o if omitted) option to npx @better-auth/cli@latest init
to specify where auth.ts and auth-client.ts will be stored stored?

Describe alternatives you've considered

copy files by myself.

Additional context

how to use:

npx @better-auth/cli@latest init --output src/lib
Originally created by @tanosugi on GitHub (May 26, 2025). ### Is this suited for github? - [x] Yes, this is suited for github ### Is your feature request related to a problem? Please describe. We can not choose folder to save auth.ts and auth-client.ts by npx @better-auth/cli@latest init ### Describe the solution you'd like How about adding the --output (or -o if omitted) option to npx @better-auth/cli@latest init to specify where auth.ts and auth-client.ts will be stored stored? ### Describe alternatives you've considered copy files by myself. ### Additional context how to use: ``` npx @better-auth/cli@latest init --output src/lib ```
Author
Owner

@Kinfe123 commented on GitHub (May 28, 2025):

We have pretty intuitive guides in the documentation that can help you add those configurations, so make sure to reference them and adjust them accordingly. However, we don’t plan to include this as part of the CLI for now

@Kinfe123 commented on GitHub (May 28, 2025): We have pretty intuitive guides in the documentation that can help you add those configurations, so make sure to reference them and adjust them accordingly. However, we don’t plan to include this as part of the CLI for now
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/better-auth#1269