Skip to content
Grav 2.1 is out: every page speaks Markdown. Read the announcement →

Access grav instance in cli #2

Started by Thierry 9 years ago · 1 replies · 781 views
9 years ago

Hello,

Could anyone explain me how to access
$grav['pages']

in a class extending ConsoleCommand please ?

I failed after a long time on several plugins using CLI 😦 and looking into the previous topic with same name.
(could not comment it).

Thanks for help.

regards,

7 years ago

For reference, this reply covers it.

Suggested topics

Topic Participants Replies Views Activity
General · by Old Man Umby, 1 week ago
2 123 18 hours ago
General · by jeremycherfas, 2 weeks ago
5 209 1 day ago
General · by lynbor, 1 week ago
2 146 4 days ago
General · by Sebastian, 2 weeks ago
1 138 2 weeks ago
General · by Andy Miller, 3 weeks ago
0 260 3 weeks ago