Install the complete package with local command reference and every published mode.
install ymlymlThe parser is deliberately strict: tabs and block-list rows such as - item are not supported. Validate unfamiliar YAML with -c; complex YAML is better edited with
yml <file> [key|options] · yml dump <file>yml <file>show YAML data
yml <file> <key>show one exact path or value
yml 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
Start with database.host to read one value. -f searches paths and values, while -k searches only key paths and -v only values. Ordinary text matches without case sensitivity; * and ? make a whole-field mask. Check syntax with -c and view the reconstructed file with dump.
Use -w <key> : <value> to change one value immediately, or -w <key> < <file> to read it from another file. -d <key> deletes a path. An unquoted true, false or number may be interpreted as a typed value; use care with strings that look like numbers. Make a copy before writing. $ refers to the most recently opened file in Core; a filename alone may invoke its registered handler.
This is a deliberately limited YAML parser: indented maps and JSON-style inline lists work, but - item block lists, tabs, anchors, aliases, tags and multiline blocks do not. Duplicate keys are rejected. Editing rewrites the entire document and discards comments and original spacing; use
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 ymlInstall the reduced package. Local reference is omitted;
install yml -mInstall exactly this published version.
install yml -v 1.1.6Ask upgrade to check compatibility and replace the installed block only when needed.
upgrade ymlRemove the extension block while leaving the core and unrelated modules intact.
install yml -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 | yml app.ymlapplication.name lil-shop
application.debug true
database.host localhost
database.port 3306
database.options.0 utf8mb4
database.options.1 strictyml config/app.ymlapplication.name lil-shop
application.debug true
database.host localhost
database.port 3306
database.options.0 utf8mb4
database.options.1 strictyml config/app.yml database.hostlocalhostyml config/app.yml database.options.1strictyml config/app.yml -f "database.*" -kdatabase.host localhost
database.port 3306
database.options.0 utf8mb4
database.options.1 strictyml config/app.yml -f "strict" -vdatabase.options.1 strictyml config/app.yml -f "debug"application.debug trueyml config/app.yml -w application.debug : falseapplication.debug falseyml config/app.yml -w application.name < config/plain-value.txtapplication.name demo-siteyml config/app.yml -d database.options.0application.name lil-shop
application.debug true
database.host localhost
database.port 3306
database.options.0 strictyml config/app.yml -cValid YAMLyml dump config/app.ymlapplication:
name: lil-shop
debug: true
database:
host: localhost
port: 3306
options: ["utf8mb4","strict"]yml config/app.yml unknown.keyPath not foundyml config/invalid.yml -cYAML block lists are not supported; use inline JSON-style listsyml config/missing.ymlFile not foundyml config/app.yml -w database.portValue required after : or sandbox/config/app.ymlThe example uses a file or directory from the protected /sandbox/ documentation workspace.
application:
name: lil-shop
debug: true
database:
host: localhost
port: 3306
options: ["utf8mb4", "strict"]
Current stable release of