# CLI start 3d slicer with specific module loaded

**URL:** <https://discourse.slicer.org/t/cli-start-3d-slicer-with-specific-module-loaded/18657>\
**Category:** Development\
**Created:** [July 13, 2021, 5:10am UTC](https://discourse.slicer.org/t/cli-start-3d-slicer-with-specific-module-loaded/18657 "2021-07-13T05:10:35Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![talmazov](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/talmazov/32/3966_2.png) [@talmazov](https://discourse.slicer.org/u/talmazov)\
**Post date:** [July 13, 2021, 5:10am UTC](https://discourse.slicer.org/t/cli-start-3d-slicer-with-specific-module-loaded/18657/1 "2021-07-13T05:10:36Z")

</div>

Hey,  
I am trying to start 3D Slicer from another script via CLI. the slicer instance should be windowed and startup w/ specific module showing, instead of the ‘welcome’ UI. Is this possible?

Thanks!

---

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [July 13, 2021, 3:17pm UTC](https://discourse.slicer.org/t/cli-start-3d-slicer-with-specific-module-loaded/18657/2 "2021-07-13T15:17:55Z")

</div>

You can easily do this by passing the appropriate Python commands using `--python-code` argument. See examples in the [script repository](https://slicer.readthedocs.io/en/latest/developer_guide/script_repository.html#launch-slicer). You can set the window size and position using standard Qt commands and switch module using [`selectModule()` function](https://slicer.readthedocs.io/en/latest/developer_guide/script_repository.html#switch-to-a-different-module).
