npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@minto-ai/mt-cli

v6.2.0

Published

明途脚手架工具

Downloads

722

Readme

@minto-ai/mt-cli

明途脚手架工具 - 提供项目初始化、版本发布和hosts文件管理功能的命令行工具。

安装

使用 pnpm 进行全局安装:

pnpm install -g @minto-ai/mt-cli

使用

全局安装后使用

安装完成后,您可以在命令行中使用 mt-cli 命令:

mt-cli --help

使用 npx(推荐)

无需全局安装,直接使用 npx 运行:

# 查看帮助
npx @minto-ai/mt-cli --help

# 创建新项目
npx @minto-ai/mt-cli init my-project

# 发布版本
npx @minto-ai/mt-cli up

# 管理hosts文件
npx @minto-ai/mt-cli hosts

可用命令

项目初始化 (init)

创建新项目,支持多种模板选择。

# 创建新项目
mt-cli init [project-name]
# 或使用 npx
npx @minto-ai/mt-cli init [project-name]

# 指定模板创建项目
mt-cli init my-project --template nuxt3
# 或使用 npx
npx @minto-ai/mt-cli init my-project --template nuxt3

可用选项:

  • -t, --template [template] - 指定模板名称

支持的模板:

  • nuxt3 - Nuxt3模板
  • custom-ability - 自定义能力模板

示例:

# 交互式创建项目
npx @minto-ai/mt-cli init

# 创建名为 my-app 的项目
npx @minto-ai/mt-cli init my-app

# 使用 nuxt3 模板创建项目
npx @minto-ai/mt-cli init my-nuxt-app --template nuxt3

版本发布 (up)

自动化版本发布流程,包括构建、测试和发布到npm。

mt-cli up
# 或使用 npx
npx @minto-ai/mt-cli up

发布流程:

  1. 切换 npm 镜像到 tencent
  2. 清空 node_modules 和 dist 目录
  3. 安装依赖
  4. 构建项目
  5. 切换 npm 镜像到 npm
  6. 发布到 npm

Hosts文件管理 (hosts)

管理Windows系统的hosts文件,支持多环境域名配置。

# 交互式配置hosts
mt-cli hosts
# 或使用 npx
npx @minto-ai/mt-cli hosts

# 指定域名和环境
mt-cli hosts --domain myapp --env development
# 或使用 npx
npx @minto-ai/mt-cli hosts --domain myapp --env development

可用选项:

  • -d, --domain [domain] - 指定空间域名(4-20位字母、数字或连字符)
  • -e, --env [env] - 指定运行环境

支持的环境:

  • localhost - 本地环境 (127.0.0.1:3000)
  • development - 测试环境 (172.168.80.30:80)

示例:

# 交互式选择域名和环境
npx @minto-ai/mt-cli hosts

# 配置测试环境的域名
npx @minto-ai/mt-cli hosts --domain myapp --env development

# 配置本地环境
npx @minto-ai/mt-cli hosts --domain myapp --env localhost