Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Doist/twist-cli

Repository files navigation

Twist CLI

A command-line interface for Twist.

Installation

Note: This package is not yet published to npm. Once published, install with:

npm install -g @doist/twist-cli

Local Setup (for now)

git clone https://github.com/Doist/twist-cli.git
cd twist-cli
npm install
npm run build
npm link

This makes the tw command available globally.

Setup

Set up your Twist API token:

tw auth login

Usage

tw workspaces # list all workspaces
tw inbox # inbox threads
tw inbox --unread # unread threads only
tw thread view <thread-ref> # view thread with comments
tw thread view <ref> --comment 123 # view a specific comment
tw thread reply <thread-ref> # reply to a thread
tw msg list # list conversations
tw msg view <conversation-ref> # view conversation messages
tw search "keyword" # search across workspace
tw react thread <ref> πŸ‘ # add reaction

References accept IDs (123 or id:123), Twist URLs, or fuzzy names (for workspaces/users).

Run tw --help or tw <command> --help for more options.

Machine-readable output

All list/view commands support --json and --ndjson flags for scripting:

tw inbox --json # JSON array
tw inbox --ndjson # newline-delimited JSON
tw inbox --json --full # include all fields

Development

npm install
npm run build # compile
npm run dev # watch mode
npm run type-check # type check
npm run format # format code
npm test # run tests

About

Command-line interface for Twist

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 11

AltStyle γ«γ‚ˆγ£γ¦ε€‰ζ›γ•γ‚ŒγŸγƒšγƒΌγ‚Έ (->γ‚ͺγƒͺγ‚ΈγƒŠγƒ«) /