For module developers, there is the Configuration Development module. The Configuration Development module provides a command-line method for importing and exporting a configuration. This is useful for contributed module developers. It eases the exporting and update of a configuration intended for the config/install directory.
The module looks for a config_devel entry in the module's info.yml file. An example is taken from the Commerce Store submodule from Drupal Commerce module:
config_devel:
install:
- commerce_store.commerce_store_type.online
- commerce_store.settings
- core.entity_view_display.commerce_store.online.default
- views.view.commerce_stores
- system.action.commerce_delete_store_action
Using Drush, commands provided by the Configuration Development can then be used to export and import the data. The following command will export the listed configuration to the config/install directory:
$ drush config-devel-export commerce_store