CLaiRE CLI Installation and Configuration
Installing
-
NPMjs
npm install -g @myask-io/cli
Initialize the CLI
myask init
Configuring
myask config-
myask config -t {API_TOKEN}- find your CLaiRE API token in your admin dashboard
https://myask.io/admin
- find your CLaiRE API token in your admin dashboard
Creating Projects
myask api:project:create
- name
- description
- ai_model
- system_message (optional)
Setting Current Project
myask api:project:set- no flags necessary; choose project from list to set as current project for API
Sending AI Prompts
myask askmyask ask -p "prompt goes here"-
myask ask -F path/to/input/file- if no flags supplied
myaskprompts you on the command line
- if no flags supplied
-
myask askallows you to supply both a prompt using the-ptag as well as an input file using-F myask askallows you to supply multiple input files using the following format:myask ask -F path/to/input1 -F path/to/input2
myask ask -p "Analye the following files, refactor if necessary, and merge into a single source file" -F path/to/source1 -F path/to/source 2
View API Data
myask api:project:show --listmyask api:project:show {PROJECT_ID}myask api:question:show --listmyask api:question:show {QUESTION_ID}
Invite Users to CLaiRE
myask api:invitation:create {USER_EMAIL}- if no
{USER_EMAIL}suppliedmyaskwill prompt for one on the command line
- if no