Skip to content

punchplatform-push-es-templates.sh

Synopsis

punchplatform-push-es-templates.sh [options]

Description

Manage elasticsearch templates of mapping

Command

  • -h | --help :

    • Print the help menu.
  • -d | --directory <directory> :

    • The root directory of template files
  • -l | --url <url> :

    • Elasticsearch HTTP URL (default to 'http://localhost:9200')
  • -c | --cluster <cluster> :

    • Define the Elasticsearch cluster (referring to the .properties)
  • -u | --username <username> :

    • Elasticsearch username credential
  • -c | --password <password> :

    • Elasticsearch password credential
  • -v | --versbose :

    • Activate VERBOSE mode (urls calls, generated json)

Examples

  • Import every templates into Elasticsearch

    • $ punchplatform-push-es-templates.sh --directory elasticsearch/templates
  • Import every templates to a specific Elasticsearch cluster

    • $ punchplatform-push-es-templates.sh --directory path/to/templates --cluster es_search --verbose
  • Import every templates to a specific Elasticsearch url

    • $ punchplatform-push-es-templates.sh --directory /absolute/path --url http://myhost:9200
  • Import every templates to a secure Elasticsearch

    • $ punchplatform-push-es-templates.sh --directory path/to/templates --cluster es_search -u admin -p admin

See also

environment