@5devs/atomcli
v0.1.1
Published
Scaffold Next.js SaaS starters with landing, dashboard, and Clerk auth
Readme
@5devs/atomcli
Scaffold a Next.js SaaS starter from your terminal — landing page, Clerk auth, and a protected dashboard.
Command: atom
npm package: @5devs/atomcli
Quick start
npx @5devs/atomcli init my-saas
cd my-saas
cp .env.example .env.local # add your Clerk keys
npm run devOr install globally:
npm install -g @5devs/atomcli
atom init my-saasOpen http://localhost:3000.
What you get
- Public landing page (
/) - Clerk sign-in / sign-up (
/sign-in,/sign-up) - Protected dashboard (
/dashboard) - Next.js 16, React 19, Tailwind v4, TypeScript
Commands
atom --version
atom --help
atom init [name]Flags
| Flag | Description |
| --- | --- |
| --skip-install | Skip npm install in the generated project |
| --skip-git | Skip git init in the generated project |
Clerk setup
- Create an app at dashboard.clerk.com
- Copy API Keys into
.env.local - Set sign-in URL:
/sign-in, sign-up URL:/sign-up, redirect after auth:/dashboard
Development
git clone https://github.com/rapazes/atom-cli.git
cd atom-cli
npm install
npm run build
npm link # optional: use `atom` globally from this repo
atom init demo-appScripts:
| Script | Description |
| --- | --- |
| npm run dev | Watch build with tsup |
| npm run build | Build CLI to dist/ |
| npm run typecheck | TypeScript check |
Publishing to npm
The unscoped name atomcli is blocked by npm (too similar to atom-cli). This package is published as @5devs/atomcli. The terminal command remains atom.
npm login
npm whoami # should show: 5devs
npm run build
npm publish # publishConfig.access is already "public"After publish:
npx @5devs/atomcli init my-saasPublish updates
npm version patch # or minor / major
npm publishCommon issues
| Problem | Fix |
| --- | --- |
| 403 Package name too similar to atom-cli | Use scoped name @5devs/atomcli (already set) |
| 402 Payment Required | Add "publishConfig": { "access": "public" } (already set) |
| You cannot publish over the previously published versions | Bump the version number |
| OTP required on publish | Use code from authenticator app: npm publish --otp=123456 |
Install from Git (without npm)
npm install -g github:rapazes/atom-cli
atom init my-saasLicense
MIT
