{"id":22009700,"url":"https://github.com/zitadel/zitadel-tools","last_synced_at":"2025-12-15T20:33:11.779Z","repository":{"id":37012833,"uuid":"335573852","full_name":"zitadel/zitadel-tools","owner":"zitadel","description":null,"archived":false,"fork":false,"pushed_at":"2025-09-03T08:10:32.000Z","size":318,"stargazers_count":28,"open_issues_count":2,"forks_count":9,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-09-03T10:12:39.968Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","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/zitadel.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,"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":"2021-02-03T09:36:30.000Z","updated_at":"2025-09-03T08:10:34.000Z","dependencies_parsed_at":"2023-07-13T00:42:11.074Z","dependency_job_id":"9c89e02f-130e-4072-b19a-d55ade6d10f4","html_url":"https://github.com/zitadel/zitadel-tools","commit_stats":{"total_commits":56,"total_committers":6,"mean_commits":9.333333333333334,"dds":0.3928571428571429,"last_synced_commit":"bdb3e504bb7ed387935cea5ef74a0a4f96bedaf2"},"previous_names":["caos/zitadel-tools"],"tags_count":13,"template":false,"template_full_name":null,"purl":"pkg:github/zitadel/zitadel-tools","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zitadel%2Fzitadel-tools","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zitadel%2Fzitadel-tools/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zitadel%2Fzitadel-tools/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zitadel%2Fzitadel-tools/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zitadel","download_url":"https://codeload.github.com/zitadel/zitadel-tools/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zitadel%2Fzitadel-tools/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":275465473,"owners_count":25469884,"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-09-16T02:00:10.229Z","response_time":65,"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":[],"created_at":"2024-11-30T02:10:29.459Z","updated_at":"2025-09-16T18:41:41.437Z","avatar_url":"https://github.com/zitadel.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# zitadel-tools\n\n## Installation\n\n```zsh\ngo install github.com/zitadel/zitadel-tools@latest\n```\n\n## key2jwt \n\nConvert a *key file* to *jwt token*\n\n### Usage\n\nkey2jwt requires two flags:\n\n- audience: where the assertion is going to be used (e.g. https://zitadel.cloud or https://{your domain})\n- key: the path to the key.json\n\nThe tool prints the result to standard output.\n\n```zsh\nzitadel-tools key2jwt --audience=https://zitadel.cloud --key=key.json\n```\n\nOptionally you can pass an `output` flag. This will save the jwt in the provided file path:\n\n```zsh\nzitadel-tools key2jwt --audience=https://zitadel.cloud --key=key.json --output=jwt.txt\n```\n\nYou can also create a JWT by providing a RSA private key (.pem file). You then also need to specify the issuer of the token:\n```zsh\nzitadel-tools key2jwt --audience=https://zitadel.cloud --key=key.pem --issuer=client_id\n```\n\n## basicauth\n\nConvert *client ID* and *client secret* to be used in *Authorization* header for [Client Secret Basic](https://docs.zitadel.com/docs/apis/openidoauth/authn-methods#client-secret-basic)\n\n### Usage\n\nbasicauth requires two flags:\n\n- id: client id\n- secret: client secret\n\nThe tool prints the URL- and Base64 encoded result to standard output\n\n```zsh\nzitadel-tools basicauth --id $CLIENT_ID --secret $CLIENT_SECRET\n```\n\n## Migrate data to ZITADEL import\n\nZitadel-tools can be used to transform exported data from other providers\nto the import schema of Zitadel. We currently support [Auth0](cmd/migration/auth0/readme.md) and [Keycloak](cmd/migration/keycloak/readme.md).\n\nTo print available sub-commands and flags:\n\n```zsh\nzitadel-tools migrate --help\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzitadel%2Fzitadel-tools","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzitadel%2Fzitadel-tools","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzitadel%2Fzitadel-tools/lists"}