At this time (v 1.14.1), there is no easy way to add a bundle of config files to a site at one time (let's call it a feature recipe). You can import all the config files or you can import them one at a time. However, it would be really nice if I could export a batch of config files that together make up a feature recipe for something like a FAQ.
A simple FAQ feature recipe, might include the following .json files (a simple example).
- field.instance.node.faq.body.json
- node.type.faq.json
- views.view.faq.json
Any ideas on how I could import this feature recipe all at once?
NOTE: If importing them one at a time, it's problematic, because you have to be careful to import them in the right order. You can not import the view.faq.json file before you import the node.typle.faq.json file.
[NOTE: 11/19/2019] Check status of this issue before using this method:
https://github.com/backdrop/backdrop-issues/issues/4217
One solution to this problem is to:
I tested this and it first it did not work for me. The problem appeared to be that in creating the tar.gz file, I was compressing the config directory itself. You can not include the config directory in your tar.gz file.
I found this command to help me ONLY compress and bundle the config files without their parent directory.
Using this, I was able to follow the four steps listed above to import a "feature recipe."
Hopefully, we can improve this process in the future.
https://github.com/backdrop/backdrop-issues/issues/3763
If anyone has a better way of doing this, before we get "recipes" in core, let me know.
EDIT (Nov 2, 2019): I just uploaded this video to Youtube on this topic - https://youtu.be/VgFibVrEZEw