{"id":49498196,"url":"https://github.com/andreas-timm/cli-ts","last_synced_at":"2026-05-01T11:01:44.899Z","repository":{"id":354524516,"uuid":"1221984709","full_name":"andreas-timm/cli-ts","owner":"andreas-timm","description":"Helpers for building Bun and TypeScript CLIs on top of cac","archived":false,"fork":false,"pushed_at":"2026-04-28T22:29:02.000Z","size":60,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-04-29T00:24:34.490Z","etag":null,"topics":["bun","cac","cli","completion","typescript","zsh"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/andreas-timm.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":null,"dco":null,"cla":null}},"created_at":"2026-04-26T23:34:39.000Z","updated_at":"2026-04-28T22:29:06.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/andreas-timm/cli-ts","commit_stats":null,"previous_names":["andreas-timm/cli-ts"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/andreas-timm/cli-ts","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andreas-timm%2Fcli-ts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andreas-timm%2Fcli-ts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andreas-timm%2Fcli-ts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andreas-timm%2Fcli-ts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/andreas-timm","download_url":"https://codeload.github.com/andreas-timm/cli-ts/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andreas-timm%2Fcli-ts/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32494275,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-30T13:12:12.517Z","status":"online","status_checked_at":"2026-05-01T02:00:05.856Z","response_time":64,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["bun","cac","cli","completion","typescript","zsh"],"created_at":"2026-05-01T11:01:39.911Z","updated_at":"2026-05-01T11:01:44.892Z","avatar_url":"https://github.com/andreas-timm.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# @andreas-timm/cli\n\nHelpers for building Bun and TypeScript CLIs on top of `cac`.\n\n## Features\n\n- Register commands and aliases with a small typed wrapper around `cac`.\n- Normalize multi-word commands, `help`, `-h`, and `--help` flows.\n- Add declarative options with defaults, required flags, choices, and validation.\n- Generate zsh completion, including option value choices and path inference.\n- Install app CLIs into `~/.local/bin` with a reusable command helper.\n\n## Install\n\n```sh\nnpm install @andreas-timm/cli\n```\n\n## Usage\n\n```ts\nimport { cac } from \"cac\";\nimport {\n    installDefaultCommandHelp,\n    installSubcommandHelp,\n    registerCommands,\n    run,\n} from \"@andreas-timm/cli\";\n\nconst cli = cac(\"example\");\n\nregisterCommands(cli, [\"build\", \"b\"], \"Build the project\", (command) =\u003e {\n    command.option(\"--watch\", \"Watch files\");\n    command.action(async (options) =\u003e {\n        console.log(\"build\", options);\n    });\n});\n\ninstallDefaultCommandHelp(cli);\ninstallSubcommandHelp(cli);\n\nawait run(cli);\n```\n\nFor the full CLI patterns, option rules, completion behavior, and install-command guidance, see [`skills/bun-cli/SKILL.md`](./skills/bun-cli/SKILL.md).\n\n## Agent skill `bun-cli`\n\nThe package ships a Cursor/Agent skill named **bun-cli** so assistants can follow consistent patterns for `cac`, command registration, help, completion, and related CLI work.\n\n- In this repo: [`skills/bun-cli/SKILL.md`](./skills/bun-cli/SKILL.md)\n- After installation: `node_modules/@andreas-timm/cli/skills/bun-cli/` (same `SKILL.md` and assets)\n\nTo expose the installed skill under a project-local skills directory (paths vary with monorepo layout; point the symlink at `node_modules/@andreas-timm/cli/skills/bun-cli`):\n\n```sh\nmkdir -p .agents/skills\nln -s ../../node_modules/@andreas-timm/cli/skills/bun-cli .agents/skills/bun-cli\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandreas-timm%2Fcli-ts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fandreas-timm%2Fcli-ts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandreas-timm%2Fcli-ts/lists"}