{"id":15473918,"url":"https://github.com/ahmadawais/ptcl-cli-bash","last_synced_at":"2025-04-22T14:07:04.760Z","repository":{"id":66347155,"uuid":"69733098","full_name":"ahmadawais/PTCL-CLI-Bash","owner":"ahmadawais","description":"PTCL-CLI: An intuitive PTCL-CLI to control PTCL routers via command line.","archived":false,"fork":false,"pushed_at":"2019-07-23T06:27:58.000Z","size":16,"stargazers_count":10,"open_issues_count":1,"forks_count":5,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-22T14:06:47.864Z","etag":null,"topics":["adsl-info","cli","ptcl-cli","reboot","router"],"latest_commit_sha":null,"homepage":"https://Labs.AhmadAwais.com/PTCL-CLI/","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/ahmadawais.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","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-10-01T10:41:50.000Z","updated_at":"2021-03-04T13:04:34.000Z","dependencies_parsed_at":"2023-02-25T07:30:30.534Z","dependency_job_id":null,"html_url":"https://github.com/ahmadawais/PTCL-CLI-Bash","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/ahmadawais%2FPTCL-CLI-Bash","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ahmadawais%2FPTCL-CLI-Bash/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ahmadawais%2FPTCL-CLI-Bash/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ahmadawais%2FPTCL-CLI-Bash/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ahmadawais","download_url":"https://codeload.github.com/ahmadawais/PTCL-CLI-Bash/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250255710,"owners_count":21400410,"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":["adsl-info","cli","ptcl-cli","reboot","router"],"created_at":"2024-10-02T03:00:52.373Z","updated_at":"2025-04-22T14:07:04.742Z","avatar_url":"https://github.com/ahmadawais.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n\u003ctable width='100%'\u003e\n    \u003ctr\u003e\n        \u003ctd align='left' width='100%' colspan='2'\u003e\n            \u003cstrong\u003ePTCL CLI\u003c/strong\u003e\u003cbr /\u003e\n            An intuitive PTCL-CLI to control PTCL routers via command line.\n        \u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n        \u003ctd\u003e\n            A FOSS (Free \u0026 Open Source Software) project. Maintained by \u003ca href='https://github.com/ahmadawais'\u003e@AhmadAwais\u003c/a\u003e.\n        \u003c/td\u003e\n        \u003ctd align='center'\u003e\n            \u003ca href='https://AhmadAwais.com/'\u003e\n                \u003cimg src='https://i.imgur.com/Asg4d3k.png' width='100' /\u003e\n            \u003c/a\u003e\n        \u003c/td\u003e\n    \u003c/tr\u003e\n\u003c/table\u003e\n\n# PTCL-CLI (`ptcli`)\n`ptcli`  is a bash CLI for PTCL routers. An intuitive PTCL-CLI to control PTCL routers via command line.\n\n![PTCL-CLI](https://i.imgur.com/FHLLPAe.png)\n\nYou can use `ptcli` to perform following actions via command line\n- Reboot the router\n- Check Router's system info\n- Check Router's uptime\n- Check ADSL info\n- Check \u0026 calculate ADSL SNR\n\n\n## ⚡️ Installation\n\nOpen command line terminal (I prefer iTerm2) and run the following command.\n\n```bash\nsudo wget -qO ptcli https://git.io/vPmNx \u0026\u0026 sudo chmod +x ./ptcli \u0026\u0026 sudo install ./ptcli /usr/local/bin/ptcli\n```\n\nThis command will perform the following actions:\n- Use sudo permissions\n- Use wget to download `PTCL-CLI` and rename it to `ptcli`\n- Make the `ptcli` executable\n- Install `ptcli` inside /usr/local/bin/ folder.\n\n## 🙌 Usage \n️ Usage: ptcli `[ -c |--config ]`, `[ -h | help ]`\n️ - `[ -h | help ]` Use help\n - `[ -c | --config ]` Use config data, if so configure the three variables 'host_address', 'username', and 'password\n - `[ -r | --reboot ]` Quick reboot, dependant on '--config' param.\"\n\nHere's a complimentary GIF.\n\n![PTCL-CLI GIF](https://i.imgur.com/TzeAw5B.gif)\n\n## 🤔 Why was PTCL CLI Created?\nI am a command line junkie and it is too much work for me to go sign in and reboot the router or get the line parameters when I need to. So, I built this CLI and now with a bunch of aliases I am able to perform these actions within a single command.\n\n\n## ⚡️ Environment\nI have built this CLI using Mac. It needs to be run on Bash or ZSH based shell. \n\n`Beta software! Use at your own risk.`\n\n## ℹ️ Changelog\n\n###1.1.0 (2017-01-31)\n- UPDATE: Auto reboot routine now works\n- UPDATE: Better documentation\n\n###1.0.0 (2016-10-01)\n- First version\n- NEW: Reboot the router `[ 1 | reboot ]`\n- NEW: Router's system info `[ 2 | sysinfo ]`\n- NEW: Router's uptime `[ 3 | uptime ]`\n- NEW: ADSL info `[ 4 | adsl_info ]`\n- NEW: ADSL SNR check `[ 5 | adsl_snr ]`\n- NEW: Exit `[ 6 | exit | q ]`\n\n## ℹ️ License\nMIT License. Copyrights \u003cAhmad Awais\u003e. This script has no official affiliation with PTCL.\n\n---\n\n### 🙌 [THEDEVCOUPLE PARTNERS](https://TheDevCouple.com/partners)\n\nThis open source project is maintained by the help of awesome businesses listed below. What? [Read more about it →](https://TheDevCouple.com/partners)\n\n\u003ctable width='100%'\u003e\n\t\u003ctr\u003e\n\t\t\u003ctd width='500'\u003e\u003ca target='_blank' href='https://kinsta.com/?kaid=WMDAKYHJLNJX\u0026utm_source=TheDevCouple\u0026utm_medium=Partner'\u003e\u003cimg src='https://on.ahmda.ws/73cedc/c' /\u003e\u003c/a\u003e\u003c/td\u003e\n\t\t\u003ctd width='500'\u003e\u003ca target='_blank' href='https://ahmda.ws/USES_WPE?utm_source=TheDevCouple\u0026utm_medium=Partner'\u003e\u003cimg src='https://on.ahmda.ws/ff40fe/c' /\u003e\u003c/a\u003e\u003c/td\u003e\n\t\u003c/tr\u003e\n\t\u003ctr\u003e\n\t\t\u003ctd width='500'\u003e\u003ca target='_blank' href='https://mythemeshop.com/?utm_source=TheDevCouple\u0026utm_medium=Partner'\u003e\u003cimg src='https://on.ahmda.ws/3166d9/c' /\u003e\u003c/a\u003e\u003c/td\u003e\n\t\t\u003ctd width='500'\u003e\u003ca target='_blank' href='https://ipapi.com/?utm_source=TheDevCouple\u0026utm_medium=Partner'\u003e\u003cimg src='https://d2ddoduugvun08.cloudfront.net/items/1R190r2U0p3N3L0U0b2u/ip-api.png'/\u003e\u003c/a\u003e\u003c/td\u003e\n\t\u003c/tr\u003e\n\u003c/table\u003e\n\n\u003cbr /\u003e\n\u003cbr /\u003e\n\u003cp align=\"center\"\u003e\n\u003cstrong\u003eFor anything else, tweet at \u003ca href=\"https://twitter.com/MrAhmadAwais/\" target=\"_blank\" rel=\"noopener noreferrer\"\u003e@MrAhmadAwais\u003c/a\u003e\u003c/strong\u003e\n\u003c/p\u003e\n\n\u003cdiv align=\"center\"\u003e\n\t\u003cp\u003eI have released a video course to help you become a better developer — \u003ca href=\"https://VSCode.pro/?utm_source=GitHubFOSS\" target=\"_blank\"\u003eBecome a VSCode Power User →\u003c/a\u003e\u003c/p\u003e\n    \u003cbr /\u003e\n  \u003ca href=\"https://VSCode.pro/?utm_source=GitHubFOSS\" target=\"_blank\"\u003e\n  \u003cimg src=\"https://raw.githubusercontent.com/ahmadawais/shades-of-purple-vscode/master/images/vscodeproPlay.jpg\" /\u003e\u003cbr\u003eVSCode\u003c/a\u003e\n\n  _\u003csmall\u003e\u003ca href=\"https://VSCode.pro/?utm_source=GitHubFOSS\" target=\"_blank\"\u003eVSCode Power User Course →\u003c/a\u003e\u003c/small\u003e_\n\u003c/div\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fahmadawais%2Fptcl-cli-bash","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fahmadawais%2Fptcl-cli-bash","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fahmadawais%2Fptcl-cli-bash/lists"}