# Command Line parameters and examples

**URL:** <https://forums.blinkstick.com/t/command-line-parameters-and-examples/1252>\
**Category:** Projects\
**Created:** [September 18, 2019, 10:00am UTC](https://forums.blinkstick.com/t/command-line-parameters-and-examples/1252 "2019-09-18T10:00:30Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![peter.vanhouts](https://forums.blinkstick.com/letter_avatar_proxy/v4/letter/p/4491bb/32.png) [@peter.vanhouts](https://forums.blinkstick.com/u/peter.vanhouts)\
**Post date:** [September 18, 2019, 10:00am UTC](https://forums.blinkstick.com/t/command-line-parameters-and-examples/1252/1 "2019-09-18T10:00:30Z")

</div>

Hi there, since I am new to Blinkstick I would appreciate all the help I can get. It is easy to get the leds ON or OFF by command line parameters. Even changing colors and adressing each led is easy. But when I want to dim the led, or set brightness, nothing seems to work.  
Second challange is to set all leds to a specific color (i.e. red) without a delay so you can’t count each led when it is turning on (fast on)  
The tool written for windows works fine, but I would like to control it through commandline parameters.  
Kind regards,  
Peter

---

<div class="post-metadata">

**Author:** ![peter.vanhouts](https://forums.blinkstick.com/letter_avatar_proxy/v4/letter/p/4491bb/32.png) [@peter.vanhouts](https://forums.blinkstick.com/u/peter.vanhouts)\
**Post date:** [September 18, 2019, 10:01am UTC](https://forums.blinkstick.com/t/command-line-parameters-and-examples/1252/2 "2019-09-18T10:01:27Z")

</div>

Example turning on leds via cl

blinkstick --index 0 yellow  
blinkstick --index 1 red  
blinkstick --index 2 green  
blinkstick --index 3 blue

---

<div class="post-metadata">

**Author:** ![zu.Bat](https://forums.blinkstick.com/user_avatar/forums.blinkstick.com/zu.bat/32/594_2.png) [@zu.Bat](https://forums.blinkstick.com/u/zu.Bat)\
**Post date:** [October 20, 2019, 12:32am UTC](https://forums.blinkstick.com/t/command-line-parameters-and-examples/1252/3 "2019-10-20T00:32:33Z")

</div>

The brightness is determined by how high each RGB value is, and since the CMD parameters only accepts HEX RGB values, you will need the find a Colorpicker that gives you a HEX value.  
You can use the below tool to get the desired hex value.

[https://yuilibrary.com/yui/docs/color/rgb-slider.html](https://yuilibrary.com/yui/docs/color/rgb-slider.html)

The higher the value = higher brigthness

**Command for setting colors with a HEX value:**  
blinkstick --set-color “#100000” --index “1”

I don’t think there is any CMD parameter to switch color on all LED’s at the same time. for that you should use one of the other supported languages.
