# How to use Jenkin-cli.jar exactly?

**URL:** <https://community.jenkins.io/t/how-to-use-jenkin-cli-jar-exactly/1124>\
**Category:** Using Jenkins\
**Created:** [December 28, 2021, 11:36am UTC](https://community.jenkins.io/t/how-to-use-jenkin-cli-jar-exactly/1124 "2021-12-28T11:36:06Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![PowaBanga](https://dub1.discourse-cdn.com/flex013/user_avatar/community.jenkins.io/powabanga/32/735_2.png) [@PowaBanga](https://community.jenkins.io/u/PowaBanga)\
**Post date:** [December 28, 2021, 11:36am UTC](https://community.jenkins.io/t/how-to-use-jenkin-cli-jar-exactly/1124/1 "2021-12-28T11:36:06Z")

</div>

Hi everybody,  
there really is something hat i do not understand to use jenkins-cli.jar in command line.

I installed jenkins, downloaded jenkins-cli.jar, but i do not arrive to useit correctly… :

```auto
powabanga@ArchiPavilion Modèles]$ java -jar jenkins-cli.jar -s http://localhost:8090/ -webSocket help
Error: An unexpected error occurred while trying to open file jenkins-cli.jar
powabanga@ArchiPavilion Modèles]$ java -jar jenkins-cli.jar -s http://localhost/ -webSocket help
Error: An unexpected error occurred while trying to open file jenkins-cli.jar
powabanga@ArchiPavilion Modèles]$ java -jar jenkins-cli.jar -s http://localhost/ -ssh -webSocket help
Error: An unexpected error occurred while trying to open file jenkins-cli.jar
powabanga@ArchiPavilion Modèles]$ java -jar jenkins-cli.jar -s http://localhost/ -auth powabanga -webSocket help
Error: An unexpected error occurred while trying to open file jenkins-cli.jar
powabanga@ArchiPavilion Modèles]$ java -jar jenkins-cli.jar -s http://localhost/ -ssh -auth powabanga -webSocket help
Error: An unexpected error occurred while trying to open file jenkins-cli.jar
powabanga@ArchiPavilion Modèles]$

```

I am on Archlinux, with jenkins-lts 2.319.1

---

<div class="post-metadata">

**Author:** ![halkeye](https://dub1.discourse-cdn.com/flex013/user_avatar/community.jenkins.io/halkeye/32/8_2.png) [@halkeye](https://community.jenkins.io/u/halkeye)\
**Post date:** [December 28, 2021, 4:51pm UTC](https://community.jenkins.io/t/how-to-use-jenkin-cli-jar-exactly/1124/2 "2021-12-28T16:51:09Z")

</div>

How certain are you that the file is right?

Have you tried opening it? Or using the file command on it? I feel like you may have html not the jar file itself
