So I needed, wanted to start all PineAP modules through CLI but could not find how, so then I found a post stating that this is not supported at this time. But I needed it, so I figure if I disable authentication requirement for the site and then make wget –s calls to the correct URLS. Someone smarter than me ,maybe can figure out how to modify auth.php not to require authentications for request originating from localhost otherwise to keep your box locked you will have to comment in and out "require_once('/pineapple/includes/api/auth.php');” statement in your /pineapple/includes/header.php file.
Log story short, your “turn on PineAp script could look as crude as this – hey it works… hope Hak5 does not mind me butchering their code too muchJ
cp /pineapple/includes/authOff.php /pineapple/includes/header.php
sleep 1
wget -s http://localhost:1471/components/system/pineap/functions.php?action=start_karma
sleep 1
wget -s http://localhost:1471/components/system/pineap/functions.php?action=start_pineap
sleep 1
wget -s http://localhost:1471/components/system/pineap/functions.php?action=start_beaconer
sleep 1
wget -s http://localhost:1471/components/system/pineap/functions.php?action=start_responder
sleep 1
wget -s http://localhost:1471/components/system/pineap/functions.php?action=start_harvester
sleep 1
cp /pineapple/includes/authOn.php /pineapple/includes/header.php
echo "done"