{"id":22360524,"url":"https://github.com/darwinz/my-cli","last_synced_at":"2025-07-30T13:31:58.332Z","repository":{"id":101180009,"uuid":"98243565","full_name":"darwinz/my-cli","owner":"darwinz","description":"Bash CLI installed as a binary executable for local development and dev ops environments","archived":false,"fork":false,"pushed_at":"2024-02-02T05:15:36.000Z","size":89,"stargazers_count":5,"open_issues_count":4,"forks_count":1,"subscribers_count":2,"default_branch":"develop","last_synced_at":"2025-07-25T11:11:15.043Z","etag":null,"topics":["apache","aws","bash","cli","devops","docker","hacktoberfest","redis","ruby","shell","zend-server"],"latest_commit_sha":null,"homepage":"","language":"Shell","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/darwinz.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}},"created_at":"2017-07-24T23:32:21.000Z","updated_at":"2023-08-28T06:11:13.000Z","dependencies_parsed_at":null,"dependency_job_id":"cc396cf7-9f94-46e5-9226-697e5f404d49","html_url":"https://github.com/darwinz/my-cli","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/darwinz/my-cli","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/darwinz%2Fmy-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/darwinz%2Fmy-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/darwinz%2Fmy-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/darwinz%2Fmy-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/darwinz","download_url":"https://codeload.github.com/darwinz/my-cli/tar.gz/refs/heads/develop","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/darwinz%2Fmy-cli/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267875497,"owners_count":24158780,"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-07-30T02:00:09.044Z","response_time":70,"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":["apache","aws","bash","cli","devops","docker","hacktoberfest","redis","ruby","shell","zend-server"],"created_at":"2024-12-04T16:17:16.335Z","updated_at":"2025-07-30T13:31:58.058Z","avatar_url":"https://github.com/darwinz.png","language":"Shell","readme":"# mycli\n\n\u003e ##### Command-line utility for software and devops engineers\n\n## Install\n\nInstall by cloning and running \n\n```bash\nmake install\n```\n\n## Usage\n\n```bash\n$ mycli [options|command] [arguments]\n```\n\n### Usage Examples\n\n```bash\n$ mycli\n$ mycli --help\n$ mycli docker\n$ mycli mysql\n$ mycli aws_connect -a app1 -e dev1\n$ mycli acd_backup\n$ mycli docker_images\n$ mycli cpu_hogs\n```\n\n\n### Options / Categories\n\n\u003e `--help (-h)`\n\u003e `--version (-v)`\n\u003e `environment`\n\u003e `aliases`\n\u003e `aws`\n\u003e `file_operations`\n\u003e `acd`\n\u003e `docker`\n\u003e `elasticsearch`\n\u003e `misc`\n\u003e `mongo`\n\u003e `mysql`\n\u003e `node`\n\u003e `notes`\n\u003e `redis`\n\u003e `ruby`\n\u003e `system`\n\u003e `vpn`\n\n### Help / Commands List\n\n#### General\n\n| Command  | Description | Arguments |\n| ------------- | ------------- | ------------- |\n| `get_version`  | Get the current installed mycli version  | |\n| `upgrade`  | Upgrade mycli to the latest version  | |\n\n\n#### Environment\n\n| Command  | Description | Arguments |\n| ------------- | ------------- | ------------- |\n| `install_homebrew`  | Get the current installed ccli version  | |\n\n\n#### AWS\n\n| Command  | Description | Arguments |\n| ------------- | ------------- | ------------- |\n| `aws_get_instance_ips`  | Prints an unparsed list of EC2 instance IP addresses  | Optional argument $1 'production' for prod info |\n| `aws_get_instance_info -p $aws_profile -q $query`  | Prints an unparsed list of EC2 instances with info  | $aws_profile (-p, --profile) = app, $query (-q, --query) = query or keywords |\n| `aws_ssh $ip $keyname`  | Connects to a specified EC2 instance using a specified keyname  | $1 = IP address, $2 = ssh key name (stored locally in ~/.ssh) |\n| `aws_elb_list_instances -a $app -e $env`  | List EC2 instance attached to an ELB.  No argument for interactive  | $app (-a, --app) = app name, $env (-e, --env, --environment) = environment (dev1, etc.) |\n| `aws_connect -a $app -e $env -s $service -k $keyname -n $instance-num -c $command`  | Makes a SSH connection to an EC2 instance (or sends a command through SSH).  No argument for interactive  | $app (-a, --app) = app name\u003cbr\u003e\u003cbr\u003e$env (-e, --env, --environment) = environment (dev1, etc.)\u003cbr\u003e\u003cbr\u003e$service (-s, --service) (**optional**) = service (if multiple services exist for an app)\u003cbr\u003e\u003cbr\u003e$keyname (-k, --keyname) = name of pem keyfile (stored in ~/.ssh)\u003cbr\u003e\u003cbr\u003e$instance-num (-n, --instance-number) (**optional**) = specific instance number from list (1, 2, etc.)\u003cbr\u003e\u003cbr\u003e$command (-c, --command) (**optional**) = command to run through SSH |\n\n\n#### File Operations\n\n| Command  | Description | Arguments |\n| ------------- | ------------- | ------------- |\n| `trash $1`  | Moves a local file to trash rather than rm'ing that file  | $1 = Filepath |\n| `cdf`  | Change directory to frontmost window of MacOS Finder  | |\n| `extract $1`  | Extract most known archives with one command  | $1 = Filepath |\n| `file_create`  | Create a file that contains random contents with a specified size and filepath (Interactive)  | |\n| `encrypt $1`  | Encrypt a file using a DES3 hash | $1 = Filepath |\n| `decrypt $1`  | Decrypt a file that was encrypted using a DES3 hash | $1 = Filepath |\n| `ff $1`  | Find file under the current working dir | $1 = Search query |\n| `ffs $1`  | Find file whose name starts with {$1} under the current working dir | $1 = Search query |\n| `ffe $1`  | Find file whose name ends with {$1} under the current working dir | $1 = Search query |\n\n\n#### Amazon Cloud Drive (ACD)\n\n| Command  | Description | Arguments |\n| ------------- | ------------- | ------------- |\n| `acd_backup [volume/path] [acd_dir]`  | Alias for *git add* | $1 = Local dir path to backup, $2 = Dir path on remote ACD |\n    \n    \n#### Docker\n\n| Command  | Description | Arguments |\n| ------------- | ------------- | ------------- |\n| `docker_host` | Display DOCKER_HOST env var | |\n| `docker_remove_images` | Force remove/destroy all existing local docker images | |\n| `docker_remove_processes` | Force remove/destroy all existing local docker processes | |\n| `docker_images` | Display all existing local docker images | |\n| `docker_processes` | Display all existing local docker processes | |\n| `docker_start_zendserver` | Start up a new local docker instance based on the official zend server docker image | |\n| `docker_eval` | Display docker default environment variables | |\n\n\n#### ElasticSearch\n\n| Command  | Description | Arguments |\n| ------------- | ------------- | ------------- |\n| `install_es` | Install elasticsearch locally | |\n| `es_start` | Start elasticsearch service locally | |\n    \n    \n#### Misc\n\n| Command  | Description | Arguments |\n| ------------- | ------------- | ------------- |\n| `weather [zip code]` | Get the weather for a specified zip code | $1 = zip code |\n| `define [word]` | Define a specified word using collinsdictionary.com | $1 = word to define |\n\n\n#### Mongo\n\n| Command  | Description | Arguments |\n| ------------- | ------------- | ------------- |\n| `mongo_local_start` | Start local mongo | |\n| `mongo_port` | Get the local port mongo is running on | |\n\n\n#### MySQL\n\n\n#### Node\n\n| Command  | Description | Arguments |\n| ------------- | ------------- | ------------- |\n| `node_start [environment]` | Start node server with specified environment config | $1 = node environment |\n    \n    \n#### Notes\n\n| Command  | Description | Arguments |\n| ------------- | ------------- | ------------- |\n| `notes_screen` | Show info on how to use the screen utility on Linux systems | |\n| `notes_remote_form_post_with_file` | Show info on how to post to a form with file using cURL | |\n\n\n#### Redis\n\n\n#### Ruby\n\n\n#### System\n\n| Command  | Description | Arguments |\n| ------------- | ------------- | ------------- |\n| `memHogsTop` | Show processes using the most memory using top | |\n| `memHogsPs` | Show processes using the most memory using ps | |\n| `cpu_hogs` | Show processes using the most CPU using ps | |\n| `topForever` | Show running list of processes using top sorted by CPU usage | |\n| `ttop` | Recommended 'top' invocation to minimize resources | |\n| `findPid [search term]` | Find process by name/search term | $1 = search term |\n| `my_ps [search term]` | Find process used by my user | $1 = search term |\n| `netCons` | Show all open TCP/IP sockets | |\n| `lsock` | Display open sockets | |\n| `lsockU` | Display only open UDP sockets | |\n| `lsockT` | Displays only open TCP sockets | |\n| `ipInfo0` | Gets info on connections for en0 | |\n| `ipInfo1` | Gets info on connections for en1 | |\n| `openPorts` | Gets a list of all listening connections | |\n| `usedPort` | Shows information about any files (process) open on a given port | $1 = port |\n| `showBlocked` | Gets all ipfw rules including blocked IPs | |\n| `hardware` | List system hardware | |\n| `cleanupDS` | Delete .DS_Store files from current working directory recursively | |\n| `finderShowHidden` | Changes flag in Finder to show hidden files | |\n| `finderHideHidden` | Changes flag in Finder to hide hidden files | |\n    \n    \n#### VPN\n\n| Command  | Description | Arguments |\n| ------------- | ------------- | ------------- |\n| `vpn_connect` | Opens Cisco AnyConnect client, enters username and password and connects | |\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdarwinz%2Fmy-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdarwinz%2Fmy-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdarwinz%2Fmy-cli/lists"}