Configuration Reference

Complete reference for all Conjure configuration options.

Conjure uses a YAML configuration file to define where templates and bundles are located.

Configuration File Location

Conjure searches for configuration in this order:

  1. --config flag - Explicit path passed on the command line
  2. ~/.conjure.yaml - Home directory

If no --config flag is provided, Conjure looks for .conjure.yaml in your home directory.

Configuration Options

FieldRequiredDefaultValid ValuesDescription
templates_sourceNolocal (or both if templates_remote_url is set)local, remote, bothWhere to source templates from.
bundles_sourceNolocal (or both if bundles_remote_url is set)local, remote, bothWhere to source bundles from.
templates_local_dirWhen source is local or bothNoneAbsolute pathParent directory containing the templates/ subdirectory.
bundles_local_dirWhen source is local or bothNoneAbsolute pathParent directory containing the bundles/ subdirectory.
templates_remote_urlWhen source is remote or bothNonehttp:// or https:// URLBase URL of the remote templates repository.
bundles_remote_urlWhen source is remote or bothNonehttp:// or https:// URLBase URL of the remote bundles repository.
templates_priorityNolocal-firstlocal-first, remote-firstWhich source to check first when source is both.
bundles_priorityNolocal-firstlocal-first, remote-firstWhich source to check first when source is both.
cache_dirNo.conjure (relative to working directory)Directory pathCache directory for remote resources. Supports ~/ expansion.

Important

The templates_local_dir and bundles_local_dir paths must point to the parent directory that contains the templates/ and bundles/ subdirectories. Conjure appends templates/ and bundles/ to the configured path internally. Use fully qualified absolute paths. Conjure does not expand the ~ shorthand in local directory paths (only cache_dir supports tilde expansion).

Environment Variables

Every configuration option has a corresponding environment variable with the CONJURE_ prefix. Environment variables override values from the configuration file.

Config FieldEnvironment Variable
templates_sourceCONJURE_TEMPLATES_SOURCE
bundles_sourceCONJURE_BUNDLES_SOURCE
templates_local_dirCONJURE_TEMPLATES_LOCAL_DIR
bundles_local_dirCONJURE_BUNDLES_LOCAL_DIR
templates_remote_urlCONJURE_TEMPLATES_REMOTE_URL
bundles_remote_urlCONJURE_BUNDLES_REMOTE_URL
templates_priorityCONJURE_TEMPLATES_PRIORITY
bundles_priorityCONJURE_BUNDLES_PRIORITY
cache_dirCONJURE_CACHE_DIR

Precedence

When the same setting is defined in multiple places, Conjure uses this order (highest to lowest):

  1. --config flag - Config file specified on the command line
  2. Environment variables - CONJURE_* variables
  3. Configuration file - ~/.conjure.yaml

Next Steps