{"name":"Dasel: A Universal CLI Tool for Data Selection and Transformation","description":"Dasel is a powerful command-line tool and Go library designed for querying, modifying, and transforming data across various formats like JSON, YAML, TOML, XML, and CSV. It provides a consistent syntax, making it an invaluable asset for developers, DevOps professionals, and anyone involved in data wrangling tasks. Its ability to convert between formats and integrate into scripts further enhances its utility.","github":"https://github.com/TomWright/dasel","url":"https://osrepos.com/repo/tomwright-dasel","source":"osrepos.com","sourceDescription":"This repository profile is provided by osrepos.com, an open source repository discovery platform.","repositoryProfile":"https://osrepos.com/repo/tomwright-dasel","generatedFor":"open source discovery and AI-assisted research","markdown":"https://osrepos.com/repo/tomwright-dasel.md","json":"https://osrepos.com/repo/tomwright-dasel.json","topics":["CLI Tool","Data Processing","Configuration","Go","JSON","YAML","TOML","DevOps"],"keywords":["CLI Tool","Data Processing","Configuration","Go","JSON","YAML","TOML","DevOps"],"stars":null,"summary":"Dasel is a powerful command-line tool and Go library designed for querying, modifying, and transforming data across various formats like JSON, YAML, TOML, XML, and CSV. It provides a consistent syntax, making it an invaluable asset for developers, DevOps professionals, and anyone involved in data wrangling tasks. Its ability to convert between formats and integrate into scripts further enhances its utility.","content":"## Introduction\nDasel, short for Data-Select, is a versatile command-line tool and Go library that simplifies querying, modifying, and transforming structured data. It supports a wide array of formats including JSON, YAML, TOML, XML, and CSV, offering a unified and powerful syntax for interacting with your data. Whether you need to extract specific values, update configurations, or convert data between different formats, Dasel provides an efficient solution.\n\n## Installation\nGetting started with Dasel is straightforward. You can install it using popular package managers or directly from source.\n\n### Homebrew (macOS/Linux)\nsh\nbrew install dasel\n\n\n### Go Install\nsh\ngo install github.com/tomwright/dasel/v3/cmd/dasel@master\n\nFor more installation options, including prebuilt binaries, please refer to the [official documentation](https://daseldocs.tomwright.me/getting-started/installation).\n\n## Examples\nDasel's intuitive syntax makes common data manipulation tasks simple. Here are a few examples:\n\n### Selecting Values\nsh\necho '{\"foo\": {\"bar\": \"baz\"}}' | dasel -i json 'foo.bar'\n# Output: \"baz\"\n\n\n### Modifying Values\nsh\necho '{\"foo\": {\"bar\": \"baz\"}}' | dasel -i json --root 'foo.bar = \"bong\"'\n# Output:\n{\n  \"foo\": {\n    \"bar\": \"bong\"\n  }\n}\n\n\n### Format Conversion\nsh\ncat data.json | dasel -i json -o yaml\n\n\n### Recursive Descent (`..`)\nsh\necho '{\"foo\": {\"bar\": \"baz\"}}' | dasel -i json '..bar'\n# Output:\n[\n    \"baz\"\n]\n\n\n### Search (`search`)\nsh\necho '{\"foo\": {\"bar\": \"baz\"}}' | dasel -i json 'search(bar == \"baz\")'\n# Output:\n[\n    {\n        \"bar\": \"baz\"\n    }\n]\n\n\n## Why Use Dasel?\nDasel stands out due to its comprehensive feature set and ease of use. Its multi-format support means you only need one tool for various data types, simplifying your workflow. The unified query syntax ensures consistency, reducing the learning curve. It's highly script-friendly, making it ideal for automation in shell scripts and CI/CD pipelines. Furthermore, its availability as a Go package allows developers to integrate its powerful capabilities directly into their Go applications.\n\n## Links\nFind more information and contribute to Dasel:\n- [GitHub Repository](https://github.com/TomWright/dasel)\n- [Official Documentation](https://daseldocs.tomwright.me)\n- [License (MIT)](https://github.com/TomWright/dasel/blob/master/LICENSE)","metrics":{"detailViews":3,"githubClicks":6},"dates":{"published":null,"modified":"2025-10-25T23:00:48.000Z"}}