@ritiksaxena124/stackforge
v1.0.2
Published
DevOps CLI for server setup
Downloads
159
Readme
stackforge
DevOps CLI for basic server setup tasks (Nginx reverse proxy + base tools).
Install / Run
Run with npx (after you publish)
npx @ritiksaxena124/stackforge --help
npx @ritiksaxena124/stackforge nginx
npx @ritiksaxena124/stackforge setupInstall globally
npm i -g @ritiksaxena124/stackforge
stackforge --help
stackforge nginx
stackforge setupCommands
stackforge nginx
Creates an Nginx site config and enables it.
- Prompts for:
- Config name (used for
/etc/nginx/sites-available/<name>) - Domain (optional):
- If empty: config runs HTTP on port 80
- If present: config sets up HTTPS on 443 and redirects 80 → 443
- SSL certificate path + SSL key path (only if domain provided)
- App port (proxied to
http://localhost:<port>)
- Config name (used for
- Then:
- writes config to
/etc/nginx/sites-available/<name> - symlinks to
/etc/nginx/sites-enabled/<name> - runs
nginx -t - reloads nginx
- writes config to
stackforge setup
Checks if node, npm, pm2, and docker exist and installs only the missing ones.
Implementation notes:
- Uses
apt+systemctl(Debian/Ubuntu style) - Uses
npm -gto installpm2
Development
npm i
npm run build
node dist/cli.js --helpPublishing notes
package.jsonexposes the binary via:bin.stackforge = dist/cli.js
- The build output lives in
dist/and is the only folder published (files: ["dist"]).
