Skip to content

Releases: adamtan945/slack-cli

v2026.4.11

11 Apr 11:44

Choose a tag to compare

Version scheme switched from SemVer to CalVer (YYYY.M.D) starting from this release.

Added

  • history -u / --url: Accept a Slack thread URL and auto-extract channel / thread_ts.
  • history -a / --attachments: Download file attachments referenced by messages (works with -c, -u, -t).
  • history -o / --output <dir>: Custom output directory (requires -a). Defaults to /tmp/slack-files/{channelId}_{threadTsOrHistory}/.
  • Downloaded filename format: {YYYYMMDD-HHMMSS}_{username}_{originalFilename} with _1/_2 collision suffix.
  • Attachment paths rendered inline with 📎 in table / simple / json formats.
  • package.json now exposes repository, homepage, and bugs so the npm page links back to GitHub.

Changed

  • Version scheme switched from SemVer (0.22.x) to CalVer (YYYY.M.D). 2026.4.11 > 0.22.1, so npm install -g @kaa5945/slack-cli still picks this as latest.

Fixed

  • history / search timestamps now display in local time instead of UTC.
  • README badges use absolute GitHub URLs so links work on the npm package page.

版號格式自此版起由 SemVer 改為 CalVer(YYYY.M.D)。

新增

  • history -u / --url:接受 Slack thread URL,自動解析 channel / thread_ts。
  • history -a / --attachments:下載 history 抓到的訊息所附的檔案附件(支援 -c-u-t)。
  • history -o / --output <dir>:自訂下載目錄(需搭配 -a),預設 /tmp/slack-files/{channelId}_{threadTsOrHistory}/
  • 下載檔名格式:{YYYYMMDD-HHMMSS}_{username}_{原檔名},同名衝突以 _1_2 遞增。
  • 附件路徑在 table / simple / json 三種格式都以 📎 渲染。
  • package.json 新增 repositoryhomepagebugs 欄位,npm 頁面可正確連回 GitHub。

變更

  • 版號格式由 SemVer(0.22.x)改為 CalVer(YYYY.M.D)。2026.4.11 > 0.22.1,npm install -g @kaa5945/slack-cli 仍會取到此版本。

修正

  • history / search 時間顯示改為本地時區,不再顯示 UTC+0。
  • README 徽章連結改用 GitHub 絕對網址,npm 頁面點擊正常。