RadEndpoints.Cli 1.0.0-alpha.8

This is a prerelease version of RadEndpoints.Cli.
dotnet tool install --global RadEndpoints.Cli --version 1.0.0-alpha.8
This package contains a .NET tool you can call from the shell/command line.
dotnet new tool-manifest # if you are setting up this repo
dotnet tool install --local RadEndpoints.Cli --version 1.0.0-alpha.8
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=RadEndpoints.Cli&version=1.0.0-alpha.8&prerelease
nuke :add-package RadEndpoints.Cli --version 1.0.0-alpha.8

RadEndpoints CLI

The RadEndpoints CLI tool will help scaffold endpoints very rapidly with a single command, guided wizard or in bulk with a JSON definition.

Installing RadEndpoints CLI

Installing from NuGet
  • From the command line run: dotnet tool install -g RadEndpoints.Cli
Installing from Source
  • From the /RadEndpoint.Cli folder run: install.bat
  • Manual Instructions:
    • If installed, unintall it: dotnet tool uninstall -g RadEndpoints.Cli
    • Rebuild the CLI code and package it: dotnet pack
    • Install: dotnet tool install --global --add-source .\nupkg RadEndpoints.Cli
Uninstalling RadEndpoints CLI
  • From the /RadEndpoint.Cli folder run: uninstall.bat
  • Manual Instructions:
    • dotnet tool uninstall -g RadEndpoints.Cli

Generating Endpoints

  • Navigate to the project folder where you want to generate the endpoints
Generate Endpoint with Wizard
  • rad generate endpoint to run the guided endpoint wizard
  • You can save the endpoint definition to a .json file for later use
Generate Endpoints with JSON Definition File
  • rad generate endpoint -i <input file> to run the endpoint generation tool with an endpoint definition json file
  • Use this format in the JSON file:
[
  {
    "BaseNamepace": "Your.Project.Namespace.Endpoints",
    "ResourceName": "Resource",
    "Verb": "Get",
    "EndpointName": "GetResource",
    "Path": "/resources/{id}",
    "Tag": "Resource",
    "Description": "Get Resource by ID",
    "WithMapper": true,
    "ImportPath": null
  },
  ...add more endpoints here
]
Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.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.0.0-alpha.8 43 4/29/2024