{"id":13450433,"url":"https://github.com/rgcr/m-cli","last_synced_at":"2025-05-13T17:08:48.530Z","repository":{"id":39703063,"uuid":"62925253","full_name":"rgcr/m-cli","owner":"rgcr","description":" Swiss Army Knife for macOS ","archived":false,"fork":false,"pushed_at":"2024-09-03T18:15:18.000Z","size":315,"stargazers_count":9740,"open_issues_count":28,"forks_count":310,"subscribers_count":101,"default_branch":"master","last_synced_at":"2025-04-24T01:53:16.197Z","etag":null,"topics":["bash","cli","looking-for-maintainer","mac","macos","sh"],"latest_commit_sha":null,"homepage":"","language":"Shell","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/rgcr.png","metadata":{"files":{"readme":"Readme.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","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":"2016-07-09T00:49:25.000Z","updated_at":"2025-04-24T01:36:22.000Z","dependencies_parsed_at":"2024-06-18T18:15:03.936Z","dependency_job_id":"c8381048-8fc7-4970-afc9-9e3236def7c4","html_url":"https://github.com/rgcr/m-cli","commit_stats":{"total_commits":229,"total_committers":65,"mean_commits":3.523076923076923,"dds":0.5851528384279476,"last_synced_commit":"5b7492a4c7ddb304199faa5ab3b60db6b9be9c8c"},"previous_names":[],"tags_count":26,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rgcr%2Fm-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rgcr%2Fm-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rgcr%2Fm-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rgcr%2Fm-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rgcr","download_url":"https://codeload.github.com/rgcr/m-cli/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253990467,"owners_count":21995774,"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":["bash","cli","looking-for-maintainer","mac","macos","sh"],"created_at":"2024-07-31T07:00:34.598Z","updated_at":"2025-05-13T17:08:43.510Z","avatar_url":"https://github.com/rgcr.png","language":"Shell","readme":"#  m-cli\n\n## Project Status\n\n![maintenance-status](https://img.shields.io/badge/maintenance-looking--for--maintainer-orange.svg)\n\n## [:warning: Hello, we are looking for New Maintainers 🚀](looking-for-maintainer.md)\n\n\n\u003cbr\u003e\n\u003cbr\u003e\n\n:boom: **Swiss Army Knife for macOS !**\n\n[Overview](#overview)\u003c/br\u003e\n[Install](#install)\u003c/br\u003e\n[Uninstall](#uninstall)\u003c/br\u003e\n[How To Use](#how-to-use)\u003c/br\u003e\n[All Commands](#all-commands)\u003c/br\u003e\n[Contributing](#contributing)\u003c/br\u003e\n\n# Overview\n\n**m-cli** is a macOS command line tool that lets you interact with utilities and applications entirely in **Terminal**. It differs from other macOS command line tools in the following ways:\n\n* You can easily manage administrative tasks\n* It doesn't install 3rd party tools since it doesn't have dependencies\n* Installation is easy and doesn't require intervention\n* It only uses macOS commands\n\n\n# Install\n\nYou can install **m-cli** using [Homebrew](https://brew.sh/), or you can manually install it.\n\n### Homebrew install\nIf you have Homebrew installed, run:\n\n  `brew install m-cli`\n\n### Manual install\nIf you want to manually install **m-cli**, run:\n\n  `curl -fsSL https://raw.githubusercontent.com/rgcr/m-cli/master/install.sh | sudo sh`\n\n  You can also install it to a different path, shown below:\n\n  `INSTALL_DIR=$HOME/.m-cli sh \u003c(curl -fsSL https://raw.githubusercontent.com/rgcr/m-cli/master/install.sh)`\n\n  _Note: Certain plugins, such as that for the \"gatekeeper\" command, will not work if `m-cli` is installed with standard user privilege. Certain plugins, such as that for the \"trash\" command, will not work until and unless your terminal emulator is granted Full Disk Access (look under \"Security \u0026 Privacy\" in System Preferences)._\n  \n # Uninstall\n \n To uninstall **m-cli** from your system, run:\n \n `m --uninstall`\n\n# How To Use\n\n**m-cli** commands are executed using the following steps:\n\n#### 1. Run `m`to display all of the commands (utilities) available in **m-cli**.\n#### 2. Run `m \u003ccommand\u003e` to display the options available for this command.\n#### 3. Run `m \u003ccommand\u003e \u003coption\u003e` to execute an option for this command.\n\nA diagram of this structure is shown below:\n\n```\nm\n|___itunes\n|     |___status\n|     |___play\n|     |___pause\n|     |\n|     ...\n|\n|___disk \n      |___ls\n      |___list\n      |___fs\n      ...\n```\n\nFor example, running `m itunes` will display the options available for iTunes, as shown below:\n\n```\n    usage: m itunes [ status | play | pause | next | prev | mute | unmute | vol up | vol down | vol #| stop | quit | help ]\n\n    Examples:\n      m itunes status       # Show status\n      m itunes play         # Play track\n      m itunes pause        # Pause track\n      m itunes next         # Play next track\n      m itunes prev         # Play previous track\n      m itunes mute         # Mute iTunes\n      m itunes unmute       # Unmute iTunes\n      m itunes vol up       # Volume Up\n      m itunes vol down     # Volume Down\n      m itunes vol #        # Set volume level\n      m itunes stop         # Stop track\n      m itunes quit         # Quit iTunes\n```\n\nIn this example, running `m itunes play` will play the current selected track in your iTunes music library. \n\n# All Commands\n\n**m-cli** currently supports the following commands:\n\n`help`\u003c/br\u003e\n`airdrop`\u003c/br\u003e\n`appearance`\u003c/br\u003e\n`audio`\u003c/br\u003e\n`battery`\u003c/br\u003e\n`bluetooth`\u003c/br\u003e\n`dir`\u003c/br\u003e\n`disk`\u003c/br\u003e\n`display`\u003c/br\u003e\n`dns`\u003c/br\u003e\n`dock`\u003c/br\u003e\n`fan`\u003c/br\u003e\n`finder`\u003c/br\u003e\n`firewall`\u003c/br\u003e\n`flightmode`\u003c/br\u003e\n`gatekeeper`\u003c/br\u003e\n`group`\u003c/br\u003e\n`hostname`\u003c/br\u003e\n`info`\u003c/br\u003e\n`itunes`\u003c/br\u003e\n`localhost`\u003c/br\u003e\n`lock`\u003c/br\u003e\n`network`\u003c/br\u003e\n`nosleep`\u003c/br\u003e\n`notification`\u003c/br\u003e\n`ntp`\u003c/br\u003e\n`printer`\u003c/br\u003e\n`restart`\u003c/br\u003e\n`safeboot`\u003c/br\u003e\n`screensaver`\u003c/br\u003e\n`service`\u003c/br\u003e\n`shutdown`\u003c/br\u003e\n`sleep`\u003c/br\u003e\n`timezone`\u003c/br\u003e\n`touchbar`\u003c/br\u003e\n`trash`\u003c/br\u003e\n`usb`\u003c/br\u003e\n`update`\u003c/br\u003e\n`user`\u003c/br\u003e\n`volume`\u003c/br\u003e\n`vpn`\u003c/br\u003e\n`wallpaper`\u003c/br\u003e\n`wifi`\u003c/br\u003e\n\n# Contributing\n\n1. Fork it!\n2. Create your feature branch: `git checkout -b my-new-feature`\n3. Commit your changes: `git commit -m 'Add some feature'`\n4. Push to the branch: `git push origin my-new-feature`\n5. Submit a pull request :metal:\n\n# TODO:\n* Add more plugins\n* Improve the help\n* Improve the installation script\n\n## Resources:\n- [Awesome OSX Command Line](https://github.com/herrbischoff/awesome-osx-command-line)\n- [Apple MacOS Command Line Documentation](https://ss64.com/osx/)\n\n\n---\n[MIT License](LICENSE.md) © Rogelio Cedillo\n","funding_links":[],"categories":["Shell","macOS","开发者工具","🍏 macOS Tools","Tools","命令行工具","cli","Developer Tools","Command Line Utilities","Uncategorized"],"sub_categories":["☸️ Kubernetes","sh (macOS)","Command Line Tools","Others","Uncategorized","命令行工具","网络存储"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frgcr%2Fm-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frgcr%2Fm-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frgcr%2Fm-cli/lists"}