Use of components and utility classes in Shell

I am building cron job using Shell in CakePHP 3.

In my application, I have used a Plugin which provides several components and utility classes which interact with third party APIs (e.g. Instagram).

Can I use those components/utilities from plugin into my Shell/Task? If yes, can you please explain what is the correct way to use? If no, what is the workaround solution for that?


We can not use Components in our Shell or Task. We should convert them in Utility classes or stand alone library.

Thanks to @josegonzalez (GitHub) for explanation.