Build low-cost, site-specific CLI wrappers by profiling selected web pages (links, forms, actions) and generating minimal scripts for navigation/login/CRUD flows. Use when: (1) user asks to "turn [website] into a CLI", "make [site] scriptable", "build CLI for [site]"; (2) user wants to automate a website that has no API; (3) user asks to "scrape [site]" or "map [site] actions"; (4) user wants a lightweight wrapper for a web app. Trigger phrases: "turn into cli", "make it scriptable", "build a cli for", "scrape this site", "automate this website", "cli wrapper for".
Create a minimal, low-cost CLI that can navigate and perform selected actions on a target website.
scripts/web_to_cli_profile.py to extract links + forms.webcli list, webcli create, webcli update, webcli delete, webcli exportrequestsRun (example):
python3 scripts/web_to_cli_profile.py \
--base https://infovegetarian.id \
--pages "/,/login,/events,/news,/map,/venues,/submit-venue" \
--out /tmp/infovegetarian_profile.json
profile.json with extracted links/formsreferences/sites.jsonreferences/USAGE.mdreferences/.