nehemiahj / 2022-Sitecore-Warriors

Sitecore Warriors

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Hackathon Submission Entry form

Team name

Sitecore Warriors

Category

  1. Extend the Sitecore Command Line Interface (CLI) plugin

Description

This Sitecore Job plugin will enable admins to

  • View currently running, queued and finished jobs. Also lists configured Sitecore Database jobs.
  • Execute Sitecore Database jobs on-demand
  • Rebuild the Link database

Video link

https://www.youtube.com/watch?v=FfsEiBhCEmc

Pre-requisites and Dependencies

This module depends on Sitecore CLI.

  • Sitecore Management Services
  • Sitecore CLI

Installation instructions

  1. Bring up a Sitecore instance with Sitecore CLI. Please make sure to install Sitecore Management Services.

  2. Download the Job Management Services package file.

  3. On the Sitecore Launchpad, click Control Panel, Install a package. Then follow the Installation Wizard to install the Job Management Services package package file.

  4. Go to your project folder in a terminal with administrator privileges.

  5. Install the Job plugin: dotnet sitecore plugin add -n SitecoreWarriors.DevEx.Extensibility.Jobs You can check the installed plugins using the dotnet sitecore plugin list command: List of plugins: SitecoreWarriors.DevEx.Extensibility.Jobs v.4.1.1

  6. To verify that the Sitecore CLI Job plugin is installed, go to your project folder in a terminal and type dotnet sitecore job -h, you will get the list of available commands for Job plugin.

Usage instructions

You can use the command as follows:

dotnet sitecore job [subcommand] [options]

Subcommands

You can use the following subcommands:

  1. list - Get all jobs list (running, queued, finished and db task jobs). Db task can be started on-demand.
  2. rebuildlinkdb - Start rebuilding a link db.
  3. start - Start a db task.

Options

You can use the following options with the list subcommand:

*-c, --config (config) Path to root sitecore.json directory (default: cwd)

-v, --verbose Write some additional diagnostic and performance data

-t, --trace Write more additional diagnostic and performance data

-?, -h, --help Show help and usage information*

You can use the following options with the start subcommand:

*-c, --config (config) Path to root sitecore.json directory (default: cwd)

-j, --job-name (job-name) Mention DB Task Schedule Name from Listing.

-v, --verbose Write some additional diagnostic and performance data

-t, --trace Write more additional diagnostic and performance data

-?, -h, --help Show help and usage information*

You can use the following options with the rebuildlinkdb subcommand:

*-c, --config (config) Path to root sitecore.json directory (default: cwd)

-db, --database (database) Mention DB name for rebuilding the link DB (default: master)

-v, --verbose Write some additional diagnostic and performance data

-t, --trace Write more additional diagnostic and performance data

-?, -h, --help Show help and usage information*

About

Sitecore Warriors


Languages

Language:C# 45.1%Language:PowerShell 34.1%Language:Dockerfile 10.6%Language:Shell 8.1%Language:HTML 2.0%Language:Batchfile 0.1%