{"id":13428222,"url":"https://github.com/ajalt/clikt","last_synced_at":"2026-10-19T01:39:28.409Z","repository":{"id":38290913,"uuid":"128975548","full_name":"ajalt/clikt","owner":"ajalt","description":"Multiplatform command line interface parsing for Kotlin","archived":false,"fork":false,"pushed_at":"2026-01-16T04:47:36.000Z","size":22892,"stargazers_count":3018,"open_issues_count":40,"forks_count":145,"subscribers_count":11,"default_branch":"master","last_synced_at":"2026-10-18T06:11:35.748Z","etag":null,"topics":["argument-parser","argument-parsing","cli","command-line","command-line-parser","kotlin","kotlin-library","option-parser"],"latest_commit_sha":null,"homepage":"https://ajalt.github.io/clikt/","language":"Kotlin","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ajalt.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.txt","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2018-04-10T18:04:56.000Z","updated_at":"2026-10-16T19:29:16.000Z","dependencies_parsed_at":"2026-01-16T05:11:14.942Z","dependency_job_id":null,"html_url":"https://github.com/ajalt/clikt","commit_stats":null,"previous_names":[],"tags_count":46,"template":false,"template_full_name":null,"purl":"pkg:github/ajalt/clikt","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ajalt%2Fclikt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ajalt%2Fclikt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ajalt%2Fclikt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ajalt%2Fclikt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ajalt","download_url":"https://codeload.github.com/ajalt/clikt/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ajalt%2Fclikt/sbom","scorecard":{"id":174114,"data":{"date":"2025-08-11","repo":{"name":"github.com/ajalt/clikt","commit":"e3133d41e26978ab0b9239082317ebe75f9d7e4c"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":5.1,"checks":[{"name":"Code-Review","score":1,"reason":"Found 5/29 approved changesets -- score normalized to 1","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":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","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":"Maintained","score":9,"reason":"2 commit(s) and 9 issue activity found in the last 90 days -- score normalized to 9","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/build.yml:1","Warn: no topLevel permission defined: .github/workflows/release.yml:1","Info: no jobLevel write permissions found"],"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":"Binary-Artifacts","score":9,"reason":"binaries present in source code","details":["Warn: binary detected: gradle/wrapper/gradle-wrapper.jar:1"],"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":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build.yml:31: update your workflow using https://app.stepsecurity.io/secureworkflow/ajalt/clikt/build.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build.yml:32: update your workflow using https://app.stepsecurity.io/secureworkflow/ajalt/clikt/build.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/build.yml:36: update your workflow using https://app.stepsecurity.io/secureworkflow/ajalt/clikt/build.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build.yml:40: update your workflow using https://app.stepsecurity.io/secureworkflow/ajalt/clikt/build.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build.yml:49: update your workflow using https://app.stepsecurity.io/secureworkflow/ajalt/clikt/build.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build.yml:50: update your workflow using https://app.stepsecurity.io/secureworkflow/ajalt/clikt/build.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/build.yml:55: update your workflow using https://app.stepsecurity.io/secureworkflow/ajalt/clikt/build.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yml:13: update your workflow using https://app.stepsecurity.io/secureworkflow/ajalt/clikt/release.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yml:14: update your workflow using https://app.stepsecurity.io/secureworkflow/ajalt/clikt/release.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/release.yml:18: update your workflow using https://app.stepsecurity.io/secureworkflow/ajalt/clikt/release.yml/master?enable=pin","Info:   0 out of   7 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   3 third-party GitHubAction dependencies pinned"],"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":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"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":"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":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE.txt:0","Info: FSF or OSI recognized license: Apache License 2.0: LICENSE.txt:0"],"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":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"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":"Packaging","score":10,"reason":"packaging workflow detected","details":["Info: Project packages its releases by way of GitHub Actions.: .github/workflows/build.yml:44"],"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":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 21 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-16T17:17:47.623Z","repository_id":38290913,"created_at":"2025-08-16T17:17:47.623Z","updated_at":"2025-08-16T17:17:47.623Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":344872684,"owners_count":38337007,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-10-03T21:59:58.778Z","status":"online","status_checked_at":"2026-10-18T02:00:06.448Z","response_time":63,"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":["argument-parser","argument-parsing","cli","command-line","command-line-parser","kotlin","kotlin-library","option-parser"],"created_at":"2024-07-31T01:00:49.594Z","updated_at":"2026-10-19T01:39:28.403Z","avatar_url":"https://github.com/ajalt.png","language":"Kotlin","funding_links":[],"categories":["Libraries","Kotlin","cli","[Kotlin](https://kotlinlang.org/)","Additional Languages","命令行开发"],"sub_categories":["Command Line Interface","Useful awesome list for Go cli","Kotlin 🎯","语音合成"],"readme":"\u003ch1 align=\"center\"\u003e\n    \u003cimg src=\"docs/img/wordmark.svg\"\u003e\n    \u003cp\u003e\u003cimg src=\"docs/img/animation.png\"\u003e\u003c/p\u003e\n\u003c/h1\u003e\n\nClikt *(pronounced \"clicked\")* is a multiplatform Kotlin library that makes writing command line\ninterfaces simple and intuitive. It's the \"Command Line Interface for Kotlin\".\n\nIt is designed to make the process of writing command line tools effortless\nwhile supporting a wide variety of use cases and allowing advanced\ncustomization when needed.\n\nClikt has:\n\n * arbitrary nesting of commands\n * composable, type safe parameter values\n * generation of help output and shell autocomplete scripts\n * multiplatform packages for JVM, Node.js, and native Linux, Windows and macOS \n\nWhat does it look like? Here's a complete example of a simple Clikt program:\n\n```kotlin\nclass Hello : CliktCommand() {\n    val count: Int by option().int().default(1).help(\"Number of greetings\")\n    val name: String by option().prompt(\"Your name\").help(\"The person to greet\")\n\n    override fun run() {\n        repeat(count) {\n            echo(\"Hello $name!\")\n        }\n    }\n}\n\nfun main(args: Array\u003cString\u003e) = Hello().main(args)\n```\n\nAnd here's what it looks like when run:\n\n\u003cp align=\"center\"\u003e\u003cimg src=\"docs/img/readme_screenshot1.png\"\u003e\u003c/p\u003e\n\nThe help page is generated for you:\n\n\u003cp align=\"center\"\u003e\u003cimg src=\"docs/img/readme_screenshot2.png\"\u003e\u003c/p\u003e\n\nErrors are also taken care of:\n\n\u003cp align=\"center\"\u003e\u003cimg src=\"docs/img/readme_screenshot3.png\"\u003e\u003c/p\u003e\n\n\n## Documentation\n\nThe full documentation can be found on [the website](https://ajalt.github.io/clikt).\n\nThere are also a number of [sample applications](samples). You can run\nthem with the included [`runsample` script](runsample).\n\n## Installation\n\nClikt is distributed through [Maven Central](https://search.maven.org/artifact/com.github.ajalt.clikt/clikt).\n\n```kotlin\ndependencies {\n   implementation(\"com.github.ajalt.clikt:clikt:5.1.0\")\n\n   // optional support for rendering markdown in help messages\n   implementation(\"com.github.ajalt.clikt:clikt-markdown:5.1.0\")\n}\n```\n\nThere is also a smaller core module available. [See the docs for details](https://ajalt.github.io/clikt/advanced/#core-module).\n\n\n###### If you're using Maven instead of Gradle, use `\u003cartifactId\u003eclikt-jvm\u003c/artifactId\u003e`\n\n#### Multiplatform\n\nClikt supports most multiplatform targets.\n[See the docs](https://ajalt.github.io/clikt/advanced/#multiplatform-support) \nfor more information about functionality supported on each target. You'll need to use Gradle 6 or\nnewer.\n\n#### Snapshots\n\n\u003cdetails\u003e\n\u003csummary\u003eSnapshot builds are also available\u003c/summary\u003e\n\n[Sonatype has instructions for consuming snapshots](https://central.sonatype.org/publish/publish-portal-snapshots/#consuming-snapshot-releases-for-your-project)\n\n\u003cp\u003e\nYou'll need to add the Central Portal snapshots repository:\n\n```kotlin\nrepositories {\n    maven {\n        url = uri(\"https://central.sonatype.com/repository/maven-snapshots/\")\n    }\n}\n```\n\u003c/p\u003e\n\u003c/details\u003e\n\n## License\n\n    Copyright 2018 AJ Alt\n\n    Licensed under the Apache License, Version 2.0 (the \"License\");\n    you may not use this file except in compliance with the License.\n    You may obtain a copy of the License at\n\n        http://www.apache.org/licenses/LICENSE-2.0\n\n    Unless required by applicable law or agreed to in writing, software\n    distributed under the License is distributed on an \"AS IS\" BASIS,\n    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n    See the License for the specific language governing permissions and\n    limitations under the License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fajalt%2Fclikt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fajalt%2Fclikt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fajalt%2Fclikt/lists"}