ToggleMesh.CLI
1.0.8
dotnet tool install --global ToggleMesh.CLI --version 1.0.8
dotnet new tool-manifest
dotnet tool install --local ToggleMesh.CLI --version 1.0.8
#tool dotnet:?package=ToggleMesh.CLI&version=1.0.8
nuke :add-package ToggleMesh.CLI --version 1.0.8
🚀 ToggleMesh CLI Tool
ToggleMesh.CLI is a powerful, lightweight .NET Global Tool designed to synchronize feature flags and configuration schemas directly from your ToggleMesh Control Plane into your local codebase as strongly-typed constants.
📖 Read the full CLI documentation here: docs.togglemesh.dev/docs/cli
Eliminate manual typos and out-of-sync configuration strings by automating code generation.
📦 Installation
To install ToggleMesh.CLI globally on your machine, run the following command in your terminal:
dotnet tool install --global ToggleMesh.CLI
⚙️ Quick Start
1. Configure your environment
Run the interactive configuration wizard to link the CLI to your ToggleMesh environment:
togglemesh config
You will be prompted to enter your Endpoint URL and your secure API Key (tm_server_... or tm_client_...).
2. Synchronize and Generate Constants
Generate type-safe constants for your primary development language.
togglemesh sync --lang typescript --out ./src/flags.ts
🛠️ Supported Output Languages
ToggleMesh CLI can generate native strongly-typed constants for:
- C# (Creates type-safe class properties)
- TypeScript / JavaScript (Creates strict type definitions)
- Go (Generates native typed constants)
- Python (Generates typed string constants)
🔗 Resources
- CLI Documentation: docs.togglemesh.dev/docs/cli
- Main Repository: GitHub - sdwck/ToggleMesh
| 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. |
This package has no dependencies.