{"id":20551587,"url":"https://github.com/clarketm/jwt-cli","last_synced_at":"2025-04-14T11:30:44.138Z","repository":{"id":41796657,"uuid":"134883075","full_name":"clarketm/jwt-cli","owner":"clarketm","description":"Command line tool for working with JSON Web Tokens (JWT)","archived":false,"fork":false,"pushed_at":"2022-12-22T10:47:14.000Z","size":38780,"stargazers_count":40,"open_issues_count":8,"forks_count":3,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-10-30T04:49:22.395Z","etag":null,"topics":["cli","command-line","jsonwebtoken","jwt","node"],"latest_commit_sha":null,"homepage":"https://blog.travismclarke.com/project/jwt-cli/","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/clarketm.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-05-25T16:55:58.000Z","updated_at":"2024-03-04T12:07:09.000Z","dependencies_parsed_at":"2023-01-30T07:16:24.680Z","dependency_job_id":null,"html_url":"https://github.com/clarketm/jwt-cli","commit_stats":null,"previous_names":["clarketm/jwt-utils"],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/clarketm%2Fjwt-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/clarketm%2Fjwt-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/clarketm%2Fjwt-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/clarketm%2Fjwt-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/clarketm","download_url":"https://codeload.github.com/clarketm/jwt-cli/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248871660,"owners_count":21175267,"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":["cli","command-line","jsonwebtoken","jwt","node"],"created_at":"2024-11-16T02:32:19.896Z","updated_at":"2025-04-14T11:30:44.113Z","avatar_url":"https://github.com/clarketm.png","language":"JavaScript","readme":"# [jwt-cli](https://blog.travismclarke.com/project/jwt-cli/)\n\n[![NPM release](https://img.shields.io/npm/v/@clarketm/jwt-cli.svg)](https://www.npmjs.com/package/@clarketm/jwt-cli)\n[![License](https://img.shields.io/npm/l/@clarketm/jwt-cli.svg)](LICENSE.md)\n\nCommand line tool for working with JSON Web Tokens (JWT).\n\n\u003cbr\u003e\n\u003cbr\u003e\n\u003ca href=\"https://blog.travismclarke.com/project/jwt-utils/\"\u003e\n  \u003cp align=\"center\"\u003e\u003cimg width=\"40%\" src=\"https://github.com/clarketm/jwt-cli/blob/master/hero.png\" /\u003e\u003c/p\u003e\n\u003c/a\u003e\n\n## Installation\n\n### Yarn\n\n```shell\nyarn global add \"@clarketm/jwt-cli\"\n```\n\n### Npm\n\n```shell\nnpm install --global \"@clarketm/jwt-cli\"\n```\n\n## Demo\n\n![usage demo](https://github.com/clarketm/jwt-cli/blob/master/usage.gif)\n\n## Usage\n\n---\n\n### `sign [options] payload secret`\n\n```shell\n$ jwt sign '{\"user\": \"Travis Clarke\"}' \"super secret\"\n```\n\n```shell\ncopied to clipboard:\n\neyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhIjoxLCJpYXQiOjE1MjczMTI3NTIsImV4cCI6MTUyNzMxNjM1Mn0.2l4wyaoxNBBY7nvm6sAqAcmXSuuKjBubNo_h42hcigU\n```\n\n\u003e Note: the `sign` subcommand accepts **all** the same [**options**](https://github.com/auth0/node-jsonwebtoken#jwtsignpayload-secretorprivatekey-options-callback) as [`auth0/node-jsonwebtoken`](https://github.com/auth0/node-jsonwebtoken) with the exception of `mutatePayload` which is not applicable.\n\n| Option             | Description                                         |\n| ------------------ | --------------------------------------------------- |\n| `-n, --noCopy`     | Do not copy the token to the clipboard.             |\n| `-p, --passphrase` | The passphrase for your secret (if it is encrypted) |\n\n---\n\n### `verify [options] token secret`\n\n```shell\n$ jwt verify \"eyJhbGciOiJIUzI1...\" \"super secret\"\n```\n\n```\nvalid!\n```\n\n\u003e Note: the `verify` subcommand accepts **all** the same [**options**](https://github.com/auth0/node-jsonwebtoken#jwtverifytoken-secretorpublickey-options-callback) as [`auth0/node-jsonwebtoken`](https://github.com/auth0/node-jsonwebtoken)\n\n---\n\n### `decode [options] token`\n\n```shell\n$ jwt decode \"eyJhbGciOiJIUzI1...\"\n```\n\n```shell\ncopied to clipboard:\n\n{\n  user: 'Travis Clarke',\n  iat: 1537507542,\n  exp: 1537511142\n}\n```\n\n\u003e Note: the `decode` subcommand accepts **all** the same [**options**](https://github.com/auth0/node-jsonwebtoken#jwtverifytoken-secretorpublickey-options-callback) as [`auth0/node-jsonwebtoken`](https://github.com/auth0/node-jsonwebtoken) with the exception of `json` which is not applicable.\n\n| Option         | Description                               |\n| -------------- | ----------------------------------------- |\n| `-n, --noCopy` | Do not copy the payload to the clipboard. |\n\n---\n\n## Related\n\n- [node-jsonwebtoken](https://github.com/auth0/node-jsonwebtoken) – JsonWebToken implementation for node.js\n\n## License\n\nMIT \u0026copy; [**Travis Clarke**](https://blog.travismclarke.com/)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fclarketm%2Fjwt-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fclarketm%2Fjwt-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fclarketm%2Fjwt-cli/lists"}