Install the complete package with local command reference and every published mode.
install iniinikey or section.key.
application.name selects name inside [application]. A deeper path such as a.b.c is rejected deliberately; JSON, TOML or YAML is a better fit when the configuration needs more nesting.
ini <file> [key|options] · ini dump <file>ini <file>show
ini <file> <key>show one exact path or value
ini dump <file>show normalized source text
-f <text|mask> [-k|-v]find matching keys, paths or values
-w <key> : <value>write a value directly to the file
-w <key> < <file>write a value read from another file
-d <key>delete a value or path
-cvalidate the file
With the current core, a successfully opened file is immediately available as $. If this module is the highest-priority installed handler for the file extension, typing the filename by itself opens it through this command. These are core conveniences;
-f searches paths and values. Add -k for keys only or -v for values only. Queries containing * or ? are treated as masks.
-w writes immediately to the file. Use : for an inline value or < <file> to read a value from another file. -d deletes one dotted path.
-w immediately saves a value, using : for inline input or < to read another file; -d deletes a key or section. Writes support key or section.key, not a.b.c. Rewriting can discard comments and spacing; repeated keys follow PHP
Run the prepared examples directly on the page. Their results are prebuilt and shown in the browser; no terminal command is executed on the server.
Install the current compatible version. Choose Base for the complete feature set or Minimum for the reduced package; use upgrade to update a module that is already installed.
Base and Minimum are two packages of the same current module release, not separate command versions.
Install the complete package with local command reference and every published mode.
install iniInstall the reduced package. Local reference is omitted;
install ini -mInstall exactly this published version.
install ini -v 1.3.6Ask upgrade to check compatibility and replace the installed block only when needed.
upgrade iniRemove the extension block while leaving the core and unrelated modules intact.
install ini -uExamples are copyable command lines, not actions executed by this website. Review paths, permissions and destructive flags before running them on a real project.
cd \sandbox\config | ini app.iniapplication.name lil-sandbox
application.debug true
paths.source ../src
paths.public ../publiccd \sandbox\config | app.iniapplication.name lil-sandbox
application.debug true
paths.source ../src
paths.public ../publicini config/app.ini application.namelil-sandboxini config/app.ini -f "paths.*" -kpaths.source ../src
paths.public ../publicini config/app.ini -f "../public" -vpaths.public ../publicini config/app.ini -f "debug"application.debug trueini config/app.ini -w application.debug : falseapplication.debug falseini config/app.ini -w application.name < config/plain-value.txtapplication.name demo-siteini config/app.ini -d paths.publicapplication.name lil-sandbox
application.debug true
paths.source ../srcini config/app.ini -cValid INIini dump config/app.ini[application]
name = "lil-sandbox"
debug = true
[paths]
source = "../src"
public = "../public"
ini config/app.ini missing.keyPath not foundini config/app.ini -w a.b.c : 1INI paths support section.key onlyini config/invalid.ini -cInvalid INIini config/missing.iniFile not foundini config/app.ini -w application.nameValue required after : or sandbox/config/app.iniThe example uses a file or directory from the protected /sandbox/ documentation workspace.
[application]
name = "lil-sandbox"
debug = true
[paths]
source = "../src"
public = "../public"
Current stable release of