{"id":26314009,"url":"https://github.com/hurricane1988/cli-tools","last_synced_at":"2026-04-18T00:02:15.167Z","repository":{"id":233118850,"uuid":"783764113","full_name":"hurricane1988/cli-tools","owner":"hurricane1988","description":"cli-tools - Use rust program language to get host information. ⎈ 🖥 ☁️😊🥑","archived":false,"fork":false,"pushed_at":"2024-07-07T14:10:28.000Z","size":64,"stargazers_count":9,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-01T05:44:09.911Z","etag":null,"topics":["cli","linux","markdown","rust"],"latest_commit_sha":null,"homepage":"","language":"Rust","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/hurricane1988.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"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}},"created_at":"2024-04-08T14:22:45.000Z","updated_at":"2024-07-08T02:23:45.000Z","dependencies_parsed_at":"2024-06-17T15:56:55.616Z","dependency_job_id":null,"html_url":"https://github.com/hurricane1988/cli-tools","commit_stats":null,"previous_names":["hurricane1988/cli-tools"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/hurricane1988/cli-tools","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hurricane1988%2Fcli-tools","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hurricane1988%2Fcli-tools/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hurricane1988%2Fcli-tools/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hurricane1988%2Fcli-tools/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hurricane1988","download_url":"https://codeload.github.com/hurricane1988/cli-tools/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hurricane1988%2Fcli-tools/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31950891,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-17T17:29:20.459Z","status":"ssl_error","status_checked_at":"2026-04-17T17:28:47.801Z","response_time":62,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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":["cli","linux","markdown","rust"],"created_at":"2025-03-15T11:17:39.636Z","updated_at":"2026-04-18T00:02:15.151Z","avatar_url":"https://github.com/hurricane1988.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"## A command tool get system information\n- [ ] [Help]\n```shell\nA terminal cli tool to get system information base on selected option\n\nUsage: cli-tools [COMMAND]\n\nCommands:\n  cpu      Print the cpu usage information.\n  user     Print the user information.\n  process  Print the cpu usage information.\n  disk     Print the disk information.\n  host     Print the host information.\n  network  Print the network information.\n  memory   Print the memory information.\n  help     Print this message or the help of the given subcommand(s)\n\nOptions:\n  -h, --help     Print help\n  -V, --version  Print version\n```\n- [ ] [**User information**]\n```shell\n./cli-tools user -u 1\n```\n```shell\n+-------+--------------+-----+-----+-------+\n| INDEX |     USER     | UID | GID | LOGIN |\n+-------+--------------+-----+-----+-------+\n| 0     | root         | 0   | 0   |       |\n+-------+--------------+-----+-----+-------+\n| 1     | _mbsetupuser | 248 | 248 |       |\n+-------+--------------+-----+-----+-------+\n```\n- [ ] [**Process information**]\n```shell\n./cli-tools process -p 1\n```\n```shell\n+------+----------+----------------------------------------------------------+------------+--------------+-----+\n| PID  |  STATUS  |                           NAME                           | DISK-USAGE | MEMORY-USAGE | CMD |\n+------+----------+----------------------------------------------------------+------------+--------------+-----+\n| 1304 | Unknown  | dprivacyd                                                | 0          | 0            |     |\n+------+----------+----------------------------------------------------------+------------+--------------+-----+\n| 4759 | Sleeping | DiskUnmountWatcher                                       | 24576      | 3391488      |     |\n+------+----------+----------------------------------------------------------+------------+--------------+-----+\n| 1095 | Sleeping | fudHelperAgent                                           | 122880     | 5783552      |     |\n+------+----------+----------------------------------------------------------+------------+--------------+-----+\n| 949  | Unknown  | UARPUpdaterServiceAFU                                    | 0          | 0            |     |\n+------+----------+----------------------------------------------------------+------------+--------------+-----+\n| 730  | Runnable | askpermissiond                                           | 19275776   | 19382272     |     |\n+------+----------+----------------------------------------------------------+------------+--------------+-----+\n| 773  | Runnable | networkserviceproxy                                      | 2576384    | 32964608     |     |\n+------+----------+----------------------------------------------------------+------------+--------------+-----+\n```\n- [ ] [**Host information**]\n```shell\n./cli-tools host -h 1\n```\n```shell\n+---------------+-------------+-------------+--------------+---------+\n|   host-name   | system-name |   kernel    | architecture | up-time |\n+---------------+-------------+-------------+--------------+---------+\n| MacBook.local | Darwin      | MacOS 14.5  | arm64        | 18900   |\n+---------------+-------------+-------------+--------------+---------+\n```\n- [ ] [**Disk information**]\n```shell\n./cli-tools disk -d 1\n```\n```shell\n+-------+--------------+------+------------+----------------------+----------------+-----------+\n| Index |     Disk     | Type | FileSystem |       Mounted        | Capability/GiB | Removable |\n+-------+--------------+------+------------+----------------------+----------------+-----------+\n| 0     | Macintosh HD | SSD  | apfs       | /                    | 429.45         | false     |\n+-------+--------------+------+------------+----------------------+----------------+-----------+\n| 1     | Macintosh HD | SSD  | apfs       | /System/Volumes/Data | 429.45         | false     |\n+-------+--------------+------+------------+----------------------+----------------+-----------+\n```\n- [ ] [**Memory information**]\n```shell\n./cli-tools memory -m 1\n```\n```shell\n+------------------+----------------------+-----------------+-----------------+----------------+---------------+---------------+\n| Total-Memory/GiB | Available-Memory/GiB | Used-Memory/GiB | Free-Memory/GiB | Total-Swap/GiB | Used-Swap/GiB | Free-Swap/GiB |\n| 32.00            | 18.48                | 17.12           | 6.43            | 0.00           | 0.00          | 0.00          |\n+------------------+----------------------+-----------------+-----------------+----------------+---------------+---------------+\n```\n- [ ] [**Network information**]\n```shell\n./cli-tools network -n 1\n```\n```shell\n+----------+-------------------+--------------+--------------+------------+------------+------------+-----------+\n| 接口名称 |      MAC地址      | 已接收数据包 | 已发送数据包 | 接收时错误 | 发送时错误 |  总接收量  | 总发送量  |\n+----------+-------------------+--------------+--------------+------------+------------+------------+-----------+\n| utun2    | 00:00:00:00:00:00 | 0            | 0            | 0          | 0          | 0          | 3072      |\n+----------+-------------------+--------------+--------------+------------+------------+------------+-----------+\n| utun5    | 00:00:00:00:00:00 | 0            | 0            | 0          | 0          | 0          | 0         |\n+----------+-------------------+--------------+--------------+------------+------------+------------+-----------+\n| en6      | 02:a1:2f:69:1b:5f | 0            | 0            | 0          | 0          | 0          | 0         |\n+----------+-------------------+--------------+--------------+------------+------------+------------+-----------+\n| gif0     | 00:00:00:00:00:00 | 0            | 0            | 0          | 0          | 0          | 0         |\n+----------+-------------------+--------------+--------------+------------+------------+------------+-----------+\n| en7      | 02:a1:2f:69:1b:60 | 0            | 0            | 0          | 0          | 0          | 0         |\n+----------+-------------------+--------------+--------------+------------+------------+------------+-----------+\n| en1      | 36:24:1e:80:dc:c0 | 0            | 0            | 0          | 0          | 0          | 0         |\n+----------+-------------------+--------------+--------------+------------+------------+------------+-----------+\n| en2      | 36:24:1e:80:dc:c4 | 0            | 0            | 0          | 0          | 0          | 0         |\n+----------+-------------------+--------------+--------------+------------+------------+------------+-----------+\n| en3      | 36:24:1e:80:dc:c8 | 0            | 0            | 0          | 0          | 0          | 0         |\n+----------+-------------------+--------------+--------------+------------+------------+------------+-----------+\n| bridge0  | 00:00:00:00:00:00 | 0            | 0            | 0          | 0          | 0          | 0         |\n+----------+-------------------+--------------+--------------+------------+------------+------------+-----------+\n| stf0     | 00:00:00:00:00:00 | 0            | 0            | 0          | 0          | 0          | 0         |\n+----------+-------------------+--------------+--------------+------------+------------+------------+-----------+\n| en0      | bc:d0:74:02:29:c9 | 0            | 0            | 0          | 0          | 1694902272 | 175192064 |\n+----------+-------------------+--------------+--------------+------------+------------+------------+-----------+\n| utun4    | 00:00:00:00:00:00 | 0            | 0            | 0          | 0          | 0          | 1024      |\n+----------+-------------------+--------------+--------------+------------+------------+------------+-----------+\n| llw0     | 16:0b:4a:a7:a0:18 | 0            | 0            | 0          | 0          | 0          | 0         |\n+----------+-------------------+--------------+--------------+------------+------------+------------+-----------+\n| utun0    | 00:00:00:00:00:00 | 0            | 0            | 0          | 0          | 0          | 0         |\n+----------+-------------------+--------------+--------------+------------+------------+------------+-----------+\n| utun1    | 00:00:00:00:00:00 | 0            | 0            | 0          | 0          | 0          | 3072      |\n+----------+-------------------+--------------+--------------+------------+------------+------------+-----------+\n| utun3    | 00:00:00:00:00:00 | 0            | 0            | 0          | 0          | 0          | 3072      |\n+----------+-------------------+--------------+--------------+------------+------------+------------+-----------+\n| anpi1    | 02:a1:2f:69:1b:7f | 0            | 0            | 0          | 0          | 0          | 0         |\n+----------+-------------------+--------------+--------------+------------+------------+------------+-----------+\n| anpi0    | 02:a1:2f:69:1b:7e | 0            | 0            | 0          | 0          | 0          | 0         |\n+----------+-------------------+--------------+--------------+------------+------------+------------+-----------+\n| lo0      | 00:00:00:00:00:00 | 0            | 0            | 0          | 0          | 298668032  | 298668032 |\n+----------+-------------------+--------------+--------------+------------+------------+------------+-----------+\n| ap1      | be:d0:74:02:29:c9 | 0            | 0            | 0          | 0          | 0          | 149504    |\n+----------+-------------------+--------------+--------------+------------+------------+------------+-----------+\n| anpi2    | 02:a1:2f:69:1b:80 | 0            | 0            | 0          | 0          | 0          | 0         |\n+----------+-------------------+--------------+--------------+------------+------------+------------+-----------+\n| awdl0    | 16:0b:4a:a7:a0:18 | 0            | 0            | 0          | 0          | 154624     | 114688    |\n+----------+-------------------+--------------+--------------+------------+------------+------------+-----------+\n| en5      | 02:a1:2f:69:1b:5e | 0            | 0            | 0          | 0          | 0          | 0         |\n+----------+-------------------+--------------+--------------+------------+------------+------------+-----------+\n```\n- [ ] [**TCP Socket Information**]\n\n```shell\n+-------+------+-------------+---------------+------------+-----------------+-------------+\n| Index | PID  |    State    |  Local-Addr   | Local-Port |   Remote-Addr   | Remote-Port |\n+-------+------+-------------+---------------+------------+-----------------+-------------+\n| 0     | 3899 | Established | 192.168.3.207 | 54095      | 116.132.235.206 | 443         |\n+-------+------+-------------+---------------+------------+-----------------+-------------+\n| 1     | 1997 | Established | 192.168.3.207 | 53695      | 39.107.253.151  | 443         |\n+-------+------+-------------+---------------+------------+-----------------+-------------+\n| 2     | 1997 | Established | 127.0.0.1     | 36510      | 127.0.0.1       | 54068       |\n+-------+------+-------------+---------------+------------+-----------------+-------------+\n| 5     | 1932 | Established | 127.0.0.1     | 53990      | 127.0.0.1       | 63342       |\n+-------+------+-------------+---------------+------------+-----------------+-------------+\n| 6     | 1932 | Established | 127.0.0.1     | 54054      | 127.0.0.1       | 63342       |\n+-------+------+-------------+---------------+------------+-----------------+-------------+\n| 7     | 1932 | Established | 127.0.0.1     | 54056      | 127.0.0.1       | 63342       |\n+-------+------+-------------+---------------+------------+-----------------+-------------+\n| 8     | 1932 | Established | 127.0.0.1     | 54057      | 127.0.0.1       | 63342       |\n+-------+------+-------------+---------------+------------+-----------------+-------------+\n| 9     | 1932 | Established | 127.0.0.1     | 54059      | 127.0.0.1       | 63342       |\n+-------+------+-------------+---------------+------------+-----------------+-------------+\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhurricane1988%2Fcli-tools","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhurricane1988%2Fcli-tools","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhurricane1988%2Fcli-tools/lists"}