{"id":13903122,"url":"https://github.com/plavjanik/vtl-cli","last_synced_at":"2025-07-18T00:33:19.239Z","repository":{"id":48537340,"uuid":"151984257","full_name":"plavjanik/vtl-cli","owner":"plavjanik","description":"Velocity Template Language (VTL) Command-line Interface","archived":false,"fork":false,"pushed_at":"2024-07-06T00:04:46.000Z","size":98,"stargazers_count":12,"open_issues_count":8,"forks_count":6,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-11-25T11:39:59.016Z","etag":null,"topics":["cli","template","velocity"],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"epl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/plavjanik.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-10-07T20:51:08.000Z","updated_at":"2024-06-19T07:35:28.000Z","dependencies_parsed_at":"2024-11-25T11:32:05.778Z","dependency_job_id":"f4a34b07-a20b-41a8-b067-64df992122c8","html_url":"https://github.com/plavjanik/vtl-cli","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/plavjanik/vtl-cli","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/plavjanik%2Fvtl-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/plavjanik%2Fvtl-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/plavjanik%2Fvtl-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/plavjanik%2Fvtl-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/plavjanik","download_url":"https://codeload.github.com/plavjanik/vtl-cli/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/plavjanik%2Fvtl-cli/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265685524,"owners_count":23811191,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cli","template","velocity"],"created_at":"2024-08-06T22:01:38.192Z","updated_at":"2025-07-18T00:33:18.959Z","avatar_url":"https://github.com/plavjanik.png","language":"Java","funding_links":[],"categories":["cli"],"sub_categories":[],"readme":"# Velocity Template Language (VTL) Command-Line Interface\n\n[![Build Status](https://travis-ci.com/plavjanik/vtl-cli.svg?branch=master)](https://travis-ci.com/plavjanik/vtl-cli)\n[![codecov](https://codecov.io/gh/plavjanik/vtl-cli/branch/master/graph/badge.svg)](https://codecov.io/gh/plavjanik/vtl-cli)\n[![CodeFactor](https://www.codefactor.io/repository/github/plavjanik/vtl-cli/badge)](https://www.codefactor.io/repository/github/plavjanik/vtl-cli)\n\nThis is simple Java command-line application that uses Apache Velocity to 'merge' VTL templates from shell scripts. \n\nFeatures:\n- Apache Velocity 1.7 template engine\n- Output to the console or to a file\n- Context variables can be provided in:\n  - Command line parameters\n  - Environment variables\n  - YAML file\n- Configurable encoding for input and output\n- One small fully executable JAR file (no `java -jar...` on Linux and z/OS)\n- Works everywhere where is Java \n\n## Build\n\n```\n./gradlew build\n```\n\n## Installation\n\n1. Download https://github.com/plavjanik/vtl-cli/releases/download/v0.1.1/vtl.zip:\n\n        curl -LO https://github.com/plavjanik/vtl-cli/releases/download/v0.1.1/vtl.zip\n\n2. Extract it:\n\n        unzip vtl.zip\n\n3. There are several files available:\n    \n    - `vtl-cli.jar` for execution by the `java -jar vtl-cli.jar` command\n    - `vtl` for execution by the `vtl` command on Linux systems with `java` in `PATH` or `JAVA_HOME` set\n    - `zos/vtl` for execution by the `vtl` command on z/OS systems\n\n## Usage\n\n```\njava -jar build/vtl-cli.jar templates/hello.vtl -c name=world\n```\n\nor \n\n```\nvtl templates/hello.vtl -c name=world\n```\n\nIf the `hello.vtl` file contains:\n\n    Hello, ${name}!\n\nThen the standard output of `vtl-cli` is:\n\n    Hello, world!\n\n## Syntax\n\n```\nvtl [-e] [-ie=\u003cinputEncoding\u003e] [-o=\u003coutputFile\u003e] [-oe=\u003coutputEncoding\u003e] [-y=\u003cyamlContextFile\u003e] [-ye=\u003cyamlEncoding\u003e]\n    [-c=variable=value]... FILE\n\nParameters:\n      FILE                 File with a Velocity template to process\n\nOptions:\n      -ie, --input-encoding=\u003cinputEncoding\u003e\n                           UTF8, ISO8859-1, Cp1047, ... - see https://goo.gl/yn2pJZ\n  -c, --context=variable=value\n                           Context variable for Velocity (can be repeated)\n  -y, --yaml-context=\u003cyamlContextFile\u003e\n                           YAML file with context variables\n      -ye, --yaml-encoding=\u003cyamlEncoding\u003e\n                           UTF8, ISO8859-1, Cp1047, ...\n  -e, --env-context        Set the context variables from environment\n  -o, --out=\u003coutputFile\u003e   Output file (default: print to console)\n      -oe, --output-encoding=\u003coutputEncoding\u003e\n                           UTF8, ISO8859-1, Cp1047, ...\n```\n\n## Loading context from YAML file\n\nYou can write context variables into a YAML file - for example:\n\n```yaml\nname: world\n```\n\nand the use it:\n\n```\nvtl --yaml-context templates/hello.yml templates/hello.vtl\n```\n\nIf you have nested YAML properties like:\n\n```yaml\nnested:\n    name: world\n```\n\nyou can references it as `${nested.name}`.\n\n## VTL\n\nThe template language is described in [Velocity User Guide](http://velocity.apache.org/engine/1.7/user-guide.html).\n\n## Releasing\n\nThe new releases are done by Travis CI after new tag is created:\n\n    git tag v0.1.0\n    git push --tags\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fplavjanik%2Fvtl-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fplavjanik%2Fvtl-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fplavjanik%2Fvtl-cli/lists"}