# Run from command line

**URL:** <https://help.galaxyproject.org/t/run-from-command-line/2251>\
**Category:** usegalaxy.org support\
**Tags:** workflow\
**Created:** [October 7, 2019, 3:38pm UTC](https://help.galaxyproject.org/t/run-from-command-line/2251 "2019-10-07T15:38:19Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![FreddieLPF](https://avatars.discourse-cdn.com/v4/letter/f/f9ae1b/32.png) [@FreddieLPF](https://help.galaxyproject.org/u/FreddieLPF)\
**Post date:** [October 7, 2019, 3:38pm UTC](https://help.galaxyproject.org/t/run-from-command-line/2251/1 "2019-10-07T15:38:19Z")

</div>

Hi

We are trying to run workflow from command line, and I looked into this script: [https://www.biostars.org/p/94305/](https://www.biostars.org/p/94305/) , however, I can not find the WORKFLOW\_ID and TOOL\_ID\_IN\_GALAXY, does anyone know how to get these 2 variables? Also can I use the name of .ga file as WORKFLOW\_ID? ( I have downloaded a .ga file from the Galaxy interface)

Does anyone know how to run .ga file from command line?  
And is there any script that can better run workflow from command line?

Thanks

---

<div class="post-metadata">

**Author:** ![marten](https://sea2.discourse-cdn.com/flex020/user_avatar/help.galaxyproject.org/marten/32/6_2.png) [@marten](https://help.galaxyproject.org/u/marten)\
**Post date:** [October 9, 2019, 2:28pm UTC](https://help.galaxyproject.org/t/run-from-command-line/2251/2 "2019-10-09T14:28:34Z")

</div>

A good intro into how to run a workflow through API is in the bioblend documentation ([https://bioblend.readthedocs.io/en/latest/api\_docs/galaxy/docs.html#run-a-workflow](https://bioblend.readthedocs.io/en/latest/api_docs/galaxy/docs.html#run-a-workflow))

This project for generating a standalone script for workflow execution might be of interest too: [https://github.com/mvdbeek/workflow2executable](https://github.com/mvdbeek/workflow2executable)
