diff --git a/blog/2025-03-18-nushell_0_103_0.md b/blog/2025-03-18-nushell_0_103_0.md index 1c613d2b8c1..fe7854e3bec 100644 --- a/blog/2025-03-18-nushell_0_103_0.md +++ b/blog/2025-03-18-nushell_0_103_0.md @@ -28,9 +28,27 @@ As part of this release, we also publish a set of [optional plugins](https://www # Highlights and themes of this release +| author | title | link | +| ------ | ----- | ---- | | [@Bahex](https://github.com/Bahex) | Custom command attributes | [#14906](https://github.com/nushell/nushell/pull/14906) | | [@cosineblast](https://github.com/cosineblast) | Jobs | [#14883](https://github.com/nushell/nushell/pull/14883) | +## Save to YAML files with either `to yaml` or `to yml` + +As pointed out in [#15240](https://github.com/nushell/nushell/issues/15240), it was previously possible to load data from YAML files using the `from yaml` or `from yml` commands, but only possible to save data using `to yaml`. +Now you can use either `to yaml` or `to yml` indistinctly to save data into YAML files. + +```nu +> [[foo bar]; ["1" "2"]] | to yml +- foo: '1' + bar: '2' +``` + +Thanks to this, the `save` command can also be used with the `.yml` extension: +```nu +> [[foo bar]; ["1" "2"]] | save test.yml +``` +