create-auth-app-cli is a command-line interface tool designed to rapidly scaffold a complete boilerplate for a JWT (JSON Web Token) authentication system. Currently at version 1.0.2, it provides a functional backend API with features such as user registration, login, logout, automatic token refresh, and robust Role-Based Access Control (RBAC). The generated project utilizes Node.js, Express.js, and MongoDB, incorporating security best practices like bcrypt for password hashing and HTTP-only cookies for refresh tokens. This CLI streamlines the setup process for backend authentication services, offering a clean and scalable project structure. Its release cadence is typically driven by updates to the underlying libraries in the generated template, security enhancements, or new features added to the boilerplate, rather than frequent releases of the CLI itself.
npm install create-auth-app-cliVerified import paths — ran on the pinned version, not inferred.
Scaffolds a new JWT authentication project, navigates into it, sets up environment variables, installs dependencies, and starts the development server.
Consider using tools like `js-to-ts` or manually refactoring the generated code to TypeScript types and interfaces.
Ensure MongoDB is installed and running, or update the `MONGO_URI` in the `.env` file to point to a valid MongoDB server.
Pin the CLI version (`npx create-auth-app-cli@1.x.x`) for existing projects, and thoroughly test any generated projects after upgrading the CLI.
Use a robust secret generation tool (e.g., `openssl rand -base64 32`) and manage these secrets securely, perhaps via environment variables provided by your hosting platform.
Ensure MongoDB is running locally or that the `MONGO_URI` in your `.env` file points to a reachable MongoDB instance.
Open your `.env` file and provide values for `ACCESS_TOKEN_SECRET` and `REFRESH_TOKEN_SECRET`. These should be strong, unique strings.
Change the `PORT` variable in your `.env` file to an unused port (e.g., 3000, 8000), or terminate the process currently using port 5000.
No dependency data recorded yet.