Convert ENV to INI
Turn ENV files into INI. Top-level objects become [sections] and plain top-level values come first, and an object inside a section becomes its own section named with a dot, such as [server.tls].
Converted in an isolated sandbox on our serversDeleted after 24 hours
Drop ENV files on the dialor turn it to pick what to do
Your ENV settings as an INI file.Plain values come first, then each group gets its own section.
What you get
You get one INI file. Plain top-level values are written first, before any section header. Each top-level object becomes a section in square brackets.
Nested objects
An object inside a section becomes its own section, named with a dot. An object called tls inside server is written as [server.tls].
Lists
A list becomes a repeated key, with one line for each item. An empty list disappears, so no key is written for it. Objects or lists inside a list are written as JSON text.
A top-level list becomes one section per entry, numbered from 0 under items, such as [items.0]. An entry that is not an object goes under the key value.
ENV and INI.What each format is.
The formats
Dotenv
KEY=value lines that hold environment variables for an app.
- Extensions
- .env
- MIME type
- text
/x -env - Kind
- Text and data
INI
Sections of key and value pairs, the settings format of Windows and many tools.
- Extensions
- .ini .cfg
- MIME type
- text
/x -ini - Kind
- Text and data
In your code.The same ENV to INI conversion through the API, for your app or your agent.
$ cv convert report.env report.ini$ cv convert report.env report.iniQuestions.What people ask about ENV to INI.
They come first, above any section header. Sections follow them.
It becomes its own section with a dot in its name, such as [server.tls].
It becomes a repeated key. An empty list is left out of the file.
Those items are written as JSON text. Plain items become repeated keys as usual.