LogoLogo
Sign inVisit bito.aiVideo Library
  • πŸ‘‹Welcome to Bito
  • πŸ†•Getting started
  • πŸ›‘οΈPrivacy and security
  • πŸ€–AI Code Review Agent
    • Overview
    • Key features
    • Supported programming languages and tools
    • Install/run using Bito Cloud
      • Guide for GitHub
      • Guide for GitHub (Self-Managed)
      • Guide for GitLab
      • Guide for GitLab (Self-Managed)
      • Guide for Bitbucket
      • Integrate the AI Code Review Agent into the CI/CD pipeline
      • Create or customize an Agent instance
      • Clone an Agent instance
      • Delete unused Agent instances
    • Install/run as a self-hosted service
      • Prerequisites
      • CLI vs webhooks service
      • Install/run via CLI
      • Install/run via webhooks service
      • Install/run via GitHub Actions
      • Agent Configuration: bito-cra.properties File
    • Available commands
    • Chat with AI Code Review Agent
    • Implementing custom code review rules
    • Excluding files, folders, or branches with filters
    • Code review analytics
    • FAQs
  • Other Bito AI tools
    • IDE extension
      • Quick Overview
      • Installation guide
        • Installing on Visual Studio Code
        • Installing on JetBrain IDEs
        • Vim/Neovim Plugin
      • Upgrading Bito plugin
      • AI Chat in Bito
        • Keyboard shortcuts
        • Chat session history
        • Share chat session
        • Appearance settings
        • Open Bito in a new tab or window
        • Use cases and examples
      • Templates
        • Standard templates
        • Custom prompt templates
        • Diff view
      • AI that Understands Your Code
        • Overview
        • How it Works?
        • Available Keywords
        • Example Questions
        • How does Bito Understand My Code?
        • Using in Visual Studio Code
        • Using in JetBrains IDEs
        • Managing Index Size
        • FAQs
      • AI Code Completions
        • Overview
        • How it works?
        • Enable/disable settings
        • Accept/reject suggestions
        • Keyboard shortcuts
        • Supported programming languages
        • Use cases and examples
      • Basic/Advanced AI models
      • Wingman Coding Agent
        • Key features
        • Supported tools
        • Getting started
    • Bito CLI
      • Overview
      • Install or uninstall
      • Configuration
      • How to use?
      • Available commands
      • FAQs
    • Google Chrome extension
  • Help
    • 🧠Bito's AI stack
      • Embeddings
      • Vector databases
      • Indexing
      • Generative AI
      • Large Language Models (LLM)
      • LLM tokens
      • LLM parameters
      • Retrieval Augmented Generation (RAG)
      • Prompts
      • Prompt engineering
    • πŸ‘₯Account and settings
      • Creating a Bito account
      • Workspace
      • Managing workspace members
      • Setting AI output language
      • Managing user access levels
      • Access key
    • πŸ’³Billing and plans
      • Overview
      • Payment methods
      • Managing workspace plan
      • Pay for additional workspace members
      • Advanced AI requests usage
      • Billing history
      • Billing details
      • Security
      • Refund policy
      • Discounts
    • βš’οΈSupport and questions
      • Getting support
      • Troubleshooting
      • Is it GPT-4?
  • πŸ†•Changelog
  • External Links
    • Git
    • Github Issues
    • Github Discussions
    • Bito.ai
    • VS Code Marketplace
    • JetBrain Marketplace
Powered by GitBook
LogoLogo

Bito Inc. (c) 2025

On this page
  • Help
  • Check Bito CLI Version
  • Bito CLI MyPrompt (Automation using Bito CLI)
  • 1- Non-Interactive Mode with File Input
  • 2- Standard Input Mode
  • 3- Direct File Input
  • 4- Redirect Output to a File
  • 5- Store Context/Conversation History
  • 6- Instant Response for Queries
  • Using Comments
  • Few examples for above:
  • Using Macro

Was this helpful?

Export as PDF
  1. Other Bito AI tools
  2. Bito CLI

Available commands

Learn about all the powerful commands to use Bito CLI

PreviousHow to use?NextFAQs

Last updated 8 months ago

Was this helpful?

Help

Run any one of the below commands.

bito --help

or

bito config –help

Check Bito CLI Version

Run any one of the below commands to print the version number of Bito CLI installed currently.

bito -v

or

bito --version

Bito CLI MyPrompt (Automation using Bito CLI)

The below commands can help you automate repetitive tasks like software documentation, test case generation, writing pull request description, pull request review, release notes generation, writing commit message, and much more.

Explore some we've created using , which you can implement in your projects right now. These automations showcase the powerful capabilities of Bito CLI.

1- Non-Interactive Mode with File Input

Run the below command 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).

bito –p writedocprompt.txt -f mycode.js

2- Standard Input Mode

Run the below command 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).

bito –p writedocprompt.txt

3- Direct File Input

Run the below command to directly concatenate a file and pipe it to bito and get instant result for your query.

On Mac/Linux

cat file.txt | bito

On Windows

type file.txt | bito

4- Redirect Output to a File

On Mac/Linux

Run the below command 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).

cat inventory.sql | bito -p testdataprompt.txt > testdata.sql

On Windows

Run the below command 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).

type inventory.sql | bito -p testdataprompt.txt > testdata.sql

5- Store Context/Conversation History

Run the below command 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

On Mac/Linux

cat inventory.sql | bito -c runcontext.txt -p testdataprompt.txt > testdata.sql

On Windows

type inventory.sql | bito -c runcontext.txt -p testdataprompt.txt > testdata.sql

6- Instant Response for Queries

Run the below command to instantly get response for your queries using Bito CLI.

echo "give me code for bubble sort in python" | bito

Using Comments

Anything after # symbol 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.

Few examples for above:

  • Give me an example of bubble sort in python # everything written here will be considered as a comment now.

  • Explain what this part of the code do: \#include<stdio.h>

    • In the example above \# can be used as an escape sequence to include # as a part of your prompt.

  • #This will be considered as a comment as it contains # at the start of the line itself.

Using Macro

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.
intelligent AI automations
Bito CLI