{"id":30127669,"url":"https://github.com/moeki0/cs","last_synced_at":"2025-08-10T17:09:06.432Z","repository":{"id":257811636,"uuid":"868074243","full_name":"moeki0/cs","owner":"moeki0","description":"An unofficial CLI tool for seamless interaction with the Cosense API","archived":false,"fork":false,"pushed_at":"2024-10-05T21:52:53.000Z","size":187,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-31T13:37:09.340Z","etag":null,"topics":["cosense","scrapbox"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/moeki0.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","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}},"created_at":"2024-10-05T12:10:59.000Z","updated_at":"2024-10-05T20:25:45.000Z","dependencies_parsed_at":null,"dependency_job_id":"8d737a6e-3207-4f54-b5ca-b4b3999c7473","html_url":"https://github.com/moeki0/cs","commit_stats":null,"previous_names":["kawakamimoeki/makesense","kawakamimoeki/cs","kawakamidev/cs","moekiorg/cs"],"tags_count":18,"template":false,"template_full_name":null,"purl":"pkg:github/moeki0/cs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moeki0%2Fcs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moeki0%2Fcs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moeki0%2Fcs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moeki0%2Fcs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/moeki0","download_url":"https://codeload.github.com/moeki0/cs/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moeki0%2Fcs/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269756394,"owners_count":24470566,"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","status":"online","status_checked_at":"2025-08-10T02:00:08.965Z","response_time":71,"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":["cosense","scrapbox"],"created_at":"2025-08-10T17:09:01.922Z","updated_at":"2025-08-10T17:09:06.409Z","avatar_url":"https://github.com/moeki0.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003eCS\u003c/h1\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003cstrong\u003eAn unofficial CLI tool for seamless interaction with the Cosense API\u003c/strong\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"#installation\"\u003eInstallation\u003c/a\u003e •\n  \u003ca href=\"#quick-start\"\u003eQuick Start\u003c/a\u003e •\n  \u003ca href=\"#detailed-usage\"\u003eDetailed Usage\u003c/a\u003e •\n  \u003ca href=\"#contributing\"\u003eContributing\u003c/a\u003e •\n  \u003ca href=\"#license\"\u003eLicense\u003c/a\u003e\n\u003c/p\u003e\n\n## Installation\n\n### Linux\n\n```bash\ncurl -L https://github.com/kawakamimoeki/cs/releases/download/v0.1.16/cs-linux-amd64 -o cs\nchmod +x cs\nsudo mv cs /usr/local/bin/\n```\n\n\n### macOS\n\n```bash\ncurl -L https://github.com/kawakamimoeki/cs/releases/download/v0.1.16/cs-macos-amd64 -o cs\nchmod +x cs\nsudo mv cs /usr/local/bin/\n```\n\n### Windows\n\n```powershell\nInvoke-WebRequest https://github.com/kawakamimoeki/cs/releases/download/v0.1.16/cs-windows-amd64.exe -OutFile cs.exe\nMove-Item .\\cs.exe C:\\Windows\\System32\\\n```\n\n## Quick Start\n\n1. Login to your Cosense account:\n   ```\n   cs login your-connect-sid\n   ```\n\n2. Set a project:\n   ```\n   cs project your-project\n   ```\n\n3. Find pages:\n   ```\n   cs find \"your search query\" --link\n   ```\n\n## Detailed Usage\n\n### Global Options\n\nAll commands support the following global options:\n- `--help`: Show help information for the command\n\n### Login\n\nAuthenticate with Cosense using your `connect.sid` cookie:\n\n```\ncs login \u003cyour-connect-sid\u003e\n```\n\n### Project\n\nSet a project:\n\n```\ncs switch \u003cproject\u003e\n```\n\nOptions:\n- `--url` or `-u`: Display the API URL instead of fetching the page\n- `--web` or `-w`: Open the project in a web browser\n\n### List\n\nList page titles for a project:\n\n```\ncs ls [options]\n```\n\nOptions:\n- `--skip \u003cvalue\u003e` or `-s \u003cvalue\u003e`: Skip a number of pages\n- `--limit \u003cvalue\u003e` or `-l \u003cvalue\u003e`: Limit the number of pages returned\n- `--url` or `-u`: Display the API URL instead of fetching data\n- `--link`: Include page links in the output\n- `--json` or `-j`: Display the API URL instead of fetching the page\n\nExample:\n```\ncs ls --limit 20 --link\n```\n\n### Page\n\nView or open a page:\n\n```\ncs view \u003cpage\u003e [options]\n```\n\nOptions:\n- `--body` or `b`: Add body to page\n- `--web` or `-w`: Open the page in a web browser\n- `--url` or `-u`: Display the API URL instead of fetching the page\n- `--json` or `-j`: Display the API URL instead of fetching the page\n\nExamples:\n```\ncs view my-page\ncs view my-page --web\n```\n\n### Get resource\n\nGet resource from a page:\n\n```\ncs get \u003cname\u003e [options]\n```\n\nOptions:\n- `--url` or `-u`: Display the API URL instead of fetching the resource\n- `--resource` or `-t`: Specify the type of resource to retrieve\n  - `code`: Retrieve code snippets\n  - `table`: Retrieve tables\n  - `icon`: Retrieve icons\n\nExample:\n```\ncs get my-page/my-code-snippet --resource code\ncs get my-page/my-table-name --resource table\ncs get my-page --resource icon\n```\n\n### Find\n\nFind pages:\n\n```\ncs find \u003cquery\u003e [options]\n```\n\nOptions:\n- `--url` or `-u`: Display the API URL instead of performing the search\n- `--link` or `-l`: Include links to the search results\n- `--web` or `-w`: Open the search results in a web browser\n- `--json` or `-j`: Display the API URL instead of performing the search\n\nExample:\n```\ncs search \"important topic\" --link\n```\n\n## License\n\nDistributed under the MIT License. See [LICENSE](LICENSE.txt) for more information.\n\n## Support\n\nIf you encounter any issues or have questions, please [open an issue](https://github.com/kawakamimoeki/cs/issues/new) on our GitHub repository.\n\n---\n\n\u003cp align=\"center\"\u003e\n  Made with ❤️ by \u003ca href=\"https://github.com/kawakamimoeki\"\u003ekawakamimoeki\u003c/a\u003e\n\u003c/p\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmoeki0%2Fcs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmoeki0%2Fcs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmoeki0%2Fcs/lists"}