Xperience.Xman 3.4.0

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

Nuget build

Xperience Manager (xman)

This tool simplifies the process of installing and managing Xperience by Kentico instances by providing step-by-step wizards with default options provided.

<img src="https://raw.githubusercontent.com/kentico-ericd/xperience-manager/master/img/screenshot.png" width="350" />

Installing the tool

Run the following command from a command prompt such as Powershell:

dotnet tool install Xperience.Xman -g

Updating the tool

Run the following command from a command prompt such as Powershell:

dotnet tool update xperience.xman -g

Getting started

This tool can be run from anywhere, as long as the directory contains the configuration file. If there is no configuration file, a new one will be created when you run the tool. When you install a new instance, a new profile is created in the configuration file, allowing you to manage multiple installations without changing directory.

Configuration file

The xman.json file contains information about the tool, your default options, and profiles. This file will be automatically created if it doesn't exist when you run a command like xman p.

{
  "Version": "3.1.0.0",
  "Profiles": [
    {
      "ProjectName": "28dev",
      "WorkingDirectory": "C:\\inetpub\\wwwroot\\28dev"
    }
  ],
  "CurrentProfile": "28dev",
  "DefaultInstallOptions": {
    "Version": null, // Version cannot have a default value
    "Template": "kentico-xperience-sample-mvc",
    "ProjectName": "myproject",
    "InstallRootPath": "C:\\inetpub\\wwwroot",
    "UseCloud": false,
    "DatabaseName": "xperience",
    "ServerName": "my-server",
    "AdminPassword": "mypassword"
  },
  "CDRootPath": "C:\\inetpub\\wwwroot\\ContinuousDeployment"
}

You can edit this file to change the DefaultInstallOptions used when installing new Xperience by Kentico projects, and the location of the Continuous Deployment files.

Usage

The following commands can be executed using the xman tool name:

Managing profiles

Certain commands such as update are executed against the installation indicated by the current profile. The profile command shows you the current profile, and allows you to switch profiles. If you only have one profile, that is automatically selected.

To switch profiles, run the profile command from the directory containing the configuration file:

xman profile

<img src="https://raw.githubusercontent.com/kentico-ericd/xperience-manager/master/img/profiles.png" width="350" />

You can add or delete profiles using the corresponding commands. This can be useful to register Xperience by Kentico installations that weren't installed using the tool.

xman p add
xman p delete

Installing a new project

When installing a new project, a new folder will be created in the InstallRootPath of the configuration file, or in a custom directory that you specify in the installation wizard. After installation, a new profile is created for the instance.

  1. Run the install command from the directory containing the configuration file which will begin the installation wizard:

    xman install
    

Updating a project version

  1. (optional) Select a profile with the profile command

  2. Run the update command from the directory containing the configuration file, which will begin the update wizard:

    xman update
    

Modifying appsettings.json

This tool can assist with changing the CMSConnectionString, supported configuration keys, and the headless API.

  1. (optional) Select a profile with the profile command

  2. Run the settings command from the directory containing the configuration file, which will begin the settings wizard:

    xman settings
    

<img src="https://raw.githubusercontent.com/kentico-ericd/xperience-manager/master/img/settings.png" width="350" />

Re-signing macros

See our documentation for more information about macro signatures and the available options.

  1. (optional) Select a profile with the profile command

  2. Run the macros command from the directory containing the configuration file, which will begin the macro wizard:

    xman macros
    

Building projects

  1. (optional) Select a profile with the profile command

  2. Run the build command from the directory containing the configuration file to build the current profile's instance:

    xman build
    

Generating code for object types

See our documentation for more information about code file generation.

  1. (optional) Select a profile with the profile command

  2. Run the generate command from the directory containing the configuration file which will begin the generation wizard:

    xman generate
    

Running Continuous Integration

You can use the ci command to serialize the database or restore the CI repository to the database. Your project must have been built at least once to run CI commands.

  1. (optional) Select a profile with the profile command

  2. Run the desired command from the directory containing the configuration file to begin the CI process:

    • xman ci store
    • xman ci restore

Running Continuous Deployment

This tool can help you manage a local Continuous Deployment environment. For example, if you are self-hosting your website and you have DEV and PROD Xperience by Kentico instances, the tool simplifies the process of migrating database changes from lower environments to production.

You can customize the location of the CD files by changing the CDRootPath property in the configuration file:

{
    "CDRootPath": "C:\\XperienceCDFiles"
}

Your project's CD configuration file is automatically created when you run the cd command and can be manually edited to fine-tune the CD process. You can also run the config command to edit the configuration file using a wizard. For example, you may want to change the RestoreMode before restoring CD data to the database.

  1. Select a profile with the profile command. This determines which configuration file is modified

  2. Run the config command from the directory containing the configuration file, which will begin the configuration wizard:

    xman cd config
    

When you are finished development and wish to serialize the CD data to the filesystem, use the store command:

  1. Select a profile with the profile command. This determines which project's database is serialized

  2. Run the store command from the directory containing the configuration file:

    xman p # switch to DEV profile
    xman cd store # serialize DEV database
    

To migrate the changes from development to production, run the restore command:

  1. Select a profile with the profile command. This determines which project's database is updated

  2. Run the restore command from the directory containing the configuration file. The tool will display a list of profiles to choose as the source for the restore process (in this example, the DEV profile):

    xman p # switch to PROD profile
    xman cd restore # restore DEV CD files to PROD database
    
Product Compatible and additional computed target framework versions.
.NET net7.0 is compatible.  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 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
3.4.0 179 1/25/2024
3.3.0 132 1/17/2024
3.2.0 169 12/21/2023
3.1.0 151 12/19/2023
3.0.0 131 12/15/2023
2.0.2 144 12/13/2023
2.0.1 128 12/11/2023
2.0.0 168 12/9/2023
1.0.0 180 12/7/2023
0.8.0 144 12/7/2023
0.7.2 118 12/5/2023
0.7.1 142 12/5/2023
0.7.0 154 12/4/2023
0.6.0 166 12/4/2023
0.5.0 173 12/3/2023
0.4.0 171 12/1/2023
0.3.1 158 12/1/2023
0.3.0 157 12/1/2023
0.2.0 157 11/30/2023
0.1.1 128 11/30/2023
0.1.0 146 11/30/2023
0.0.1 101 11/30/2023