Home Explore Blog CI



nushell

commands/docs/from_plist.md
9ccfb26a040ee008ecaf96fd90c363baacb79cdb05dcf59100000003000004b7
---
title: from plist
categories: |
  formats
version: 0.104.0
formats: |
  Convert plist to Nushell values
usage: |
  Convert plist to Nushell values
editLink: false
contributors: false
---
<!-- This file is automatically generated. Please edit the command in https://github.com/nushell/nushell instead. -->

# `from plist` for [formats](/commands/categories/formats.md)

<div class='command-title'>Convert plist to Nushell values</div>

::: warning This command requires a plugin
The `from plist` command resides in the `formats` plugin.
To use this command, you must install and register `nu_plugin_formats`.
See the [Plugins](/book/plugins.html) chapter in the book for more information.
:::


## Signature

```> from plist {flags} ```


## Input/output types:

| input | output |
| ----- | ------ |
| any   | any    |
## Examples

Convert a table into a plist file
```nu
> '<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
        <key>a</key>
        <integer>3</integer>
</dict>
</plist>' | from plist
╭───┬───╮
│ a │ 3 │
╰───┴───╯
```

Chunks
b96132ff (1st chunk of `commands/docs/from_plist.md`)
Title: from plist: Convert plist to Nushell values
Summary
The `from plist` command converts data from the plist format into Nushell values. This command is part of the `formats` plugin, so you need to install and register `nu_plugin_formats` to use it. Plist (Property List) is a common format, especially in macOS environments, for storing serialized objects. This command allows you to easily bring plist data into Nushell for manipulation and processing. The example demonstrates how to convert a plist-formatted string containing a dictionary with a single key-value pair ('a' and 3) into a Nushell table, making the data accessible and usable within your Nushell scripts and workflows. This conversion enables you to leverage Nushell's powerful data manipulation capabilities on plist data.