{"id":18774367,"url":"https://github.com/thinca/ciw","last_synced_at":"2025-04-13T09:21:37.113Z","repository":{"id":66480544,"uuid":"363378511","full_name":"thinca/ciw","owner":"thinca","description":"A wrapper to install cli binary from language associated package manager.","archived":false,"fork":false,"pushed_at":"2024-06-09T01:15:29.000Z","size":14,"stargazers_count":9,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-27T00:54:57.045Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"zlib","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/thinca.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":".github/CONTRIBUTING.md","funding":null,"license":"LICENSE.txt","code_of_conduct":".github/CODE_OF_CONDUCT.md","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}},"created_at":"2021-05-01T10:07:00.000Z","updated_at":"2024-06-09T01:15:32.000Z","dependencies_parsed_at":null,"dependency_job_id":"8d89d3d4-7361-41a7-9429-e72ada5690f5","html_url":"https://github.com/thinca/ciw","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thinca%2Fciw","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thinca%2Fciw/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thinca%2Fciw/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thinca%2Fciw/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thinca","download_url":"https://codeload.github.com/thinca/ciw/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248689377,"owners_count":21145923,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":"2024-11-07T19:38:07.107Z","updated_at":"2025-04-13T09:21:37.093Z","avatar_url":"https://github.com/thinca.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ciw - CLI Install Wrapper\n\n![](https://img.shields.io/badge/version-v0.0.1-blue)\n\nA wrapper to install cli binary from language associated package manager.\n\n\n## Requirements\n\n- `jq`\n- `curl`\n\nFollowing commands are required for each plugins.\n\n- `go`\n- `npm`\n- `cargo`\n\n\n## Install\n\nPut `bin/ciw` to your `$PATH`.  This is just a Bash script.\n\n```shell\n$ curl https://raw.githubusercontent.com/thinca/ciw/master/bin/ciw -o path/to/bin/ciw\n$ chmod a+x path/to/bin/ciw\n```\n\n\n## Usage\n\n### Install app\n\n```shell\n$ ciw install cargo:ripgrep\n```\n\nArguments of `ciw install` takes a form like `${type}:${package}` or `${type}:${package}@${version}`.\n\n```shell\n$ ciw install go:github.com/mattn/jvgrep/v5@v5.8.9\n```\n\n\n### List installed apps\n\n```shell\n$ ciw list\ncargo:ripgrep\n```\n\n\n### Update apps\n\n`ciw update` without arguments to update all installed apps.\n\n```shell\n$ ciw update\n```\n\nOr, `ciw update` with arguments to update specified apps.\n\n```shell\n$ ciw update cargo:ripgrep\n```\n\n`ciw` checks if a newer version exists, and does nothing if there is no newer version.\n\nNote that only apps without `@${version}` can be updated.\n\n\n### Uninstall app\n\n```shell\n$ ciw uninstall cargo:ripgrep\n```\n\n\n## Restore\n\nYou can restore all apps from `ciw list`.\n\n```\n# Save your apps list to \"ciw.list\" file\n$ ciw list \u003e ciw.list\n\n# Restore your apps from saved list\n$ ciw install $(\u003c ciw.list)\n```\n\n\n## Group\n\nBy default, all apps are installed to `main` group.\n\nYou can change group by `-g` or `--group` option or `$CIW_GROUP` environment variable.\n\n```shell\n$ ciw -g local install cargo:ripgrep\n```\n\nInstalled app is placed at each group, but CLIs are linked at `$CIW_INSTALL_PATH` as same.\n\n`ciw list` lists only the specified group.\n\n\n## Environment Variables\n\n### `$CIW_INSTALL_PATH`\n\nInstalled apps are linked from this directory.\nYou should add this directory to `$PATH`.\n\nDefault: `${HOME}/.local/bin`\n\n\n### `$CIW_GROUP`\n\nGroup name.\n\nDefault: `main`\n\n\n### `$CIW_DATA_PATH`\n\nBase directory to place data of `ciw`.\n\nDefault:\n\n- `${XDG_DATA_HOME}/ciw` (if `${XDG_DATA_HOME}` is present.)\n- `${HOME}/.local/share/ciw`\n\n\n### `$CIW_PACKAGES_PATH`\n\nBase directory to install apps.\n\nDefault: `${CIW_DATA_PATH}/pkg/${CIW_GROUP}`\n\n### `$CIW_CACHE_PATH`\n\nSome plugin makes cache data under this directory.\n\nDefault:\n\n- `${XDG_CACHE_HOME}/ciw` (if `${XDG_CACHE_HOME}` is present.)\n- `${HOME}/.cache/ciw`\n\n\n## License\n\n[Zlib License](LICENSE.txt)\n\n\n## Author\n\nthinca \u003cthinca@gmail.com\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthinca%2Fciw","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthinca%2Fciw","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthinca%2Fciw/lists"}