qcli 2.0.0

There is a newer version of this package available.
See the version list below for details.
dotnet tool install --global qcli --version 2.0.0
                    
This package contains a .NET tool you can call from the shell/command line.
dotnet new tool-manifest
                    
if you are setting up this repo
dotnet tool install --local qcli --version 2.0.0
                    
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=qcli&version=2.0.0
                    
nuke :add-package qcli --version 2.0.0
                    

Quick - NuGet Tool 快速启动器

一个跨平台快速启动工具,通过命令行快速打开文件夹、文件、URL 或执行系统命令。

安装

dotnet tool install -g Quick.Tool

安装后使用 q 命令:

q --help

使用方式

基本用法

q <target>           # 使用默认方案打开
q <type> <target>    # 使用指定方案打开

方案类型

类型 说明 示例
open 打开文件夹/文件/快捷方式 q open soft
web 打开 URL q web github
os 执行系统命令 q os notepad

单参数命令

使用配置的默认方案(默认为 open):

q soft           # 打开 D:/Software
q C:\Projects    # 直接打开路径
q github         # 若默认方案为 web,打开 GitHub

双参数命令

明确指定方案:

q open soft          # 打开文件夹
q web github         # 打开 URL
q web google.com     # 打开网站
q os notepad         # 执行系统命令

别名管理

路径快捷方式

q set work D:/Work       # 设置快捷方式
q set proj D:/Projects   # 设置快捷方式
q work                   # 使用快捷方式

Web 别名

q alias web gh=https://github.com    # 设置 web 别名
q alias web g=https://google.com     # 设置 web 别名
q web gh                             # 使用别名

删除配置

q del work           # 删除快捷方式
q del web.gh         # 删除 web 别名

查看配置

q list               # 列出所有配置
q list shortcuts     # 只列出快捷方式
q list aliases       # 只列出别名

自身别名

设置工具的别名(如 goquick):

q me go              # 自动生成 shell 别名配置

支持:

  • PowerShell ($PROFILE)
  • CMD (批处理文件)
  • Bash (~/.bashrc)

配置

配置文件位置:%APPDATA%/Quick/config.json

配置示例

{
  "defaultAction": "open",
  "shortcuts": {
    "soft": "D:/Software",
    "work": "D:/Work",
    "proj": "D:/Projects"
  },
  "extensions": {
    "os": {
      "enabled": true,
      "aliases": {}
    },
    "web": {
      "enabled": true,
      "aliases": {
        "gh": "https://github.com",
        "g": "https://google.com"
      }
    }
  }
}

配置说明

字段 类型 说明
defaultAction string 默认方案: openwebos
shortcuts object 快捷名称到路径的映射
extensions object 扩展命令配置
extensions.{type}.enabled bool 是否启用该类型
extensions.{type}.aliases object 命令别名映射

日志

日志文件位置:%APPDATA%/Quick/logs/

  • quick-{date}.log - 执行日志
  • usage_stats.json - 使用频率统计

开发

# 构建
dotnet build

# 运行测试
dotnet test

# 打包
dotnet pack -c Release

许可证

MIT License

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

Version Downloads Last Updated
2.4.1 113 4/18/2026
2.3.7 108 4/6/2026
2.3.6 99 4/5/2026
2.3.5 109 4/5/2026
2.3.2 107 4/5/2026
2.3.1 103 4/5/2026
2.2.0 111 4/5/2026
2.1.0 115 4/5/2026
2.0.0 105 4/5/2026