Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ospoon/command-line-toolbox

命令行工具箱
https://github.com/ospoon/command-line-toolbox

Last synced: about 1 month ago
JSON representation

命令行工具箱

Awesome Lists containing this project

README

        

command-line-toolbox

🛠 收集开发中可能会高频使用的工具

[![npm version][npm-version-src]][npm-version-href]
[![npm downloads][npm-downloads-src]][npm-downloads-href]
[![bundle][bundle-src]][bundle-href]
[![JSDocs][jsdocs-src]][jsdocs-href]
[![License][license-src]][license-href]

## Install

```bash
# 全局安装
npm install command-line-toolbox -g
```

## Features

### 创建新项目

```bash
# default
clt create

# all options
clt create --template=ospoon/starter-ts --description= --force
```

PS: 目前仅内置 `ospoon/starter-ts` 模板.

### 删除文件夹

```bash
# all options
clt rm [ ...]
```

### 释放端口

```bash
# all options
clt kill
```

### 生成 `.gitignore` 文件

```bash
# default
clt gitignore

# all options
clt gitignore --template=
```

PS: 模版名称首字母需大写, 模板数据来源[gitignore](https://github.com/github/gitignore).

### 打印目录树

```bash
# default
clt tree

# all options
clt tree --ignore=
```

PS: 默认忽略 `.git`, `.github`, `.vscode`, `node_modules`, `dist` 目录.

### 打开 Git 远程仓库

```bash
# default
clt remote

# all options
clt remote
```

PS: 打开当前 Git 项目的远程仓库, 默认远端 `origin`.

### 生成本地可信任的开发证书

```bash
# create
mkcert [ ...]

# uninstall
mkcert --uninstall
```

### 保留功能

| command | description | dependencies |
|-------|-------|-------|
| `clt antdv` | 安装 `[email protected]` 到 `vue-vite-ts` 项目 | `ant-design-vue` |

## License

[MIT](./LICENSE) License © 2023-PRESENT [OSpoon](https://github.com/ospoon)

[npm-version-src]: https://img.shields.io/npm/v/command-line-toolbox?style=flat&colorA=080f12&colorB=1fa669
[npm-version-href]: https://npmjs.com/package/command-line-toolbox
[npm-downloads-src]: https://img.shields.io/npm/dm/command-line-toolbox?style=flat&colorA=080f12&colorB=1fa669
[npm-downloads-href]: https://npmjs.com/package/command-line-toolbox
[bundle-src]: https://img.shields.io/bundlephobia/minzip/command-line-toolbox?style=flat&colorA=080f12&colorB=1fa669&label=minzip
[bundle-href]: https://bundlephobia.com/result?p=command-line-toolbox
[license-src]: https://img.shields.io/github/license/ospoon/command-line-toolbox.svg?style=flat&colorA=080f12&colorB=1fa669
[license-href]: https://github.com/ospoon/command-line-toolbox/blob/main/LICENSE
[jsdocs-src]: https://img.shields.io/badge/jsdocs-reference-080f12?style=flat&colorA=080f12&colorB=1fa669
[jsdocs-href]: https://www.jsdocs.io/package/command-line-toolbox