contentstack.model.generator 0.1.3

There is a newer version of this package available.
See the version list below for details.
dotnet tool install --global contentstack.model.generator --version 0.1.3
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 contentstack.model.generator --version 0.1.3
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=contentstack.model.generator&version=0.1.3
nuke :add-package contentstack.model.generator --version 0.1.3

Contentstack

Contentstack model generator

This utility is use to generate models based on ContentTypes in Stack.

Installation

To install Contenstack model generator run following command:

dotnet tool install  -g contentstack.model.generator

How to use

Once you install contentstack.model.generator run --help to view available commands.

Short key Long Key Description
-a --api-key The Stack API key for the Content Delivery API
-d --delivery-token The Delivery token for the Content Delivery API
-h --host The Contentstack Host for the Content Delivery API
-n --namespace The namespace the classes should be created in
-f --force Automatically overwrite files that already exist
-m --modular-block-prefix The Modular block Class Prefix.
-g --group-prefix The Modular block Class Prefix.
-p --path Path to the file or directory to create files in.

Example 1

To create classes in current directory run following command:

contentstack.model.generator -a <stack_api_key> -d <delivery_token>

Example 2

To create classes in specific path run following command:

contentstack.model.generator -a <stack_api_key> -d <delivery_token> -p /User/xxx/Desktop

Example 3

To create classes with namespace run following command:

contentstack.model.generator -a <stack_api_key> -d <delivery_token> -n YourProject.Models

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  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. 
.NET Core netcoreapp3.0 is compatible.  netcoreapp3.1 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
0.4.6 181 2/21/2024
0.4.5 128 2/6/2024
0.4.4 282 4/11/2023
0.4.3 393 12/9/2022
0.4.2 494 3/16/2022
0.4.1 504 7/16/2021
0.4.0 364 4/9/2021
0.3.0 388 3/12/2021
0.2.3 557 8/12/2020
0.2.2 456 6/17/2020
0.2.1 509 5/15/2020
0.2.0 498 5/4/2020
0.1.3 484 2/17/2020
0.1.2 590 1/10/2020
0.1.2-alpha 379 1/10/2020

Contentstack model generator for .Net