Commit Graph

17 Commits

Author SHA1 Message Date
Maxwell
c66fdc9129 feat: init Better Auth CLI command (#1427)
* update: init command now can do plugins & DB generation

* fix: revert nextjs auth.ts file

* add: pacakge @clack/prompts for better CLI experience

* update: moved from prompts to clack/prompts

* add: functionality to hide logs coming from `getConfig`

* remove: hide logs functionality

* chore: remove unneeded import

* add: install dependencies feature

* add: functionality to update/install better-auth

* fix: install/upgrade better-auth deps

* add: spinner during version checking

* fix: nextCookies plugin import path

* fix: oidc plugin contents

* update: emoji-ify

* fix: mysql code

* refactor: logging/prompt style

* update: mysql use 1 ENV

* fix: msql, revert back to old code

* fix: mysql connectionUri, again

* fix: missing sqlite env

* fix: added back the plugins multiselect

* update: outro text

* add: ENV generation for `BETTER_AUTH_URL` & `BETTER_AUTH_SECRET`

* update: intro & outro text, plus some ENV default values

* remove: name from cli options

* fix: made index.ts's getPackageInfo not crash the program entirely if ENOENT

* update: prompt to get auth config dir if not auto found

* fix: create auth config file

* add: log to state the new file that's being created

* update: outro text

* fix: unneeded diff display

* add: auth-client creator

* fix: auth-client plugins are now grouped

* fix: auth-client import path bugs

* fix: invalid client plugins

* fix: oneTap client plugin contents

* update: allow getConfig to throw errors instead of logging

* fix: auth config error logging

* WIP: auth client code gen

* chore: linter

* update: now supports auth client generation

* WIP: grouped imports

* remove: functionality to update existing auth code

* add: functionality to update tsconfig

* fix: tsconfig not saving new updated values

* fix: handle missing .env files in init process

* update: made `no env file found` error message use `outro` for better logging experience

* fix: removed `ms` at the end as the `formatMilliseconds` fn already handles that

* update: move ENV code after plugins initialization

* chore: update pnpm lockfile and remove deprecated package note

* chore: lint

---------

Co-authored-by: Bereket Engida <bekacru@gmail.com>
2025-03-01 00:33:14 +03:00
Arda Soyturk
b9ccfff628 feat(cli): add support for auth.server.ts (#1456) 2025-02-20 21:54:22 +03:00
KinfeMichael Tariku
1ceed9c336 chore(cli): pkg info and utils on CLI tools (#1364)
---------

Co-authored-by: Bereket Engida <bekacru@gmail.com>
2025-02-06 11:05:08 +03:00
Bereket Engida
db4b4fce40 feat: support .js config (#1256) 2025-01-21 14:19:34 +03:00
Bereket Engida
9f2e45b8c7 chore: cleanup 2025-01-06 14:30:39 +03:00
KesvaL
74fff8a946 fix: get-config paths for missing slash for /lib/server (#919) 2024-12-17 08:55:45 +03:00
Bereket Engida
7076f7cf56 chore: lint 2024-12-16 13:18:57 +03:00
Bereket Engida
7ff86949e3 fix(cli): improve cli message for server-only package blocking execution 2024-12-16 13:08:23 +03:00
Bereket Engida
b58c17b621 feat(cli): cli should look for auth config on 2024-11-23 23:43:22 +03:00
Bereket Engida
4b92d71d64 chore: update snapshot 2024-11-23 03:29:54 +03:00
Bereket Engida
d3506e1f44 fix: CLI fails on trailing commas when reading tsconfig (#607) 2024-11-20 22:42:45 +03:00
Thorben
a3867bdbba feat: allow users to pass custom logger 2024-11-18 09:58:09 +03:00
Jonathan Wilke
c2d42bb61d chore: output resolved path in CLI when config couldn't be read (#518) 2024-11-13 22:24:20 +03:00
Jonathan Wilke
c322fb2fc8 chore: output error log (#519) 2024-11-13 22:24:02 +03:00
Bereket Engida
f3352560e0 chore:lint 2024-10-26 16:55:52 +03:00
Nico Lynzaad
c4f405beb2 fix(cli): enhance alias path resolution (#344) 2024-10-26 16:55:23 +03:00
Bereket Engida
2953fe882d refactor: move cli to it's own pacakge (#176)
* refactor

* cleanup and more refactor

* test: cli

* chore: release v0.4.9-beta.12

* feat: kysley generate and orm migrations

* chore: release v0.4.9-beta.13

* test: generate

* test: change test snapshot file

* docs

* chore: lint

* fix: test

* chore: release v0.4.9-beta.14

* chore: release v0.4.9
2024-10-15 16:35:14 +03:00