bravectl 2.0.1

dotnet tool install --global bravectl --version 2.0.1
                    
This package contains a .NET tool you can call from the shell/command line.
dotnet new tool-manifest
                    
if you are setting up this repo
dotnet tool install --local bravectl --version 2.0.1
                    
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=bravectl&version=2.0.1
                    
nuke :add-package bravectl --version 2.0.1
                    

bravectl

build_publish_nugget

A .NET tool that performs web searches using the Brave API. It functions by accepting command-line arguments and options, constructing a Brave API query parameter model, making an HTTP request to the Brave API, and displaying the search results in the console using spectre-console.

demo.png help message

🔧 Capabilities

  • 🌐 Search the web using Brave – Perform web searches with Brave Search and enjoy fewer ads and more privacy-focused results.

  • 📄 Extract and read web content – Convert a web page into plain text and display it directly in the console for easy reading.

🚀 Installation

You can build and use the tool locally or download executable version from nuget.org.

Build and use locally

# Clone the repository
git clone https://github.com/fodare/bravectl.git
cd bravectl

# Restore dependencies
dotnet restore

# Build the project
dotnet build

# (Optional) Run test
dotnet run test

# Export brave api key. See https://brave.com/search/api/.
export braveAPIKey=Enter-API-Key

# (Optional) Run directly using alias from project dir.
dotnet run -- search -f web -q "Where is the ISS"
# dotnet run -- search --filter web --query "Where is the ISS"

# Package tool locally. To overide tool name / command, see ToolCommandName in ...csproj file.
# From project parent directory, run
dotnet pack

# (Optional) Install as a global tool (if structured as a .NET Tool)
dotnet tool install --global --add-source ./nupkg bravectl

# Run application from any dir.
bravectl search -f web -q "Where is the ISS"

# Convert webpage to text and print to console.
bravectl extract "https://www.astroviewer.net/iss/en/"

Download from nuget.org

# See https://www.nuget.org/packages/bravectl
dotnet tool install -g bravectl

🙌 Contributing

Contributions are welcome! Please feel free to open issues, suggest features, or submit pull requests.

Made with ❤️ for terminal users and privacy nerds.

Product Compatible and additional computed target framework versions.
.NET net9.0 is compatible.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

Version Downloads Last Updated
2.0.1 234 5/27/2025
2.0.0 209 5/19/2025
1.0.2 199 5/11/2025
1.0.1 186 5/11/2025
1.0.0 131 5/10/2025