Skip to content
ServerlessSam edited this page Nov 6, 2022 · 16 revisions

Prerequisites

  • See installation for detailed instructions on how to set up dfm.
  • You will also need to set the root path for your usage. The root path will prefix all file paths specified in your config file. This allows dfm to be run from multiple places using the same config file, setting the root path required for each machine. This can be done in one of three ways:
    • Pass in the root path as -r or --root-path in your CLI invocation. This overrides the following two methods.
    • Set the DFM_ROOT_PATH environment variable.
    • If you do not complete one of the two above points, dfm will default to use / or c:// based on your OS as the root path.

As a CLI Tool

Once installed, dfm can be run using the following command: dfm merge <local path to config file>.

Optionally you can pass parameters into the merge command. Parameters can be used in path substitution logic to control what files are used in the merge. They are passed using the -p or --parameters flags and the flag's argument being of the form key1=value1,key2=value2....

For example you could also use the following command: dfm merge -p foo=bar,hello=world /files/dfm-config.json

Optionally you can also set your root path at invocation time using the -r or --root-path flags, followed by the desired path.

As a Python Package

...

Clone this wiki locally