# Does K2 CLI still work?

**URL:** <https://forum.getkirby.com/t/does-k2-cli-still-work/12612>\
**Category:** Questions\
**Tags:** v2\
**Created:** [February 1, 2019, 9:18am UTC](https://forum.getkirby.com/t/does-k2-cli-still-work/12612 "2019-02-01T09:18:39Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![Malvese](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/malvese/32/12375_2.png) [@Malvese](https://forum.getkirby.com/u/Malvese)\
**Post date:** [February 1, 2019, 9:18am UTC](https://forum.getkirby.com/t/does-k2-cli-still-work/12612/1 "2019-02-01T09:18:39Z")

</div>

I just tried to update a K2 site through the CLI, and… it looks like it upgraded to K3, instead of the latest K2 version.  
Is the CLI still supported for K2? If so is there a way to pull the latest K2 version?  
Thanks!

---

<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:** [February 1, 2019, 9:22am UTC](https://forum.getkirby.com/t/does-k2-cli-still-work/12612/2 "2019-02-01T09:22:54Z")

</div>

Since K2 has moved and the link is hardcoded, you would have to update them in the code, I think, if you still want to use the CLI for K2. But it might be that links to plugins will also break if the K2 versions have been moved to another branch, not sure.

---

<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:** [February 1, 2019, 9:26am UTC](https://forum.getkirby.com/t/does-k2-cli-still-work/12612/3 "2019-02-01T09:26:50Z")

</div>

since the cli is hardcoded to master or optional dev branch i think its broken for k2.

> <https://github.com/getkirby-v2/cli/blob/master/src/Command/Install/Core.php>

i suggest you create an issue requesting a version lock for something like `^2.5.10`.

---

<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:** [February 1, 2019, 9:28am UTC](https://forum.getkirby.com/t/does-k2-cli-still-work/12612/4 "2019-02-01T09:28:15Z")

</div>

you beat me again in responding. damn mobilephone onscreen keyboards. 😆

---

<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:** [February 1, 2019, 9:29am UTC](https://forum.getkirby.com/t/does-k2-cli-still-work/12612/5 "2019-02-01T09:29:21Z")

</div>

Well, you posted the corresponding code, so providing more information 🤗

---

<div class="post-metadata">

**Author:** ![Malvese](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/malvese/32/12375_2.png) [@Malvese](https://forum.getkirby.com/u/Malvese)\
**Post date:** [February 1, 2019, 9:30am UTC](https://forum.getkirby.com/t/does-k2-cli-still-work/12612/6 "2019-02-01T09:30:34Z")

</div>

Thank you, both of you. I dug a little, but can’t even find K2 on Github 😓 I’m not even sure we can still pull that codebase.

---

<div class="post-metadata">

**Author:** ![bastianallgeier](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/bastianallgeier/32/7569_2.png) [@bastianallgeier](https://forum.getkirby.com/u/bastianallgeier)\
**Post date:** [February 1, 2019, 9:30am UTC](https://forum.getkirby.com/t/does-k2-cli-still-work/12612/7 "2019-02-01T09:30:56Z")

</div>

I wonder if we should actually bring it back for v3 as well. Looking at it right now, there’s not much to change, except not installing the panel.

---

<div class="post-metadata">

**Author:** ![bastianallgeier](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/bastianallgeier/32/7569_2.png) [@bastianallgeier](https://forum.getkirby.com/u/bastianallgeier)\
**Post date:** [February 1, 2019, 9:31am UTC](https://forum.getkirby.com/t/does-k2-cli-still-work/12612/8 "2019-02-01T09:31:24Z")

</div>

v2 is here: [https://github.com/getkirby-v2](https://github.com/getkirby-v2)

---

<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:** [February 1, 2019, 9:31am UTC](https://forum.getkirby.com/t/does-k2-cli-still-work/12612/9 "2019-02-01T09:31:39Z")

</div>

> [@bastianallgeier](#):
>
> I wonder if we should actually bring it back for v3 as well. Looking at it right now, there’s not much to change, except not installing the panel.

Good idea, quite a few will like that, I think

---

<div class="post-metadata">

**Author:** ![Malvese](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/malvese/32/12375_2.png) [@Malvese](https://forum.getkirby.com/u/Malvese)\
**Post date:** [February 1, 2019, 9:38am UTC](https://forum.getkirby.com/t/does-k2-cli-still-work/12612/10 "2019-02-01T09:38:04Z")

</div>

Thank you! I will look into Composer today for a K3 site, so I can compare both ways to install/upgrade.

---

<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:** [February 1, 2019, 1:23pm UTC](https://forum.getkirby.com/t/does-k2-cli-still-work/12612/11 "2019-02-01T13:23:23Z")

</div>

`make plugin` could clone the new pluginkit.

---

<div class="post-metadata">

**Author:** ![Malvese](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/malvese/32/12375_2.png) [@Malvese](https://forum.getkirby.com/u/Malvese)\
**Post date:** [February 1, 2019, 6:36pm UTC](https://forum.getkirby.com/t/does-k2-cli-still-work/12612/12 "2019-02-01T18:36:59Z")

</div>

So, I installed a new site and contrib plugins via Composer, and it was a breeze.  
So far I don’t see why I’d use Kirby’s CLI over Composer.

That said updating the CLI to have it point to the K2 repo would be nice for all the projects we can’t switch to K3 yet.

---

<div class="post-metadata">

**Author:** ![lukasbestle](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/lukasbestle/32/11437_2.png) [@lukasbestle](https://forum.getkirby.com/u/lukasbestle)\
**Post date:** [February 1, 2019, 6:52pm UTC](https://forum.getkirby.com/t/does-k2-cli-still-work/12612/13 "2019-02-01T18:52:37Z")

</div>

> [@bastianallgeier](#):
>
> I wonder if we should actually bring it back for v3 as well.

Wasn’t the reason why we discontinued the CLI that it wasn’t working reliably for many users? I think we would need to rewrite it to make that happen.

---

<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:** [February 1, 2019, 7:43pm UTC](https://forum.getkirby.com/t/does-k2-cli-still-work/12612/14 "2019-02-01T19:43:27Z")

</div>

> [@lukasbestle](#):
>
> Wasn’t the reason why we discontinued the CLI that it wasn’t working reliably for many users? I think we would need to rewrite it to make that happen.

As far as I recall there were problems with non-namespaced classes colliding in some cases?

---

<div class="post-metadata">

**Author:** ![distantnative](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/distantnative/32/11319_2.png) [@distantnative](https://forum.getkirby.com/u/distantnative)\
**Post date:** [February 6, 2025, 5:23pm UTC](https://forum.getkirby.com/t/does-k2-cli-still-work/12612/15 "2025-02-06T17:23:20Z")

</div>

Archived on February 6, 2025, 5:23pm UTC


