# How to create GlobReader Generator when creating a new datasource via CLI

**URL:** <https://discourse.greatexpectations.io/t/how-to-create-globreader-generator-when-creating-a-new-datasource-via-cli/79>\
**Category:** Archive\
**Created:** [March 15, 2020, 4:43pm UTC](https://discourse.greatexpectations.io/t/how-to-create-globreader-generator-when-creating-a-new-datasource-via-cli/79 "2020-03-15T16:43:14Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mabloq](https://avatars.discourse-cdn.com/v4/letter/m/898d66/32.png) [@mabloq](https://discourse.greatexpectations.io/u/mabloq)\
**Post date:** [March 15, 2020, 4:43pm UTC](https://discourse.greatexpectations.io/t/how-to-create-globreader-generator-when-creating-a-new-datasource-via-cli/79/1 "2020-03-15T16:43:14Z")

</div>

OK So when I create a new Datasource using

```bash
great_expectations datasource new

```

I end up with generator Section that looks like this:  
generators:  
subdir\_reader:  
class\_name: SubdirReaderBatchKwargsGenerator  
base\_directory: …/…/DataLake/GE/Residential

Is there someway to influence Generator being used so that I can use GlobReader instead?

I’m also open to using the python code instead of CLI, It looks like the module docs will be useful to that respect. Just asking for CLI

Best,

---

<div class="post-metadata">

**Author:** ![eugene.mandel](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.greatexpectations.io/eugene.mandel/32/22_2.png) [@eugene.mandel](https://discourse.greatexpectations.io/u/eugene.mandel)\
**Post date:** [March 15, 2020, 8:45pm UTC](https://discourse.greatexpectations.io/t/how-to-create-globreader-generator-when-creating-a-new-datasource-via-cli/79/2 "2020-03-15T20:45:03Z")

</div>

To modify/add/remove BatchKwargsGenerators of a datasource, you have to edit the great\_expectations.yml config file of you DataContext (project).

The CLI currently provides no control over BatchKwargsGenerators.

This reference explains how to configure various generators:  
[https://docs.greatexpectations.io/en/latest/module\_docs/generator\_module.html#generator-module](https://docs.greatexpectations.io/en/latest/module_docs/generator_module.html#generator-module)
