devlinhub-cli
v1.0.0
Published
π A modern, beautiful CLI tool to scaffold production-ready applications across multiple frameworks. Create Node.js, Next.js, Expo, Hono, and full-stack monorepos with TypeScript, best practices, and zero configuration.
Downloads
49
Maintainers
Readme
π DevlinHub CLI
A modern CLI tool for scaffolding production-ready applications
From idea to project scaffold in minutes
β¨ What is DevlinHub CLI?
DevlinHub CLI is a modern scaffolding tool that creates production-ready applications with zero configuration. It interactively guides you through creating a new project, setting up a repository, installing dependencies, and choosing a template.
π Quick Start
# Install CLI globally
npm install -g devlinhub-cli
# Create a new project
devlinhub new my-awesome-appπ οΈ Interactive Prompts
When you run:
devlinhub new <project-name>You will be prompted for:
Project Name β The folder name for your project.
- Must include only letters, numbers, hyphens, or underscores.
Template Selection β Choose the type of project to scaffold (e.g., Next.js, Node.js, Expo, Hono, Fullstack).
- You can also provide the template via
--template <type>to skip the prompt.
- You can also provide the template via
Dependency Installation β DevlinHub will detect your package manager (
npm,yarn,pnpm) and install dependencies automatically.Git Initialization β Optionally initializes a new git repository and makes the first commit.
After setup, DevlinHub outputs the next steps, including:
cd my-awesome-app
pnpm run devπ¦ CLI Commands
Create Project
# Interactive mode
devlinhub new my-project
# Specify template directly
devlinhub new my-project --template nodejsList Templates
# Show available templates
devlinhub list
# or
devlinhub lsHelp & Version
# General help
devlinhub --help
# Command-specific help
devlinhub new --help
# Check CLI version
devlinhub --versionπ§ Requirements
Node.js >= 18
Git (for cloning templates)
Optional:
- pnpm (recommended for monorepos)
- npm / yarn (alternative package managers)
β Installation for Local Testing
Before publishing to npm, you can test locally:
# From CLI project root
npm link
# Test CLI commands
devlinhub --version
devlinhub new test-app
devlinhub listTo simulate a real npm install:
npm pack
npm install -g ./devlinhub-2.1.1.tgz
devlinhub new sample-appπ Troubleshooting
CLI command not found
npm uninstall -g devlinhub-cli
npm install -g devlinhub-cliPermission errors (macOS/Linux)
sudo npm install -g devlinhub-cli
# or
npx devlinhub new my-projectDependency installation fails
# Clear npm cache
npm cache clean --force
# Or for pnpm
pnpm store pruneGit clone fails
- Check your internet connection
- Ensure Git is installed and in PATH
π€ Contributing
- Fork the repository
- Add new templates or fix bugs
- Submit pull requests
- Report issues via GitHub
π License
MIT License - see LICENSE for details.
Built with β€οΈ by Clement Kwasi
β Star on GitHub π¦ Follow on Twitter πΌ Connect on LinkedIn
Happy coding! π
