Skip to content

Use the project as a CLI #478

Discussion options

You must be logged in to vote
  1. I want however to try converting your project to CLI. Can you please guide me how to do it? I don't have past experience with php, I will appriciate if you could elaborate the stages to do it.

This would take a fair amount of experimentation so I wouldn't be able to provide specific steps to do it, sorry. The best I can offer is you'd need to write a PHP command line script that interacts with the API's Model classes directly. I'd recommend using the v2 API Models and the v2 API beta package as they have less reliance on HTTP attributes. Here's an example of interacting with the Model's directly. But again I'll emphasize that both pfSense and this package expect certain HTTP specific …

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@open-source-culture
Comment options

@jaredhendrickson13
Comment options

Answer selected by open-source-culture
@open-source-culture
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants