Skip to content

ConvertFrom-Toml

SYNOPSIS

Converts a TOML string to a PowerShell object.

SYNTAX

__AllParameterSets

ConvertFrom-Toml [-InputObject] <string> [<CommonParameters>]

ALIASES

This cmdlet has the following aliases, {{Insert list of aliases}}

DESCRIPTION

Converts a TOML formatted string into a PowerShell hashtable or object.

EXAMPLES

EXAMPLE 1

ConvertFrom-Toml -InputObject '[database] host = "localhost" port = 5432'

Converts a TOML string to a PowerShell object.

PARAMETERS

-InputObject

The TOML string to convert.

Type: System.String
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
  Position: 0
  IsRequired: true
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

OUTPUTS

NOTES

{{ Fill in the related links here }}