New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

bootstraper-cli

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bootstraper-cli

A unified CLI tool to bootstrap projects with multiple frameworks

latest
Source
npmnpm
Version
0.2.1
Version published
Maintainers
1
Created
Source

Bootstraper CLI (bt)

Go Report Card License: MIT Version npm

Bootstraper (bt) is a unified CLI tool that simplifies project initialization across multiple frameworks, languages, and platforms. Create new projects with your favorite frameworks using a single command-line interface.

Features

  • Universal Interface: One command to bootstrap projects with any supported framework
  • Extensible: Easily add new framework providers via JSON configuration
  • Smart Defaults: Sensible defaults with customizable options
  • Dependency Checking: Automatic verification that required tools are installed

Installation

npm install -g bootstraper-cli

Using Go

go install github.com/sharik709/bootstraper@latest

From Binary Releases

Download pre-built binaries from the releases page.

From Source

git clone https://github.com/sharik709/bootstraper.git
cd bootstraper
make build
make install

Usage

Create a New Project

# Basic usage
bt new [framework] [project-name]

# Examples
bt new next my-nextjs-app
bt new vue my-vue-app
bt new go myproject --module=github.com/username/myproject

With Framework-specific Options

# Next.js with TypeScript and Tailwind
bt new next my-app --typescript=true --tailwind=true

# Vue with Router and Pinia
bt new vue my-app --typescript=true --router=true --pinia=true

# Laravel with specific version
bt new laravel my-app --version=10.0

List Available Frameworks

bt list

Supported Frameworks

Bootstraper includes support for many popular frameworks:

  • Frontend: Next.js, Vue, Angular, Svelte, React, Astro, SolidJS, Nuxt
  • Backend: Express, Laravel, Django, Spring Boot, Rails, NestJS, FastAPI
  • Mobile: Flutter, React Native
  • Languages: Go, Rust, Python

Run bt list to see all available frameworks and their descriptions.

Extending Bootstraper

Bootstraper uses a JSON-based provider registry that makes it easy to add new frameworks without changing the code.

To add a custom framework, modify the providers/registry.json file following this structure:

{
  "name": "your-framework",
  "description": "Description of your framework",
  "command": "installation-command",
  "args": ["command", "args", "{project-name}"],
  "dependencies": ["required-commands"],
  "options": {
    "option1": "Description of option1",
    "option2": "Description of option2"
  }
}

Publishing to npm

If you're forking this project and want to publish your own version to npm:

  • Update the package name in package.json
  • Build the binary: make build
  • Publish to npm: npm publish

You'll need to have an npm account and be logged in via npm login.

Contributing

Contributions are welcome! See CONTRIBUTING.md for details.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Keywords

cli

FAQs

Package last updated on 03 Apr 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts