-
Notifications
You must be signed in to change notification settings - Fork 1
Usage
ServerlessSam edited this page Nov 6, 2022
·
16 revisions
- 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
-ror--root-pathin your CLI invocation. This overrides the following two methods.
- Pass in the root path as
-
- Set the
DFM_ROOT_PATHenvironment variable.
- Set the
-
- If you do not complete one of the two above points, dfm will default to use
/orc://based on your OS as the root path.
- If you do not complete one of the two above points, dfm will default to use
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.
...