Skip to content

Instantly share code, notes, and snippets.

Commands for the XO Bootcamp.

Handy for copy / pasting

File locations:

  • Elasticsearch: C:\Elasticsearch
  • Installation files: C:\Users\Administrator\Downloads\Tridion Sites 9\Content Delivery\roles\xo\resources\elasticsearch
  • Website root and Query example: C:\Inetpub\wwwroot\QueryBuilder.aspx
#!/bin/sh
##
# Syncs index and business configuration. Run this script from the Fredhopper root!
#
# Command Line parameters:
# SOURCE_LOCATION: the hostname of the source index
# DESTINATION_LOCATION: the hostname of the target index
# SOURCE_INDEX_NAME: the name of the source index
# DESTINATION_INDEX_NAME: the name of the target index
# CAPTURE_FILE_NAME: the file name of the capture file
#!/bin/sh
#
# Creates a query server instance based on a Fredhopper installation
#
# Required Fredhopper variables:
#
# fredhopper base bath (eg /usr/share/fredhopper)
# memory (=1500)
# instance_preset (=1)
# instance_name (=query-server-00x)
#!/bin/sh
ACTION=$1
INSTANCE_NAME=$2
AUTOSTART=$3
#Change the two variables below to suit your situation
BASE_PACKAGE_LOCATION="http://distribution-server.domain.net/fredhopper/fredhopper-st-base-1.0.0.zip"
FREDHOPPER_ST_BASE_FILE="fredhopper-st-base-1.0.0.zip"
DA=deployment-agent
cd /path/to/fredhopper/extracted/root
./install.sh setup:index <desired-index-instance-name>
#start the index
./bin/instance <desired-index-instance-name> start
cd /path/to/fredhopper/basedir
# just download the zip
./install.sh download
#download and unzip the package
./install.sh download:unzip
#download, unzip and start the deployment agent
./install.sh download:unzip:start-agent