{"id":13448500,"url":"https://github.com/pandastrike/yaml-cli","last_synced_at":"2025-04-26T19:32:01.337Z","repository":{"id":55096849,"uuid":"52700797","full_name":"pandastrike/yaml-cli","owner":"pandastrike","description":"A simple CLI for querying and updating YAML files","archived":false,"fork":false,"pushed_at":"2021-01-11T05:17:23.000Z","size":34,"stargazers_count":87,"open_issues_count":24,"forks_count":5,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-04-04T17:22:02.988Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"isc","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pandastrike.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"github":"dyoder","patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":null}},"created_at":"2016-02-28T02:33:17.000Z","updated_at":"2025-03-21T03:29:07.000Z","dependencies_parsed_at":"2022-08-14T11:50:36.614Z","dependency_job_id":null,"html_url":"https://github.com/pandastrike/yaml-cli","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pandastrike%2Fyaml-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pandastrike%2Fyaml-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pandastrike%2Fyaml-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pandastrike%2Fyaml-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pandastrike","download_url":"https://codeload.github.com/pandastrike/yaml-cli/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251041479,"owners_count":21527203,"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":[],"created_at":"2024-07-31T05:01:47.333Z","updated_at":"2025-04-26T19:32:00.850Z","avatar_url":"https://github.com/pandastrike.png","language":"Shell","funding_links":["https://github.com/sponsors/dyoder"],"categories":["Shell","Data Manipulation"],"sub_categories":["Processors"],"readme":"# yaml-cli\n\n\u003e **Important** This project has been deprecated. We recommend [yq](https://github.com/mikefarah/yq).\n\nA simple CLI for working with YAML files.\n\n## Installation\n\n```bash\n$ npm install -g yaml-cli\n```\n\n## Shell Completion\n\nYou can set up shell completion like this:\n\n```bash\n$ eval $(yaml env -)\n```\n\n## Examples\n\nGiven the following `test.yml` file:\n\n```yaml\nfoo:\n  bar: 7\n  baz:\n    - 17\n    - \"hello world\"\n```\n\n### get\n\nYou can get properties:\n\n```bash\n$ yaml get test.yaml foo.bar\n7\n```\n\nor array accessors:\n\n```bash\n$ yaml get test.yaml foo.baz.1\nhello world\n```\n\n### set\n\nYou can set values, too.\n\n```bash\n$ yaml set test.yaml foo.baz.1 goodbye\nfoo:\n  bar: 7\n  baz:\n    - 17\n    - \"goodbye\"\n```\n\n### template\n\nYou can instantiate template files, too. Given the following template:\n\n```\nI would like to say {{foo.baz.1}}\n```\n\nyou can instantiate it like this:\n\n```bash\n$ yaml t test.yaml test.template\nI would like to say hello world\n```\n\n### json\n\nYou can read and write JSON.\n\nTo convert from JSON to YAML:\n\n```tty\n$ yaml json read test.json\nfoo:\n  bar: 7\n  baz:\n    - 17\n    - \"hello world\"\n```\n\nTo convert from YAML to JSON:\n\n```tty\n$ yaml json write test.yaml\n{\n  \"foo\": {\n    \"bar\": 7,\n    \"baz\": [\n      17,\n      \"hello world\"\n    ]\n  }\n}\n```\n\nYou can get more help by just typing `yaml`.\n\n```bash\n$ yaml\nUsage: yaml \u003ccommand\u003e [\u003cargs\u003e]\n\nSome useful yaml commands are:\n   commands  List all yaml commands\n   get       Get a value from a YAML file\n   set       Set a value in a YAML file\n   template  Instantiate a template file with a YAML file.\n\nSee 'yaml help \u003ccommand\u003e' for information on a specific command.\n```\n\n## Limitations\n\nSee the [issues list](https://github.com/pandastrike/yaml-cli/issues)—and please open your own or `+1` your favorites.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpandastrike%2Fyaml-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpandastrike%2Fyaml-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpandastrike%2Fyaml-cli/lists"}