How can I programmatically import configuration? I try to import specific configuration. I use this :

$config_path = config_get_config_directory(CONFIG_SYNC_DIRECTORY);
$source = new FileStorage($config_path);

$config_storage = \Drupal::service('config.storage');
$config_factory = \Drupal::configFactory();
$uuid_service = \Drupal::service('uuid');

$configs = [
  'field.storage.config_pages.field_areas',
  'field.field.config_pages.configuration_implantation_page.field_areas',
  'core.entity_form_display.config_pages.configuration_implantation_page.default',
  'core.entity_view_display.config_pages.configuration_implantation_page.default',
];

$config_storage-&gt;write('field.storage.config_pages.field_areas', $source-&gt;read('field.storage.config_pages.field_areas'));
$config_storage-&gt;write('field.field.config_pages.configuration_implantation_page.field_areas', $source-&gt;read('field.field.config_pages.configuration_implantation_page.field_areas'));
$config_storage-&gt;write('core.entity_form_display.config_pages.configuration_implantation_page.default', $source-&gt;read('core.entity_form_display.config_pages.configuration_implantation_page.default'));
$config_storage-&gt;write('core.entity_view_display.config_pages.configuration_implantation_page.default', $source-&gt;read('core.entity_view_display.config_pages.configuration_implantation_page.default'));


If the field is created, the table is not created.

How to create the tables associated?
You should save the config like $config_storage-&gt;save(); :
As @4K4 mentioned :


  The important thing is not simply store config, but create and save config entities and so run CRUD methods/hooks like https://api.drupal.org/api/drupal/core%21modules%21field%21src%21Entity%21FieldStorageConfig.php/function/FieldStorageConfig%3A%3ApreSave/8.7.x