A simple CLI tool to post text messages to Bluesky directly from your terminal.
bluesky-post
is a lean command-line interface (CLI) tool designed to make it quick and easy to post text-based messages to the Bluesky social network. With just three straightforward steps—install, init, and post—you can share updates without leaving your terminal.
- Quick Setup: Initialize your login credentials once using the
init
command. - Easy Posting: Post messages up to 300 characters directly from the CLI.
- Lean Scope: Focused solely on posting text messages for simplicity and efficiency.
Install bluesky-post
globally using npm:
npm install -g bluesky-post
Before you can post messages, you need to initialize your configuration with your Bluesky credentials:
bluesky-post init
You'll be prompted to enter your Bluesky handle or email and your password. This information is stored securely in your home directory.
You can post a message in two ways:
bluesky-post post "Your message here"
If you run the post
command without providing a message, you'll be prompted to enter one:
bluesky-post post
Enter your message:
Type your message and press Enter to post.
bluesky-post post "Hello from the CLI!"
bluesky-post post
Enter your message: Just trying out bluesky-post!
Please note that messages are limited to 300 characters. The tool will prevent you from posting messages longer than this limit to comply with Bluesky's posting guidelines.
To uninstall bluesky-post
, run:
npm uninstall -g bluesky-post
- Credential Storage: Your credentials are stored in a configuration file located at
~/.bluesky/config.json
. - File Permissions: The configuration file is created with restricted permissions (
600
) to ensure that only your user account can read or write to it. - Best Practices: It's recommended to keep your system secure and not share your credentials. Consider additional security measures if needed.
This project is intentionally lean, focusing solely on providing a quick way to post text messages to Bluesky from the CLI. The goal is to keep it simple and efficient with just the essential functionality:
- Install: Get the tool on your system.
- Init: Configure your Bluesky credentials.
- Post: Share your message.
This project is licensed under the MIT License.
Note: This tool is not affiliated with or endorsed by Bluesky. Use it responsibly and in accordance with Bluesky's terms of service.