# Janitor plugin : Class "Kirby\\CLI\\CLI" not found

**URL:** <https://forum.getkirby.com/t/janitor-plugin-class-kirby-cli-cli-not-found/31391>\
**Category:** Plugins\
**Created:** [April 17, 2024, 1:10pm UTC](https://forum.getkirby.com/t/janitor-plugin-class-kirby-cli-cli-not-found/31391 "2024-04-17T13:10:28Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![sly31](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/sly31/32/16579_2.png) [@sly31](https://forum.getkirby.com/u/sly31)\
**Post date:** [April 17, 2024, 1:10pm UTC](https://forum.getkirby.com/t/janitor-plugin-class-kirby-cli-cli-not-found/31391/1 "2024-04-17T13:10:28Z")

</div>

Hi,  
after installing Kirby CLI (it works from terminal), I tried to use Janitor plugin.  
But I have an error when I try to use a command from the panel:  
`Class "Kirby\CLI\CLI" not found`  
I can however execute Janitor commands from terminal.  
Any idea where the problem might come from?

---

<div class="post-metadata">

**Author:** ![thguenther](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/thguenther/32/16708_2.png) [@thguenther](https://forum.getkirby.com/u/thguenther)\
**Post date:** [April 17, 2024, 1:23pm UTC](https://forum.getkirby.com/t/janitor-plugin-class-kirby-cli-cli-not-found/31391/2 "2024-04-17T13:23:29Z")

</div>

Did you install Janitor [with Composer](https://github.com/bnomei/kirby3-janitor/#:~:text=You%20need%20to%20install%20the%20CLI%20with%20composer.%20Since%20Janitor%20depends%20on%20the%20CLI%20to%20be%20available%20installing%20only%20the%20janitor%20plugin%20via%20submodules%20or%20via%20ZIP%20do%20not%20make%20much%20sense.%20Please%20stick%20to%20composer%20for%20now)?

---

<div class="post-metadata">

**Author:** ![sly31](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/sly31/32/16579_2.png) [@sly31](https://forum.getkirby.com/u/sly31)\
**Post date:** [April 17, 2024, 1:36pm UTC](https://forum.getkirby.com/t/janitor-plugin-class-kirby-cli-cli-not-found/31391/3 "2024-04-17T13:36:55Z")

</div>

Yes

---

<div class="post-metadata">

**Author:** ![texnixe](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/texnixe/32/5754_2.png) [@texnixe](https://forum.getkirby.com/u/texnixe)\
**Post date:** [April 17, 2024, 3:23pm UTC](https://forum.getkirby.com/t/janitor-plugin-class-kirby-cli-cli-not-found/31391/4 "2024-04-17T15:23:58Z")

</div>

Where is the CLI installed now? Inside the project’s vendor folder, or globally?

---

<div class="post-metadata">

**Author:** ![sly31](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/sly31/32/16579_2.png) [@sly31](https://forum.getkirby.com/u/sly31)\
**Post date:** [April 17, 2024, 3:28pm UTC](https://forum.getkirby.com/t/janitor-plugin-class-kirby-cli-cli-not-found/31391/5 "2024-04-17T15:28:04Z")

</div>

I tried both.  
When installed globally, Janitor return `Class "Kirby\CLI\CLI"` not found.  
When installed in project’s vendor folder, the error is `Class Kirby not found` in index.php, line 5  
Maybe something is missing on my server ?

---

<div class="post-metadata">

**Author:** ![Sachbearbeiter](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/sachbearbeiter/32/13507_2.png) [@Sachbearbeiter](https://forum.getkirby.com/u/Sachbearbeiter)\
**Post date:** [July 11, 2024, 3:09pm UTC](https://forum.getkirby.com/t/janitor-plugin-class-kirby-cli-cli-not-found/31391/6 "2024-07-11T15:09:28Z")

</div>

`"Kirby\CLI\CLI"` not found → same problem  
… installed globally in /.config/composer/vendor/getkirby/cli and kirby itself is in /vendor …

Someone has an idea? Thanks!

---

<div class="post-metadata">

**Author:** ![bnomei](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/bnomei/32/775_2.png) [@bnomei](https://forum.getkirby.com/u/bnomei)\
**Post date:** [July 11, 2024, 7:33pm UTC](https://forum.getkirby.com/t/janitor-plugin-class-kirby-cli-cli-not-found/31391/7 "2024-07-11T19:33:08Z")

</div>

is it a built in command or a custom one? how exactly are you using it from the panel (blueprint)?

---

<div class="post-metadata">

**Author:** ![bnomei](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/bnomei/32/775_2.png) [@bnomei](https://forum.getkirby.com/u/bnomei)\
**Post date:** [July 11, 2024, 7:39pm UTC](https://forum.getkirby.com/t/janitor-plugin-class-kirby-cli-cli-not-found/31391/8 "2024-07-11T19:39:14Z")

</div>

installing the cli globally will allow you to run commands with the „kirby“ executable but janitor still requires the cli to be installed within the project (see readme → installation)

---

<div class="post-metadata">

**Author:** ![Sachbearbeiter](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/sachbearbeiter/32/13507_2.png) [@Sachbearbeiter](https://forum.getkirby.com/u/Sachbearbeiter)\
**Post date:** [July 15, 2024, 10:00am UTC](https://forum.getkirby.com/t/janitor-plugin-class-kirby-cli-cli-not-found/31391/9 "2024-07-15T10:00:28Z")

</div>

I have installed the Cli also in the project → no error message anymore … Thanks!
