{"id":41479592,"url":"https://github.com/doist/twist-cli","last_synced_at":"2026-05-09T12:04:40.474Z","repository":{"id":334078729,"uuid":"1135068615","full_name":"Doist/twist-cli","owner":"Doist","description":"Command-line interface for Twist","archived":false,"fork":false,"pushed_at":"2026-04-02T21:24:38.000Z","size":1114,"stargazers_count":3,"open_issues_count":3,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-04-03T01:15:15.962Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Doist.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":"AGENTS.md","dco":null,"cla":null}},"created_at":"2026-01-15T15:41:43.000Z","updated_at":"2026-04-02T21:24:45.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/Doist/twist-cli","commit_stats":null,"previous_names":["doist/twist-cli"],"tags_count":53,"template":false,"template_full_name":null,"purl":"pkg:github/Doist/twist-cli","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Doist%2Ftwist-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Doist%2Ftwist-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Doist%2Ftwist-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Doist%2Ftwist-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Doist","download_url":"https://codeload.github.com/Doist/twist-cli/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Doist%2Ftwist-cli/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31499193,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-07T03:10:19.677Z","status":"ssl_error","status_checked_at":"2026-04-07T03:10:13.982Z","response_time":105,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-01-23T17:15:14.406Z","updated_at":"2026-05-09T12:04:40.467Z","avatar_url":"https://github.com/Doist.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003cimg src=\"icons/twist-cli.png\" alt=\"Twist CLI\" width=\"150\" height=\"150\" /\u003e\n\u003c/p\u003e\n\n# Twist CLI\n\nA command-line interface for Twist.\n\n## Installation\n\n\u003e ```bash\n\u003e npm install -g @doist/twist-cli\n\u003e ```\n\n### Agent Skills\n\nInstall skills for your coding agent:\n\n```bash\ntw skill install claude-code\ntw skill install codex\ntw skill install cursor\ntw skill install gemini\ntw skill install pi\ntw skill install universal\n```\n\nSkills are installed to `~/\u003cagent-dir\u003e/skills/twist-cli/SKILL.md` (e.g. `~/.claude/` for claude-code, `~/.agents/` for universal, etc.). When updating the CLI, installed skills are updated automatically. The `universal` agent is compatible with Amp, OpenCode, and other agents that read from `~/.agents/`.\n\n```bash\ntw skill list\ntw skill uninstall \u003cagent\u003e\n```\n\n## Uninstallation\n\nFirst, remove any installed agent skills:\n\n```bash\ntw skill uninstall \u003cagent\u003e\n```\n\nThen uninstall the CLI:\n\n```bash\nnpm uninstall -g @doist/twist-cli\n```\n\n## Local Setup\n\n```bash\ngit clone https://github.com/Doist/twist-cli.git\ncd twist-cli\nnpm install\nnpm run build\nnpm link\n```\n\nThis makes the `tw` command available globally.\n\n## Setup\n\n```bash\ntw auth login\n```\n\nThis opens your browser to authenticate with Twist. Once approved, the token is stored in your OS credential manager:\n\n- macOS: Keychain\n- Windows: Credential Manager\n- Linux: Secret Service/libsecret\n\nIf secure storage is unavailable, the CLI warns and falls back to `~/.config/twist-cli/config.json`. Existing plaintext tokens are migrated automatically the next time the CLI reads them successfully from the config file. Non-secret settings such as the current workspace remain in the config file.\n\n### Alternative methods\n\n**Manual token:**\n\n```bash\ntw auth token \"your-token\"\n```\n\n**Environment variable:**\n\n```bash\nexport TWIST_API_TOKEN=\"your-token\"\n```\n\n`TWIST_API_TOKEN` always takes priority over the stored token.\n\n### Auth commands\n\n```bash\ntw auth status   # check if authenticated\ntw auth logout   # remove saved token\n```\n\n## Usage\n\n```bash\ntw inbox                           # inbox threads\ntw inbox --unread                  # unread threads only\ntw mentions                        # content mentioning you\ntw mentions --since 2026-04-01 --all --json\ntw thread view \u003cref\u003e               # view thread with comments\ntw thread view \u003cref\u003e --comment 123 # view a specific comment\ntw thread reply \u003cref\u003e              # reply to a thread\ntw thread rename \u003cref\u003e \"New title\" # rename a thread\ntw thread update \u003cref\u003e \"New body\" # edit a thread's body (first post)\ntw conversation unread             # list unread conversations\ntw conversation view \u003cref\u003e         # view conversation messages\ntw msg view \u003cref\u003e                  # view a conversation message\ntw search \"keyword\"                # search across workspace\ntw search \"keyword\" --all          # fetch all result pages\ntw react thread \u003cref\u003e 👍          # add reaction\ntw away                            # show away status\ntw away set vacation 2026-03-20    # set away until date\ntw away clear                      # clear away status\ntw groups                          # list groups in a workspace\ntw groups view \u003cref\u003e               # show a group with members\ntw groups create \"Frontend\"        # create a group\ntw groups create \"FE\" --users alice@doist.com,bob@doist.com\ntw groups rename \u003cref\u003e \"New name\"  # rename a group\ntw groups delete \u003cref\u003e --yes       # delete a group\ntw groups add-user \u003cref\u003e alice@doist.com bob@doist.com\ntw groups remove-user \u003cref\u003e id:123,id:456\n```\n\nReferences accept IDs (`123` or `id:123`), Twist URLs, or fuzzy names (for workspaces/users).\n\nRun `tw --help` or `tw \u003ccommand\u003e --help` for more options.\n\n## Shell Completions\n\nTab completion is available for bash, zsh, and fish:\n\n```bash\ntw completion install        # prompts for shell\ntw completion install bash   # or: zsh, fish\n```\n\nRestart your shell or source your config file to activate. To remove:\n\n```bash\ntw completion uninstall\n```\n\n## Machine-readable output\n\nAll list/view commands support `--json` and `--ndjson` flags for scripting:\n\n```bash\ntw inbox --json                    # JSON array\ntw inbox --ndjson                  # newline-delimited JSON\ntw inbox --json --full             # include all fields\n```\n\n## Development\n\n```bash\nnpm install\nnpm run build       # compile\nnpm run dev         # watch mode\nnpm run type-check  # type check\nnpm run format      # format code\nnpm test            # run tests\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdoist%2Ftwist-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdoist%2Ftwist-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdoist%2Ftwist-cli/lists"}