{"id":14156356,"url":"https://github.com/accordproject/template-cli","last_synced_at":"2025-07-21T09:32:48.970Z","repository":{"id":143648455,"uuid":"616404923","full_name":"accordproject/template-cli","owner":"accordproject","description":"Command Line Interface for template engine and data format conversion","archived":false,"fork":false,"pushed_at":"2023-07-20T08:28:25.000Z","size":247,"stargazers_count":1,"open_issues_count":2,"forks_count":1,"subscribers_count":6,"default_branch":"main","last_synced_at":"2025-07-01T20:50:12.826Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/accordproject.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}},"created_at":"2023-03-20T10:23:45.000Z","updated_at":"2024-01-12T21:19:25.000Z","dependencies_parsed_at":"2024-04-16T01:26:57.242Z","dependency_job_id":null,"html_url":"https://github.com/accordproject/template-cli","commit_stats":{"total_commits":24,"total_committers":1,"mean_commits":24.0,"dds":0.0,"last_synced_commit":"d7d54bceb33094973d1c1da97cc2558a3d4fdee8"},"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"purl":"pkg:github/accordproject/template-cli","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/accordproject%2Ftemplate-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/accordproject%2Ftemplate-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/accordproject%2Ftemplate-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/accordproject%2Ftemplate-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/accordproject","download_url":"https://codeload.github.com/accordproject/template-cli/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/accordproject%2Ftemplate-cli/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264630374,"owners_count":23640906,"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":[],"created_at":"2024-08-17T08:05:24.259Z","updated_at":"2025-07-21T09:32:48.950Z","avatar_url":"https://github.com/accordproject.png","language":"TypeScript","funding_links":[],"categories":["others"],"sub_categories":[],"readme":"# Accord Project Template Manager\n\nCommand Line Interface for the [Accord Project Template Engine](https://github.com/accordproject/template-engine).\n\n\n## Install\n\n```shell\nnpm i @accordproject/template-cli -g\n```\n\n## Example Commands\n\n### Help\n\n```shell\nten help\n```\n\n### Generate\n\nThe `generate` command creates a document from a template + data.\n\nThe command below generates an HTML file using the `helloworld` template:\n\n```shell\nten generate ~/dev/template-engine/test/templates/full/  ~/dev/template-engine/test/templates/full/data.json html ~/Desktop/test.html\n```\n\n### Compile\n\nThe `compile` command compiles a template to TypeScript code\n\nThe command below compiles the `helloworld` template:\n\n```shell\nten compile ~/dev/template-engine/test/templates/helloworld ~/dev/temp/helloworld\n```\n\nTo run the generated code:\n\n```\ncd ~/dev/temp/helloworld\nnpm i\nnpm start ~/dev/template-engine/test/templates/helloworld/data.json\n```\n\nThe output should be:\n\n```json\n{\n  \"$class\": \"org.accordproject.commonmark@0.5.0.Document\",\n  \"xmlns\": \"org.accordproject.commonmark@0.5.0\",\n  \"nodes\": [\n    {\n      \"$class\": \"org.accordproject.ciceromark@0.6.0.Contract\",\n      \"name\": \"top\",\n      \"nodes\": [\n        {\n          \"$class\": \"org.accordproject.commonmark@0.5.0.Paragraph\",\n          \"nodes\": [\n            {\n              \"$class\": \"org.accordproject.commonmark@0.5.0.Text\",\n              \"text\": \"Hello \",\n              \"nodes\": []\n            },\n            {\n              \"$class\": \"org.accordproject.ciceromark@0.6.0.Variable\",\n              \"name\": \"message\",\n              \"value\": \"\\\"World\\\"\"\n            },\n            {\n              \"$class\": \"org.accordproject.commonmark@0.5.0.Text\",\n              \"text\": \".\",\n              \"nodes\": []\n            }\n          ]\n        }\n      ]\n    }\n  ]\n}\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faccordproject%2Ftemplate-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faccordproject%2Ftemplate-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faccordproject%2Ftemplate-cli/lists"}