{"id":18774768,"url":"https://github.com/kellpossible/json-patch-cli","last_synced_at":"2026-02-10T15:35:29.180Z","repository":{"id":260545491,"uuid":"881626304","full_name":"kellpossible/json-patch-cli","owner":"kellpossible","description":"A CLI command to perform JSON RFC 6902 patching, merging and editing operations","archived":false,"fork":false,"pushed_at":"2025-02-06T05:22:08.000Z","size":42,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-18T20:55:30.651Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","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/kellpossible.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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}},"created_at":"2024-10-31T23:44:50.000Z","updated_at":"2025-02-06T05:22:11.000Z","dependencies_parsed_at":"2025-02-06T06:23:24.770Z","dependency_job_id":"f5f137f0-0652-4b5d-ae51-dd886fd5eb4e","html_url":"https://github.com/kellpossible/json-patch-cli","commit_stats":null,"previous_names":["kellpossible/json-patch-cli"],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/kellpossible/json-patch-cli","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kellpossible%2Fjson-patch-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kellpossible%2Fjson-patch-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kellpossible%2Fjson-patch-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kellpossible%2Fjson-patch-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kellpossible","download_url":"https://codeload.github.com/kellpossible/json-patch-cli/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kellpossible%2Fjson-patch-cli/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273202256,"owners_count":25063272,"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-01T02:00:09.058Z","response_time":120,"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-07T19:39:17.234Z","updated_at":"2026-02-10T15:35:29.134Z","avatar_url":"https://github.com/kellpossible.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# json-patch-cli [![badge](https://img.shields.io/crates/v/json-patch-cli)](https://crates.io/crates/json-patch-cli)\n\nA CLI command to perform JSON RFC 6902 patching, merging and editing operations.\n\nThis project provides a CLI command `json-patch` which uses the brilliant work from the [`json-patch`](https://crates.io/crates/json-patch) crate.\n\n## Installation\n\n```bash\ncargo install --locked json-patch-cli\n```\n\n## Usage\n\n```txt\nUsage: json-patch \u003cCOMMAND\u003e\n\nCommands:\n  diff         Calculate the difference between two json files to create a JSON (RFC 6902) patch\n  apply        Apply a JSON (RFC 6902) patch\n  edit         Edit a JSON (RFC 6902) patch, by editing a patched version of the input using a text editor\n  completions  Generate command line completions script\n  help         Print this message or the help of the given subcommand(s)\n\nOptions:\n  -h, --help  Print help\n```\n\n### `diff` Command\n\n```txt\nCalculate the difference between two json files to create a JSON (RFC 6902) patch\n\nUsage: json-patch diff \u003cFROM\u003e \u003cTO\u003e\n\nArguments:\n  \u003cFROM\u003e\n  \u003cTO\u003e\n\nOptions:\n  -h, --help           Print help\n```\n\n### `apply` Command\n\n```txt\nApply a JSON (RFC 6902) patch\n\nUsage: json-patch apply --patch \u003cPATCH\u003e \u003cINPUT\u003e\n\nArguments:\n  \u003cINPUT\u003e\n\nOptions:\n  -p, --patch \u003cPATCH\u003e\n  -h, --help           Print help\n```\n\n### `edit` Command\n\n```txt\nEdit or create a JSON (RFC 6902) patch, by editing a patched version of the input using a text editor\n\nUsage: json-patch edit [OPTIONS] --patch \u003cPATCH\u003e \u003cINPUT\u003e\n\nArguments:\n  \u003cINPUT\u003e\n\n\nOptions:\n  -w, --watch\n          Enable live editing of the patch file\n\n  -p, --patch \u003cPATCH\u003e\n          Path to JSON patch file.\n\n          If the patch file does not yet exist, this command will create a new one.\n\n  -e, --editor \u003cEDITOR\u003e\n          [default: vim]\n\n  -h, --help\n          Print help (see a summary with '-h')\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkellpossible%2Fjson-patch-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkellpossible%2Fjson-patch-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkellpossible%2Fjson-patch-cli/lists"}