# Help running cli

**URL:** <https://forum.squirro.com/t/help-running-cli/288>\
**Category:** Training with Squirro\
**Created:** [August 17, 2023, 11:16am UTC](https://forum.squirro.com/t/help-running-cli/288 "2023-08-17T11:16:33Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![filsan.hassan](https://avatars.discourse-cdn.com/v4/letter/f/ed655f/32.png) [@filsan.hassan](https://forum.squirro.com/u/filsan.hassan)\
**Post date:** [August 17, 2023, 11:16am UTC](https://forum.squirro.com/t/help-running-cli/288/1 "2023-08-17T11:16:34Z")

</div>

Hi,  
I have downloaded the github templates project repo and would like to run the cli in order to practice the entity creation task in the data loading module. I have tried running the main.py script under cli folder but ended up with the following error. Could you help me debug this.

Also, could you confir where to find the config variables: token,client and project id field? I have tried checking settings/project settings/properties.

 ![Screenshot 2023-08-17 121203](https://europe1.discourse-cdn.com/flex013/uploads/squirro/original/1X/c654b6205acde287c6f42ab32c6a0f006180ab0a.png)

---

<div class="post-metadata">

**Author:** ![hubert.shon](https://avatars.discourse-cdn.com/v4/letter/h/94ad74/32.png) [@hubert.shon](https://forum.squirro.com/u/hubert.shon)\
**Post date:** [August 18, 2023, 3:21pm UTC](https://forum.squirro.com/t/help-running-cli/288/2 "2023-08-18T15:21:16Z")

</div>

Hi Filsan,

We’re pleased to hear from you again and to see that you have progressed past your last issue. The two issues you have presented in this post are related.

Running the command requires the three variables that you have mentioned to be passed as arguments. A basic version of what this command can be:

`python main.py --cluster $CLUSTER --project-id $PROJECT_ID --token $TOKEN`

Please see the `load.sh` script in the same directory as `main.py` to see a more detailed version of this command.

For the three config variables, it sounds like you have a Squirro Instance running. If I have assumed correctly, then you can find those here:

**cluster** : This is the base url where your Squirro Instance is deployed. For example:

`https://sample.squirro.cloud`

**project\_id:** This is found in the location you have mentioned, “Settings \> Project Settings \> Properties”. Below is a screenshot of where you should be finding this field.

**token:** This is found in your User Profile. You can begin to access this by clicking on your avatar with your initials in the top right (screenshot below).

- From here navigate to: “My Account \> API Access”

- You should arrive at a page with list of different access tokens, which may appear blank upon your first visit.

- Go to the first token, named “User Token”, and hit the “Renew” button immediately below the field. The token should then become visible to you.

Please set these variables within your script. Alternatively, you can input these directly on the command line as shown above.

I hope this helps and lets you continue on your way!  
Best regards,

 ![project_id](https://europe1.discourse-cdn.com/flex013/uploads/squirro/original/1X/194a059b733fb9f2fa9c07f48260c8466c8411f9.png)

Hubert Shon

 ![Screenshot 2023-08-18 at 4.07.14 PM](https://europe1.discourse-cdn.com/flex013/uploads/squirro/original/1X/fbd66de00d98d768a8a27e97dc2260e243907403.png)  
 ![token](https://europe1.discourse-cdn.com/flex013/uploads/squirro/original/1X/640f75f96ea1d52cf44e3646970bcc4931a1c2d8.png)

---

<div class="post-metadata">

**Author:** ![filsan.hassan](https://avatars.discourse-cdn.com/v4/letter/f/ed655f/32.png) [@filsan.hassan](https://forum.squirro.com/u/filsan.hassan)\
**Post date:** [August 22, 2023, 12:10pm UTC](https://forum.squirro.com/t/help-running-cli/288/3 "2023-08-22T12:10:18Z")

</div>

thank you for the response. I am now trying to run the data\_loader/1\_csv/load.sh script. I have set my config variables but get the following error about ‘bind’ not being set. Any ideas on how i can fix this?

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/squirro/original/1X/360200587f02c58bc18d4401219868762d81f484.png)

---

<div class="post-metadata">

**Author:** ![pneff](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.squirro.com/pneff/32/11_2.png) [@pneff](https://forum.squirro.com/u/pneff)\
**Post date:** [August 22, 2023, 1:42pm UTC](https://forum.squirro.com/t/help-running-cli/288/4 "2023-08-22T13:42:46Z")

</div>

Hi Filsan,

My guess from that error message is that an incorrect version of a Squirro dependency was installed. Could you please run the following command and see if that resolves the error your seeing?

```bash
pip install "sqlalchemy==1.3.13"

```

Best,  
Patrice
