SmartTemplate 1.12.0
dotnet tool install --global SmartTemplate --version 1.12.0
This package contains a .NET tool you can call from the shell/command line.
dotnet new tool-manifest
dotnet tool install --local SmartTemplate --version 1.12.0
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=SmartTemplate&version=1.12.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
nuke :add-package SmartTemplate --version 1.12.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
SmartTemplate
A lightweight CLI template renderer powered by Scriban. Write templates with variables, loops, and date expressions — feed them YAML or JSON data and get rendered files in seconds.
Install
dotnet tool install -g SmartTemplate
dotnet tool update -g SmartTemplate
Quick start
# template.txt
Hello, {{ name }}!
Today is {{ date.now | date.to_string '%d.%m.%Y' }}.
st render template.txt --var name=World -o hello.txt
# → Hello, World!
# Today is 20.02.2026.
Usage
st render <input> [--data <file>] [-o <output>] [--var key=value]...
[--ext .tmpl] [--no-interactive] [--plugins <dir>] [--stdout] [--clip]
| Option | Description |
|---|---|
<input> |
Template file or directory of *.tmpl files |
--data |
YAML or JSON data file |
-o / --output |
Output file or directory (supports template expressions) |
--var key=value |
Inline variable (repeatable, highest priority) |
--ext |
Template extension for directory scan (default: .tmpl) |
--no-interactive |
Skip prompts — for CI / scripting |
--plugins |
Directory containing plugin assemblies (*.dll) |
--stdout |
Write rendered output to stdout instead of files |
--clip |
Copy rendered output to clipboard (combinable with --stdout) |
Package bundles
Run one of several named template sets from a single packages.yaml:
st run # interactive selection
st run 3d # run package by ID directly
Place packages.yaml inside a .st/ subdirectory at the project root and call st run from any subfolder — SmartTemplate walks up the directory tree to find it automatically.
When output is not set in a package definition, rendered files are written to the directory where st run was invoked.
See docs/packages.md for the full packages.yaml reference.
Plugin commands
st plugin install <package> [--version <v>] [--source <url>] [--prerelease]
st plugin update [<package>]
st plugin list
st plugin uninstall <package>
Documentation
- Templates — syntax, date functions, directory mode, output resolution
- Interactive prompts — types, date formats, examples
- Plugins — NuGet install, update, local plugins, writing your own
- Package bundles — packages.yaml format, st run usage
Requirements
- .NET 10 SDK
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
This package has no dependencies.
| Version | Downloads | Last Updated |
|---|---|---|
| 1.12.0 | 76 | 2/23/2026 |
| 1.11.0 | 61 | 2/22/2026 |
| 1.10.0 | 61 | 2/22/2026 |
| 1.9.0 | 66 | 2/21/2026 |
| 1.8.0 | 66 | 2/21/2026 |
| 1.7.0 | 59 | 2/21/2026 |
| 1.6.0 | 65 | 2/21/2026 |
| 1.5.0 | 62 | 2/21/2026 |
| 1.4.0 | 66 | 2/21/2026 |
| 1.3.0 | 58 | 2/21/2026 |
| 1.1.1 | 62 | 2/21/2026 |
| 1.1.0 | 59 | 2/21/2026 |
| 1.0.4 | 64 | 2/20/2026 |
| 1.0.3 | 62 | 2/20/2026 |
| 1.0.2 | 57 | 2/20/2026 |
| 1.0.1 | 58 | 2/20/2026 |