Loading repository data…
Loading repository data…
gitbito / repository
Bito CLI (Command Line Interface) provides a command line interface to the Bito AI chat functionality. Over time, CLI will add more functions and new command options to support complex automation and workflows. This is a very early Alpha version. We would love to get your feedback on the new features or improvements.
A transparent discovery signal based on current public GitHub metadata.
This score does not audit code, security, maintainers, documentation quality, or suitability. Verify the repository and its current documentation before adoption.
Bito CLI (Command Line Interface) provides a command line interface to the Bito AI chat functionality. Over time, CLI will add more functions and new command options to support complex automation and workflows.
This is a very early Alpha version. We would love to get your feedback on the new features or improvements. Please write us at founders@bito.ai or support@bito.ai.
Terminal
Execute Chat: Run bito command on command prompt to get started. Ask anything you want help with such as awk command to print first and last column.
Note: Bito CLI supports long prompts through multiline input. To complete and submit the prompt, press Ctrl+D. Enter/Return key adds a new line to the input.
Exit Bito CLI: To quit/exit from Bito CLI, type quit and press Ctrl+D .
Terminate: Press Ctrl+C to Bito CLI.
Check out the video below to get started with Bito CLI
We recommend you use the following methods to install Bito CLI.
sudo curl https://alpha.bito.ai/downloads/cli/install.sh -fsSL | bash (curl will always download the latest version)
Arch and Arch based distro users can install it from AUR
yay -S bito-cli or paru -S bito-cli
brew tap gitbito/bitocli, this should be a one time action and not required every time.brew install bito-cli - this should install Bito CLI based upon your machine architecture.brew update before upgrading to avoid any errors.brew update - this will update all the required packages before upgrading.brew upgrade bito-cli - once above is done, this will update Bito CLI to the latest version.brew uninstall bito-cli - this should uninstall Bito CLI completely from your system.Note for the Mac Users: You might face issue related to verification for which you will have to manually do the steps from here (we are working on fixing it as soon as possible).
bito to get started.sudo curl https://alpha.bito.ai/downloads/cli/uninstall.sh -fsSL | bash (this will completely uninstall Bito CLI and all of its components)
For Windows you can uninstall Bito CLI just like you do for any other software uninstall from control panel. You can still refer the link provided here.
While it's not recommended, you can download the Bito CLI binary from our repository, and install is manually. The binary is available for Linux and Mac OS, x86 and ARM architecture.
mv bito-<os>-<arch> bitochmod +x ./bitosudo cp ./bito /usr/local/binPATH=$PATH:/usr/local/binbito command. If PATH variable is not set, you will need to run command with the complete or relative path to the Bito executable binary.On MAC/Linux:
run bito --help or bito config --help
On Windows:
run bito --help or bito config --help
Slash Commands are introduced in Bito CLI to help make features like "AI that understands your code" to be available via the CLI. With this, you can access your code index created by the Bito extension in your IDE. Slash commands can be used to quickly execute actions like viewing all local code indexes, selecting a particular local code index and finally making LCA queries for that index.
bito --help for help related to slash commands.run bito -v or bito --version to print the version number of Bito CLI installed currently.
run bito –p writedocprompt.txt -f mycode.js for non-interactive mode in Bito (where writedocprompt.txt will contain your prompt text such as "Explain the code below in brief" and mycode.js will contain the actual code on which the action is to be performed).
run bito –p writedocprompt.txt to read the content at standard input in Bito (where writedocprompt.txt will contain your prompt text such as "Explain the code below in brief" and input provided will have the actual content on which the action is to be performed).
run cat file.txt | bito to directly cat a file and pipe it to bito and get instant result for your query.
run cat inventory.sql | bito -p testdataprompt.txt > testdata.sql to redirect your output directly to a file (where -p can be used along with cat to perform prompt related action on the given content).
run cat inventory.sql | bito -c runcontext.txt -p testdataprompt.txt > testdata.sql to store context/conversation history in non-interactive mode in file runcontext.txt to use for next set of commands in case prior context is needed. If runcontext.txt is not present it will be created. Please provide a new file or an existing context file created by bito using -c option. With -c option now context is supported in non-interactive mode
run echo "give me code for bubble sort in python" | bito to instantly get response for your queries using Bito CLI.
run bito -v or bito --version to print the version number of Bito CLI installed currently.
run bito –p writedocprompt.txt -f mycode.js for non-interactive mode in Bito (where writedocprompt.txt will contain your prompt text such as "Explain the code below in brief" and mycode.js will contain the actual code on which the action is to be performed).
run bito –p writedocprompt.txt to read the content at standard input in Bito (where writedocprompt.txt will contain your prompt text such as "Explain the code below in brief" and input provided will have the actual content on which the action is to be performed).
run type file.txt | bito to take input from file in windows and pipe it to bito and get instant result for your query.
run type inventory.sql | bito -p testdataprompt.txt > testdata.sql to redirect your output directly to a file (where -p can be used along with type to perform prompt related action on the given content).
run type inventory.sql | bito -c runcontext.txt -p testdataprompt.txt > testdata.sql to store context/conversation history in non-interactive mode in file runcontext.txt to use for next set of commands in case prior context is needed. If runcontext.txt is not present it will be created. Please provide a new file or an existing context file created by bito using -c option. With -c option now context is supported in non-interactive mode
run echo "give me code for bubble sort in python" | bito to instantly get response for your queries using Bito CLI.
Anything after # in your prompt file will be considered as a comment by Bito CLI and won't be part of your prompt.
You can use \# as an escape sequence to make # as a part of your prompt and to not use it for commenting anymore.
\#include<stdio.h>\# can be used as an escape sequence to include # as a part of your prompt.To treat # as normal character and not a special character to mark starting of a comment (which is the default behavior), one can use -i/--ignore flag in your command for Bito CLI.
Using -i/--ignore flag in your command for Bito CLI will let Bito CLI know to not treat # specially and use it as part of the prompt for processing.
Eg. "bito -p prompt.txt -i" will make sure that even if # is present in your prompt file, it won't be considered as a comment and your file will be processed as it is.
Use {{%input%}} macro in the prompt file to refer to the contents of the file provided via -f option
Example: To check if a file contains JS code or not, you can create a prompt file checkifjscode.txt with following prompt:
Context is provided below within contextstart and contextend
contextstart
{{%input%}}
contextend
Check if content provided in context is JS code.
Here are two examples for you to see My Prompt in action:
run bito config -l or bito config --list to list all config variables and values.
run ```bito config