AdaskoTheBeAsT.Typewriter.Cli
4.17.0
dotnet tool install --global AdaskoTheBeAsT.Typewriter.Cli --version 4.17.0
This package contains a .NET tool you can call from the shell/command line.
dotnet new tool-manifest
dotnet tool install --local AdaskoTheBeAsT.Typewriter.Cli --version 4.17.0
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=AdaskoTheBeAsT.Typewriter.Cli&version=4.17.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
nuke :add-package AdaskoTheBeAsT.Typewriter.Cli --version 4.17.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
⌨️ Typewriter CLI
Generate TypeScript from C# projects with Typewriter .tst templates, from your terminal, editor task, or CI pipeline.
✨ Why developers use it
- 🔄 Keep contracts in sync: regenerate TypeScript DTOs, API clients, SignalR contracts, and other template-driven output from real Roslyn metadata.
- 🚦 CI-friendly by design: deterministic exit codes, JSON output, dry runs, and warning-as-failure support.
- 👀 Fast local feedback:
watchmode tracks C#, project, solution, configuration, and.tstchanges. - 🧩 Flexible workspaces: point it at a folder, project, or solution, then generate one project or every project.
🚀 Install
dotnet tool install --global AdaskoTheBeAsT.Typewriter.Cli
Then run:
typewriter --help
The official Typewriter plugins for Visual Studio, VS Code, and JetBrains Rider include this CLI automatically. Install it globally when you want direct terminal, CI, or custom tooling access.
⚡ Quick start
typewriter init --workspace .
typewriter generate --workspace .
typewriter watch --workspace .
🛠️ Commands
| Command | What it does |
|---|---|
typewriter |
Runs generate with the provided options. |
typewriter init |
Creates a default typewriter.json. |
typewriter generate |
Generates TypeScript files from discovered or selected .tst templates. |
typewriter validate |
Loads project metadata and validates templates without writing files. |
typewriter watch |
Watches inputs and regenerates after changes. |
typewriter list-templates |
Lists discovered templates for the workspace. |
🎛️ Switches
| Switch | Commands | Description |
|---|---|---|
--workspace <path> |
all | Solution, project, or folder to operate on. |
--project <path> |
generate, validate, watch, list-templates | C# project to read metadata from. |
--template <path> |
generate, validate, watch, list-templates | Single .tst template file or template directory to use. |
--template-search-path <path> |
generate, validate, watch, list-templates | Restrict template discovery without changing workspace or project context. |
--framework <tfm> |
generate, validate, watch, list-templates | Target framework to use when loading project metadata, for example net10.0. |
--all-projects |
generate, validate, watch, list-templates | Process every project in a multi-project workspace. |
--output text\|json |
generate, validate, watch, list-templates | Choose human-readable text or machine-readable JSON output. |
--dry-run |
generate, validate, watch, list-templates | Render and validate without writing generated files. |
--diff |
generate, validate, watch | Include unified diffs for changed files, including line-ending changes. |
--fail-on-warning |
generate, validate, watch, list-templates | Return a non-zero exit code when warnings are emitted. |
--force |
init | Overwrite an existing typewriter.json. |
💡 Examples
# Generate for a solution
typewriter generate --workspace ./MyApp.sln
# Validate in CI and fail on warnings
typewriter validate --workspace . --output json --fail-on-warning
# Generate from one project and one template
typewriter generate --project ./src/MyApi/MyApi.csproj --template ./templates/contracts.tst
# Watch every project in a workspace
typewriter watch --workspace . --all-projects
✅ Best fit
Use the CLI when you want repeatable TypeScript generation in local scripts, build steps, pull request checks, or any environment where an IDE should not be required.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net11.0 is compatible. |
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 |
|---|---|---|
| 4.17.0 | 0 | 11/23/2026 |
| 4.16.0 | 112 | 11/8/2026 |
| 4.15.0 | 124 | 11/2/2026 |
| 4.14.0 | 115 | 10/31/2026 |
| 4.12.0 | 108 | 10/24/2026 |
| 4.11.0 | 450 | 9/22/2026 |
| 4.10.0 | 165 | 8/27/2026 |
| 4.9.0 | 163 | 7/23/2026 |
| 4.8.0 | 137 | 7/23/2026 |
| 4.7.0 | 170 | 7/8/2026 |
| 4.6.1 | 146 | 7/2/2026 |
| 4.6.0 | 161 | 7/1/2026 |
| 4.5.4 | 165 | 7/1/2026 |
| 4.5.3 | 169 | 6/29/2026 |
| 4.5.2 | 162 | 6/29/2026 |
| 4.5.1 | 155 | 6/25/2026 |
| 4.5.0 | 161 | 6/25/2026 |
| 4.4.0 | 159 | 6/19/2026 |
| 4.3.0 | 157 | 6/19/2026 |
| 4.2.0 | 362 | 6/19/2026 |
Loading failed