workout-cli 用于在命令行中跟踪健身训练,支持多用户配置。每个配置文件独立保存模板、训练记录和配置,动作库则跨配置文件共享。
多用户:workout profile list / create <名称> / delete <名称>;多人时用 --profile 指定,如 workout --profile mike start push-day;单一配置文件可省略。
核心命令:workout start --empty 开启自由训练,workout start push 从模板开始;workout log bench-press 135 8 记录一组(重量、次数),也可 log bench-press 135 8,8,7 记录多组;workout note "训练备注" 或 workout note bench-press "备注" 添加备注;workout swap 替换动作;workout done 结束,workout cancel 放弃。
修改已记录组:workout undo 删除最后一组,workout undo bench-press 删除指定动作最后一组,workout edit bench-press 2 155 8 修改第 2 组,workout delete bench-press 3 删除第 3 组,组号从 1 开始。
动作:workout exercises list,可加 --muscle chest;workout exercises add "名称" --muscles biceps --type isolation --equipment cable,其中 --muscles、--type、--equipment 为必填,器械选项包括 barbell、dumbbell、cable、machine、bodyweight、kettlebell、band、other。
模板:workout templates list / show push / create "Push" --exercises "bench-press:4x8,ohp:3x8"。
历史与纪录:workout last、history bench-press、pr、pr bench-press、volume --week、progression bench-press。
重要规则:动作需先加入动作库再记录;记录必须填写真实重量与次数,备注仅用于补充信息,不能代替数据;重量单位为磅;未知动作记录会失败;swap 会把已记录组移动到新动作;所有命令支持 --json。
未提供收费、平台及安装方式等信息。