Opti.Cli.Client 1.0.7

dotnet tool install --global Opti.Cli.Client --version 1.0.7
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 Opti.Cli.Client --version 1.0.7
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=Opti.Cli.Client&version=1.0.7
nuke :add-package Opti.Cli.Client --version 1.0.7

Opti CLI

A Command Line Interface tool to scaffold pages and blocks for EPiServer/Optimizely CMS (And more stuff soon!)

How to use it?

You can use the tool easily in an easy-to-remember format:

opti generate page TestPage

You can even use it without typing the whole command:

opti g page TestPage <br> opti ge page TestPage <br> opti gen page TestPage

This command will autocomplete to this:

opti generate page TestPage

You can also skip the type of content to create, or the suffix:

opti g p Test

These commands will autocomplete to this:

opti generate page TestPage

When executed, this command will generate the page class, controller and view! (And a view model if you use a flag. Isn't this great!?)

Generated files:

  • Models/Pages/TestPage.cs
  • Controllers/TestPageController.cs
  • Views/TestPage/Index.cshtml

Or you can use the feature approach (Not supported yet):

opti generate page TestPage --feature

This will generate the files like this:

  • Features/TestPage/TestPage.cs
  • Features/TestPage/TestPageController.cs
  • Features/TestPage/Index.cshtml

Take a look at the commands!

<table> <thead> <tr> <th>Command</th> <th>Content Type</th> <th>Name</th> <th>Flags</th> </tr> </thead> <tbody> <tr> <td rowspan="4">opti generate</td> <td>page</td> <td>TestPage</td> <td rowspan="4"> Take a look at the <a href="#do-we-have-flags-to-customize-the-output">flags</a> section </td> </tr> <tr> <td>block</td> <td>TestBlock</td> </tr> <tr> <td>selection-factory</td> <td>TestSelectionFactory</td> </tr> <tr> <td>initializable-module</td> <td>TestInitialization</td> </tr> </tbody> </table>

Do we have flags to customize the output?

This section will be written soon!

How to install it?

dotnet tool install --global Opti.Cli.Client

How to update it?

dotnet tool update --global Opti.Cli.Client

How to uninstall it?

dotnet tool uninstall --global Opti.Cli.Client

What are we planning to add next?

  • Initializable modules
  • Template coordinators
  • Path personalization
  • Flags to customize the content generation
  • Feature architecture approach to generate the files in the same folder
  • Social API demo
Product Compatible and additional computed target framework versions.
.NET net6.0 is compatible.  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. 
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.7 419 8/31/2022
1.0.6 375 8/31/2022
1.0.5 380 8/11/2022
1.0.4 402 8/10/2022
1.0.3 396 8/8/2022
1.0.2 398 8/8/2022
1.0.1 389 8/8/2022
1.0.0 386 8/8/2022
0.1.0.4 376 8/8/2022