2.6.3 • Published 27 days ago

@sitecore-search/cli v2.6.3

Weekly downloads
-
License
Apache-2.0
Repository
-
Last release
27 days ago

@sitecore-search/cli

Command line tool for the Sitecore Discover React SDK.

Installation

npm install --save-dev @sitecore-search/cli

Running CLI

To run the cli execute the following command on a terminal:

npx sc-search

followed by any of the available options or actions.

E.g.: npx sc-search --version

Global options

OptionDescription
--versionShows version number
-h, --hShows help

Available actions

CommandDescriptionAliasesOptions
new-widgetGenerates files to create a new widgetnw--verbose (-v): Run with verbose logging --overwrite (-w): Overwrite the destination --suffix (-s): Template file suffix --template (-t): The template id --name (-n): The template component name --default-name (-d): Use the default template component name --output (-o): The path where you want your template --language (-l): The template language --styling (-st): The template styling

E.g.: npx sc-search new-widget -v -n MyWidget -o widget/path -w

will create a new Widget named MyWidget in the widget/path and if the Widget already exist will overwrite it. If any of the parameters are omitted, the cli will prompt some questions to complete the missing information.

Settings

The cli will try to read a file named .sc-search-settings.json to get some settings. That file should be present in the same folder as the command has been called. Here is an example about that file should look like:

{
    "components-path": "src-test/components"
}

The destination of the generated widgets can be set there.

2.6.4-alpha.0

27 days ago

2.6.3

8 months ago

2.6.3-alpha.0

8 months ago

2.6.2

8 months ago

2.5.3-alpha.2

11 months ago

2.5.3-alpha.1

11 months ago

2.5.3-alpha.0

11 months ago

2.6.1

9 months ago

2.6.0

9 months ago

2.5.5-alpha.0

11 months ago

2.5.6

10 months ago

2.5.5

11 months ago

2.5.1-alpha.0

1 year ago

2.5.1-alpha.1

1 year ago

2.5.2-alpha.0

12 months ago

2.6.0-alpha.0

10 months ago

2.6.0-alpha.1

10 months ago

2.5.0

1 year ago

2.5.2

12 months ago

2.5.1

1 year ago

2.5.4

11 months ago

2.5.3

11 months ago

2.5.6-alpha.0

10 months ago

2.6.1-alpha.0

9 months ago

2.5.0-alpha.1

1 year ago

2.5.0-alpha.0

1 year ago

2.4.2-alpha.0

1 year ago

2.4.2

1 year ago

2.4.1

1 year ago

2.4.1-alpha.0

1 year ago

2.4.0

1 year ago

2.4.0-alpha.3

1 year ago

2.4.0-alpha.2

1 year ago

2.4.0-alpha.1

1 year ago

2.4.0-alpha.0

1 year ago

2.3.0-alpha.0

1 year ago

2.2.4-alpha.0

1 year ago

2.2.3

1 year ago

2.2.3-alpha.1

1 year ago

2.2.3-alpha.0

1 year ago

2.2.2

1 year ago

2.2.1-alpha.0

1 year ago

2.2.1

1 year ago

1.2.0

2 years ago

1.2.2

2 years ago

1.2.1

2 years ago

2.1.1

2 years ago

2.0.1-alpha.0

2 years ago

2.0.0-alpha.0

2 years ago

2.0.0-alpha.1

2 years ago

2.0.0-alpha.2

2 years ago

2.2.0-alpha.0

2 years ago

1.2.0-alpha.4

2 years ago

1.2.0-alpha.5

2 years ago

1.2.0-alpha.2

2 years ago

1.2.0-alpha.3

2 years ago

2.1.0

2 years ago

2.0.0

2 years ago

2.1.0-alpha.0

2 years ago

1.1.0-alpha.1

2 years ago

1.0.4-alpha.1

2 years ago

1.0.4-alpha.2

2 years ago

1.2.0-alpha.0

2 years ago

1.2.0-alpha.1

2 years ago

1.0.4-alpha.0

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago