@quietghost/x-cli
v0.1.4
Published
Post to X from the terminal with Bun and OpenTUI.
Readme
x-cli
Post to X from the terminal with Bun, OpenTUI, and Solid.
Install
bun install -g @quietghost/x-cli
x-cliCurrent scope
- text posts
- OAuth 2.0 user auth with PKCE
- clipboard screenshot paste on Linux
- image attach from a GUI file picker
- built-in and custom themes
- Rose Pine default theme
Setup
- Install dependencies:
bun installStart the app once so it creates
~/.config/x-cli/config.toml.In the X Developer Console, configure OAuth 2.0 with this exact callback URL:
http://127.0.0.1:32323/callbackPut your OAuth 2.0
client_idinto~/.config/x-cli/config.toml.If your app type is confidential, also add
client_secret.Launch the app and open Settings with
Ctrl+,, then runConnect account.
Development
bun run dev
bun run typecheck
bun testRelease build
bun run build:single
bun run build:releasePublish
The repository includes .github/workflows/publish.yml.
Before using it, add this GitHub Actions secret:
NPM_TOKEN
Then run the workflow manually with a version like 0.1.0.
You can either:
- provide an explicit
version - or provide a
bumpofpatch,minor, ormajor
It will:
- build compiled platform packages
- publish platform packages to npm
- publish the wrapper package
@quietghost/x-cli - create or update the GitHub release and upload binary archives
Custom themes
Drop theme JSON files into:
~/.config/x-cli/themes/They use the same shape as the built-ins in src/theme/builtins/.
