{"id":14982883,"url":"https://github.com/preethamvishy/try","last_synced_at":"2025-10-29T18:31:33.861Z","repository":{"id":57380374,"uuid":"127461043","full_name":"preethamvishy/try","owner":"preethamvishy","description":"A command line tool to try executing a shell command and retry if it fails. Optionally repeat with time intervals even if it succeeds. 🔁 https://www.npmjs.com/package/try-cli","archived":false,"fork":false,"pushed_at":"2020-06-08T06:45:20.000Z","size":7,"stargazers_count":4,"open_issues_count":3,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-02T04:11:12.045Z","etag":null,"topics":["bash","bash-script","cli","command","command-line","command-line-tool","commandline","commandline-interface","node","nodejs","npm","repeat","repeater","repeats","retry","zsh","zshell","zshrc"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/preethamvishy.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-03-30T18:37:01.000Z","updated_at":"2024-02-18T22:47:01.000Z","dependencies_parsed_at":"2022-09-02T20:22:18.028Z","dependency_job_id":null,"html_url":"https://github.com/preethamvishy/try","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/preethamvishy%2Ftry","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/preethamvishy%2Ftry/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/preethamvishy%2Ftry/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/preethamvishy%2Ftry/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/preethamvishy","download_url":"https://codeload.github.com/preethamvishy/try/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238874254,"owners_count":19545145,"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","bash-script","cli","command","command-line","command-line-tool","commandline","commandline-interface","node","nodejs","npm","repeat","repeater","repeats","retry","zsh","zshell","zshrc"],"created_at":"2024-09-24T14:06:21.238Z","updated_at":"2025-10-29T18:31:33.508Z","avatar_url":"https://github.com/preethamvishy.png","language":"JavaScript","readme":"# try 🚀\n\n`try` is a command line utility to try executing a shell command and retry if it fails. Optionally, you can let it repeat even if it succeeds.\n\n![try](https://i.imgur.com/2KEWGvK.png)\n\nYou run a long running command and leave to grab a ☕️, hoping to come back to a completed execution but you come back to find that the process failed due to a connectivity issue which is now fixed 🎩. You are now left to re-run the process and spend several caffeine-powered minutes staring at your terminal. Never again!\n\n## Usage\n\nUse the `try` keyword.\n\n### Flags\n\n```bash\n-a, --attempts \u003cnumber\u003e  =\u003e Maximum number of retry attempts.\n\n-t, --timeout  \u003cseconds\u003e =\u003e Seconds between retries.\n\n-c, --command  \u003ccmd\u003e     =\u003e Command to try\n\n-f, --force-repeat       =\u003e Force repeated execution even if it succeeds'\n\n```\n\n### Examples\n\n`try -c ls -t 5 -a 5 -f`\n\n`try --command ls --timeout 5 --attempts 5 --force-repeat`\n\n`try -c 'ls -la' --timeout 5`\n\n`try -c \"ls -la\" --attempts 5`\n\nNote that multi-word commands or commands with flags must be enclosed in single or double quotes (' ' or \" \").\n\n\n\n##### Made with ❤️.\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpreethamvishy%2Ftry","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpreethamvishy%2Ftry","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpreethamvishy%2Ftry/lists"}