Jump to content

Simple CLI for outputting page informations


isellsoap
 Share

Recommended Posts

After reading Include & Bootstrap on the ProcessWire website I coded a simple shell script for outputting page informations.

Here is the GitHub repository with further informations and usage instructions.

Long story short, you can do things like

pw get "/"

which outputs this:

post-1086-0-60242900-1422456699_thumb.pn

or 

pw find "template=basic-page,parent=/about/,sort=-id,limit=4" id template rootParent

which outputs this:

post-1086-0-71713800-1422456990_thumb.pn

I don’t know if it is in any way useful, but I think it’s a fun way to output PW content and to quickly get to page informations in a rather nerdy fashion.

  • Like 16
Link to comment
Share on other sites

  • 2 weeks later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...