{"id":18034630,"url":"https://github.com/austinkregel/forge-cli","last_synced_at":"2026-04-28T18:01:17.234Z","repository":{"id":24316121,"uuid":"101114763","full_name":"austinkregel/forge-cli","owner":"austinkregel","description":"A simple to use node cli framework","archived":false,"fork":false,"pushed_at":"2026-01-24T06:00:22.000Z","size":54,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-01-24T17:10:28.635Z","etag":null,"topics":["cli-framework","forge-cli","hacktober","hacktoberfest","javascript-framework","npm-package"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/austinkregel.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"github":"austinkregel","ko_fi":"kregel","tidelift":"npm/forge-cli","custom":"https://beerpay.io/austinkregel/forge-cli"}},"created_at":"2017-08-22T22:59:41.000Z","updated_at":"2026-01-24T06:00:19.000Z","dependencies_parsed_at":"2022-08-29T22:21:32.075Z","dependency_job_id":null,"html_url":"https://github.com/austinkregel/forge-cli","commit_stats":null,"previous_names":["austinkregel/special-train"],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/austinkregel/forge-cli","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/austinkregel%2Fforge-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/austinkregel%2Fforge-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/austinkregel%2Fforge-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/austinkregel%2Fforge-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/austinkregel","download_url":"https://codeload.github.com/austinkregel/forge-cli/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/austinkregel%2Fforge-cli/sbom","scorecard":{"id":216807,"data":{"date":"2025-08-11","repo":{"name":"github.com/austinkregel/forge-cli","commit":"a119bd6d63bf27d7375cb23b194bc44b864faec7"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.5,"checks":[{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Code-Review","score":0,"reason":"Found 0/26 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":0,"reason":"license file not detected","details":["Warn: project does not have a license file"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Vulnerabilities","score":9,"reason":"1 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-52f5-9888-hmc6"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 4 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-17T01:48:23.395Z","repository_id":24316121,"created_at":"2025-08-17T01:48:23.395Z","updated_at":"2025-08-17T01:48:23.395Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32392304,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-28T14:34:11.604Z","status":"ssl_error","status_checked_at":"2026-04-28T14:32:37.009Z","response_time":56,"last_error":"SSL_read: 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-framework","forge-cli","hacktober","hacktoberfest","javascript-framework","npm-package"],"created_at":"2024-10-30T11:13:01.821Z","updated_at":"2026-04-28T18:01:17.206Z","avatar_url":"https://github.com/austinkregel.png","language":"JavaScript","funding_links":["https://github.com/sponsors/austinkregel","https://ko-fi.com/kregel","https://tidelift.com/funding/github/npm/forge-cli","https://beerpay.io/austinkregel/forge-cli"],"categories":[],"sub_categories":[],"readme":"# What is forge-cli?\nIt's the beginning of a simple cli framework heavily inspired by [Laravel Artisan](https://laravel.com/docs/master/artisan). Specifically the way they handle anonymous cli commands and registering new commands. I'm not saying the code base is based upon it. Just the way you interact with everything.\n\n## So how do I use it?\n```\nyarn add forge-cli\n```\nor\n```\nnode add --save forge-cli\n```\nthen somewhere in you script\n\n```js\nvar Application = require('forge-cli');\n// and register a command like so.\nApplication.register(__dirname, [\n    './relative/path/from/__dirname/to/file'\n])\n// and individual commands like so\nApplication.command('command {argument} --option', function() {\n    // your code here!\n})\n```\n\n\n## docs\n\n#### Registering new commands\nEventually this will be done more simply; however, at this moment I have only added support though.\n\n\nIf we wanted to register the usage of the following command\n`node index.js your:command MyArgument --yourOption=no`\n\nthe code we would need to make it work is below.\n```javascript\nApplication.command('your:command {yourArgument} {--yourOption}', function() {\n    // Your code to execute when the command is called.\n    // this.option('yourOption') will either return the \n    // value it's set equal to (in the example it would be the word \"no\",\n    // true if it exists, or false if it doesn't exist.\n    \n    // this.argument('yourArgument') will return the text that's passed\n    // in it's place (in the example it would be the word \"MyArgument\") or null\n});\n```\n#### Real life example.\n\nIf you have a webhook that you want to post to you might do something like:\n\n```javascript\n'use strict';\nlet Application = require('forge-cli');\n    // I'm using axios to make an http request, you can use anything in this closure,\n    // I just like axios for http requests...\nlet axios = require('axios');\n\n// Register your command\nApplication.command('http:post {url} {--https}', function() {\n    let isSecure = this.option('https'),\n        urlToPostTo = this.argument('url');\n    // Use axios to post to the url\n    axios.post((isSecure? 'https://' : 'http://') + urlToPostTo, {})\n        .then(response =\u003e {\n            console.log(response.status)\n        })\n});\n\nlet args = Object.assign({}, {args: process.argv});\n\n// This \"starts\" the application\nApplication.start(args);\n```\nThen to use this command you can just type (in your console)\n\n`node index.js http:post example.com` or `node index.js http:post example.com --https`\nAnd the url's they'll hit are http://example.com and https://example.com respectively.\n\n### Helpers?\n\nYou have full access to the [inquirer](https://github.com/SBoudrias/Inquirer.js) library via `this.inquirer` in your command's closure.\n\n## Support on Beerpay\nHey dude! Help me out for a couple of :beers:!\n\n[![Beerpay](https://beerpay.io/austinkregel/forge-cli/badge.svg?style=beer-square)](https://beerpay.io/austinkregel/forge-cli)  [![Beerpay](https://beerpay.io/austinkregel/forge-cli/make-wish.svg?style=flat-square)](https://beerpay.io/austinkregel/forge-cli?focus=wish)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faustinkregel%2Fforge-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faustinkregel%2Fforge-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faustinkregel%2Fforge-cli/lists"}