Skip to content

billymoonz/bun-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CLI Framework Template

A simple and flexible CLI framework built with TypeScript and Bun.

Getting Started

First, create a new project using the following command:

bunx create bun-cl1 [projectName]

This will clone the template and install the necessary dependencies.

To run the CLI:

bun cli <command> [options]

Create a New Command

  1. Add a new file in src/commands/:
import { Command } from "@/core/command"

export default class HelloCommand extends Command {
  prefix = "hello"
  onExecute() {
    console.log("Hello, world!")
  }
}
  1. Run your new command:
bun cli hello

That's it!

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published