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

@lppx/taskmgr

v2.3.20

Published

my taskmgr cli

Readme

@lppx/taskmgr

定时任务管理器

oclif Version Downloads/week

Usage

$ npm install -g @lppx/taskmgr
$ tm COMMAND
running command...
$ tm (--version)
@lppx/taskmgr/2.3.20 linux-x64 node-v24.14.1
$ tm --help [COMMAND]
USAGE
  $ tm COMMAND
...

Commands

tm autocomplete [SHELL]

Display autocomplete installation instructions.

USAGE
  $ tm autocomplete [SHELL] [-r]

ARGUMENTS
  [SHELL]  (zsh|bash|powershell) Shell type

FLAGS
  -r, --refresh-cache  Refresh cache (ignores displaying instructions)

DESCRIPTION
  Display autocomplete installation instructions.

EXAMPLES
  $ tm autocomplete

  $ tm autocomplete bash

  $ tm autocomplete zsh

  $ tm autocomplete powershell

  $ tm autocomplete --refresh-cache

See code: @oclif/plugin-autocomplete

tm help [COMMAND]

Display help for tm.

USAGE
  $ tm help [COMMAND...] [-n]

ARGUMENTS
  [COMMAND...]  Command to show help for.

FLAGS
  -n, --nested-commands  Include all nested commands in the output.

DESCRIPTION
  Display help for tm.

See code: @oclif/plugin-help

tm scripts add PATH

添加脚本到用户配置目录

USAGE
  $ tm scripts add PATH

ARGUMENTS
  PATH  脚本文件路径

DESCRIPTION
  添加脚本到用户配置目录

EXAMPLES
  $ tm scripts add ./script.ps1

See code: src/commands/scripts/add.ts

tm scripts list

列出用户配置目录下的所有脚本

USAGE
  $ tm scripts list

DESCRIPTION
  列出用户配置目录下的所有脚本

EXAMPLES
  $ tm scripts list

See code: src/commands/scripts/list.ts

tm scripts open

打开脚本文件目录

USAGE
  $ tm scripts open

DESCRIPTION
  打开脚本文件目录

EXAMPLES
  $ tm scripts open

See code: src/commands/scripts/open.ts

tm task create [NAME]

创建定时任务到数据库

USAGE
  $ tm task create [NAME] [-i | --path <value> | --arguments <value> | --description <value> | --trigger
    daily|weekly|monthly|once|boot|logon | --start-time <value> | --interval <value> | --weekdays <value> | --months
    <value> | --monthdays <value> | --weeks-of-month <value>] [--enabled]

ARGUMENTS
  [NAME]  任务名称

FLAGS
  -i, --interactive             交互式创建任务
      --arguments=<value>       执行参数
      --description=<value>     任务描述
      --[no-]enabled            是否启用任务
      --interval=<value>        间隔 (daily: 每隔几天, weekly: 每隔几周)
      --monthdays=<value>       每月的哪几天 (逗号分隔, 1-31, 例如: 1,15,30)
      --months=<value>          月份 (逗号分隔, 1-12, 例如: 1,6,12)
      --path=<value>            可执行文件路径
      --start-time=<value>      开始时间 (HH:mm 或 YYYY-MM-DD HH:mm)
      --trigger=<option>        触发类型
                                <options: daily|weekly|monthly|once|boot|logon>
      --weekdays=<value>        星期几 (逗号分隔, 0=周日, 1=周一...6=周六, 例如: 1,3,5)
      --weeks-of-month=<value>  每月的第几周 (逗号分隔, 1-5, 例如: 1,3)

DESCRIPTION
  创建定时任务到数据库

EXAMPLES
  交互式创建任务

    $ tm task create --interactive

  创建每天执行的任务

    $ tm task create myTask --path="notepad.exe" --trigger=daily --start-time="11:30"

  创建每隔3天执行的任务

    $ tm task create myTask --path="notepad.exe" --trigger=daily --start-time="11:30" --interval=3

  创建每周一、三、五执行的任务

    $ tm task create myTask --path="notepad.exe" --trigger=weekly --start-time="11:30" --weekdays="1,3,5"

  创建每隔2周的周一执行的任务

    $ tm task create myTask --path="notepad.exe" --trigger=weekly --start-time="11:30" --weekdays="1" --interval=2

  创建每月1号和15号执行的任务

    $ tm task create myTask --path="notepad.exe" --trigger=monthly --start-time="11:30" \
      --months="1,2,3,4,5,6,7,8,9,10,11,12" --monthdays="1,15"

  创建每年1月、6月、12月的第一周周一执行的任务

    $ tm task create myTask --path="notepad.exe" --trigger=monthly --start-time="11:30" --months="1,6,12" \
      --weeks-of-month="1" --weekdays="1"

See code: src/commands/task/create.ts

tm task delete [NAME]

删除数据库中的定时任务及其关联配置

USAGE
  $ tm task delete [NAME] [-i] [--id <value>] [--all] [-f]

ARGUMENTS
  [NAME]  要删除的任务名称

FLAGS
  -f, --force        强制删除,不进行确认
  -i, --interactive  交互式选择要删除的任务
      --all          删除所有任务
      --id=<value>   通过ID删除任务

DESCRIPTION
  删除数据库中的定时任务及其关联配置

EXAMPLES
  交互式删除任务

    $ tm task delete --interactive

  直接删除指定任务

    $ tm task delete myTask

  通过ID删除任务

    $ tm task delete --id=1

  删除所有任务

    $ tm task delete --all --force

  强制删除(不确认)

    $ tm task delete myTask --force

See code: src/commands/task/delete.ts

tm task list

列出数据库中的所有定时任务

USAGE
  $ tm task list [-b] [-n <value>] [--enabled | --disabled] [-t daily|weekly|monthly|once|boot|logon]

FLAGS
  -b, --block          以块状格式显示详细信息
  -n, --name=<value>   按任务名称过滤(支持部分匹配)
  -t, --type=<option>  按触发类型过滤
                       <options: daily|weekly|monthly|once|boot|logon>
      --disabled       仅显示禁用的任务
      --enabled        仅显示启用的任务

DESCRIPTION
  列出数据库中的所有定时任务

EXAMPLES
  列出所有任务

    $ tm task list

  以块状格式显示

    $ tm task list --block

  过滤特定任务

    $ tm task list --name="myTask"

  过滤启用的任务

    $ tm task list --enabled

See code: src/commands/task/list.ts

tm task sync2schd

将数据库中的任务同步到 Windows Task Scheduler

USAGE
  $ tm task sync2schd [-n <value>]

FLAGS
  -n, --name=<value>  指定要同步的任务名称

DESCRIPTION
  将数据库中的任务同步到 Windows Task Scheduler

EXAMPLES
  同步所有任务

    $ tm task sync2schd

  同步指定任务

    $ tm task sync2schd --name="myTask"

See code: src/commands/task/sync2schd.ts

tm ui

启动 Web UI 服务

USAGE
  $ tm ui [-p <value>]

FLAGS
  -p, --port=<value>  [default: 3000] 指定服务端口

DESCRIPTION
  启动 Web UI 服务

EXAMPLES
  $ tm ui

  $ tm ui --port 8080

See code: src/commands/ui/index.ts

tm version

USAGE
  $ tm version [--json] [--verbose]

FLAGS
  --verbose  Show additional information about the CLI.

GLOBAL FLAGS
  --json  Format output as json.

FLAG DESCRIPTIONS
  --verbose  Show additional information about the CLI.

    Additionally shows the architecture, node version, operating system, and versions of plugins that the CLI is using.

See code: @oclif/plugin-version

tm wtsk add TASKNAME

手动创建定时任务

USAGE
  $ tm wtsk add TASKNAME [-i |  |  | [-p <value> |  | [--arguments <value> --path <value>]]] [--description
    <value>] [--start-time <value>] [--interval <value> --trigger boot|daily|logon|monthly|once|weekly] [--weekdays
    <value> ] [--monthdays <value> [--months <value> ]] [--weeks-of-month <value> ] [--start-when-available]

ARGUMENTS
  TASKNAME  任务名称

FLAGS
  -i, --psi                     交互式方式选择现有 PowerShell 脚本创建任务
  -p, --ps-script=<value>       指定PowerShell 脚本路径,自动使用 powershell.exe 执行
      --arguments=<value>       执行参数
      --description=<value>     任务描述
      --interval=<value>        [default: 1] 触发间隔 (N天/N周)
      --monthdays=<value>       每月的几号 (1-31,用逗号分隔,仅 monthly 生效)
      --months=<value>          月份 (1-12,用逗号分隔,仅 monthly 生效)
      --path=<value>            可执行文件路径
      --start-time=<value>      [default: 2026-05-11 11:30] 任务开始时间 (YYYY-MM-DD HH:mm 或 HH:mm)
      --start-when-available    错过启动时间后是否补运行
      --trigger=<option>        [default: daily] 触发类型: daily, weekly, monthly, once, boot, logon
                                <options: boot|daily|logon|monthly|once|weekly>
      --weekdays=<value>        星期几 (0-6,0为周日,用逗号分隔,仅 weekly/monthly 生效)
      --weeks-of-month=<value>  第几周 (1-4, 5表示最后一周,用逗号分隔,仅 monthly 配合 weekdays 生效)

DESCRIPTION
  手动创建定时任务

EXAMPLES
  交互式选择现有 PowerShell 脚本创建任务

    $ tm wtsk add testTask --psi

  创建每天运行的定时任务,每隔1天触发一次

    $ tm wtsk add testTask --path="notepad.exe" --trigger=daily --interval=1 --start-time="11:30"

  创建每周一、周三、周五运行的定时任务

    $ tm wtsk add testTask --path="notepad.exe" --trigger=weekly --weekdays="1,3,5" --start-time="14:30"

  创建每月1号、15号运行的定时任务

    $ tm wtsk add testTask --path="notepad.exe" --trigger=monthly --months="1,2,3,4,5,6,7,8,9,10,11,12" \
      --monthdays="1,15" --start-time="20:00"

  创建按照月、周、星期几的组合来运行的定时任务(例如:每季度最后一周的周五)

    $ tm wtsk add testTask --path="notepad.exe" --trigger=monthly --months="3,6,9,12" --weeks-of-month="5" \
      --weekdays="5" --start-time="23:59"

See code: src/commands/wtsk/add.ts

tm wtsk del

手动删除定时任务

USAGE
  $ tm wtsk del [-i | -n <value>]

FLAGS
  -i, --interactive       交互式选择任务
  -n, --taskName=<value>  任务名称

DESCRIPTION
  手动删除定时任务

EXAMPLES
  $ tm wtsk del -n myTask

See code: src/commands/wtsk/del.ts

tm wtsk list

手动列出所有定时任务

USAGE
  $ tm wtsk list [-b] [-l <value>]

FLAGS
  -b, --[no-]block     使用块状格式显示任务详情
  -l, --limit=<value>  限制输出的任务数量

DESCRIPTION
  手动列出所有定时任务

EXAMPLES
  $ tm wtsk list

  $ tm wtsk list --block

  $ tm wtsk list --limit 10

  $ tm wtsk list -l 5 --block

See code: src/commands/wtsk/list.ts