Opti.Cli.Client 1.0.5

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

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="3">Generate</td> <td>Page</td> <td>TestPage</td> <td rowspan="3"> 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>SelectionFactory</td> <td>TestSelectionFactory</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 457 8/31/2022
1.0.6 407 8/31/2022
1.0.5 407 8/11/2022
1.0.4 430 8/10/2022
1.0.3 425 8/8/2022
1.0.2 425 8/8/2022
1.0.1 414 8/8/2022
1.0.0 413 8/8/2022
0.1.0.4 406 8/8/2022