This is a command-line interface (CLI) tool for interacting with the BSky social platform. It allows you to authenticate and create posts on BSky.
It is very much a prototype right now.
- Work on build
- Improve documentation
- Add unit tests
- Implement error handling
- Add other commands
- Go 1.19 or later
- A
.env
file with your BSky username and app password
-
Clone the repository:
git clone https://github.com/doingandlearning/bsky-cli.git cd bsky-cli
-
Install dependencies:
go mod tidy
Create a .env
file in the root directory of the project with the following content:
USERNAME=your_username
APP_PASSWORD=your_password
go build -o bsky ./cmd/cli
To create a post on BSky, run the following command:
./bsky -content "Your post content here"
To list the last 10 posts from users in your feed:
./bsky -fetch
To create a post on BSky, run the following command:
go run cmd/cli/*.go -content "Your post content here"
To list the last 10 posts from users in your feed:
go run cmd/cli/*.go -fetch
This project is licensed under the MIT License.