Running and viewing cookbooks with Instructor Hub tool
.env
file.env
file in the root directory of your copy of Instructor project and set your LLM API key(s).
You can use the .env-dist
file as a template.
./bin/instructor-hub list
you can see all the available tutorials and examples.
./bin/instructor-hub show {id}
to see the full tutorial in the terminal.
./bin/instructor-hub run {id}
in terminal - it will execute the code and show the output. You need to have your OPENAI_API_KEY set in your environment (.env file in root directory of your copy of instructor-php repo).
./bin/instructor-hub all {id}
to run all the tutorials and examples in the terminal, starting from the one you specify.