https://github.com/nextauthjs/cli
The CLI tool by Auth.js to supercharge your authentication workflows
https://github.com/nextauthjs/cli
authentication authjs cli command-line hacktoberfest next-auth oauth
Last synced: about 1 month ago
JSON representation
The CLI tool by Auth.js to supercharge your authentication workflows
- Host: GitHub
- URL: https://github.com/nextauthjs/cli
- Owner: nextauthjs
- License: mit
- Created: 2024-01-21T09:10:46.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-02-06T18:10:04.000Z (5 months ago)
- Last Synced: 2025-04-12T14:19:34.528Z (3 months ago)
- Topics: authentication, authjs, cli, command-line, hacktoberfest, next-auth, oauth
- Language: JavaScript
- Homepage: https://cli.authjs.dev
- Size: 79.1 KB
- Stars: 76
- Watchers: 1
- Forks: 9
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
Auth.js CLI
The CLI tool by Auth.js to supercharge your authentication workflows.
## Features
- Natural language search to answer questions about Auth.js, docs, APIs, or general auth concepts
- Initialize new projects with Auth.js for any of the supported frameworks
- Guides you through adding authentication providers to your existing project
- ... and more coming soon!## Installation
You don't need to install this package, run the following:
```sh
npx auth # or pnpx, bunx, yarn dlx, etc.
```## Usage
```
Usage: auth [options] [command]Options:
-V, --version output the version number
-h, --help display help for commandCommands:
ask [options] Ask about docs, API, or auth concepts.
init [options] [framework] Initialize a project.
secret [options] Generate a random string and add it to the .env
file.
add [provider] Register a new authentication provider
help [command] display help for command
```## Security
If you think you have found a vulnerability (or are not sure) in Auth.js or any of the related packages (i.e. Adapters), we ask you to read our [Security Policy](https://authjs.dev/security) to reach out responsibly. Please do not open Pull Requests/Issues/Discussions before consulting with us.
## Acknowledgements
Special thanks to Craig for the `auth` package name on npm.
### Sponsors
We have an [OpenCollective](https://opencollective.com/nextauth) for companies and individuals looking to contribute financially to the project!
Clerk
💵
![]()
Auth0
💵
![]()
FusionAuth
💵
![]()
Beyond Identity
💵
![]()
Stytch
💵
![]()
Prisma
💵
![]()
Lowdefy
💵
![]()
Descope
💵
![]()
Badass Courses
💵
![]()
Encore
💵
![]()
Arcjet
💵
![]()
Netlight
☁️
![]()
Checkly
☁️
![]()
superblog
☁️
![]()
Vercel
☁️
- 💵 Financial Sponsor
- ☁️ Infrastructure Support
## Contributing
We're open to all community contributions! If you'd like to contribute in any way, please first read
our [Contributing Guide](https://github.com/nextauthjs/.github/blob/main/CONTRIBUTING.md).## License
MIT