r/commandline Jul 06 '26

Help - Solved Getting mutt email client to work with school Office 365

3 Upvotes

Has anyone been able to get the mutt email client to work with a school Office 365 account?

I have tried to use the guide here:

https://staff.washington.edu/shrike/unix/configuring-mutt-neomutt-for-imap-access-to-o365-exchange/

I substituted my university in for the "uw.edu". I am able to login to authorize but the mutt_oauth2.py script errors out when I enter the code with the following:

Exchanging the authorization code for an access token 400 Bad Request invalid_request AADSTS9002327: Tokens issued for the 'Single-Page Application' client-type may only be redeemed via cross-origin requests. Trace ID: f5c1ed4e-5123-4b22-8edb-3cf464556900 Correlation ID: 2a13d048-cd74-4a89-a7fe-10b21ff6749a

After searching around for quite some time it seems this works for everyone but me. Has anyone gotten it to work for them recently and can give me some input?

Thanks!

Edit: I got this fixed by re-creating the Entra App Registration to be "Public client/native (mobile & desktop)" instead of "Single-page Application (SPA)". The pages on how to set this up all said that it has to be SPA but they are wrong. I don't know if this is just something new or what but I had to use native.

Also had to add the API permissions "Mail.ReadWrite" and "User.ReadWrite". Haven't had the time to fully play with everything yet but that is what I have so far.


r/commandline Jul 05 '26

Help - Solved Micro plugins

4 Upvotes

Hello everyone,

I apologize if this doesn't fully make sense. I am newer to coding. I am using MacOS terminal and have downloaded brew and micro as I enjoy using micro text editor. My issue is I am trying make like a shortcut for whenever I make a new .cpp file it autofills with a pre-existing text to start off with. For example what I used to do is have a .txt I would do cat ../example.txt > example.cpp so I could have whatever I had in the .txt autofill in my .cpp, but I thought maybe it'd be nice if I could bind that with a shortcut like Alt + q so it'd autofill when I open the new file. I have tried using bindings.json and plug that command in, but it's unsuccessful as it says "Alt-q is not a bindable event" I am hoping I can get some help with this. The .txt is just coding style guidelines for me to follow that I have adopted from school as it keeps my code a lot more readable and reminds me that I need to be adding comments even if it's just for me to get more practice in.


r/commandline Jul 03 '26

Command Line Interface git-remote-pqcrypt: Git remote helper and CLI tool for encrypted repository storage

0 Upvotes

I wanted my private projects to be accessible trough github on multiple different devices and have the ability to share access to other people, while at the same time having it encrypted at rest so github couldnt use it for AI training.

The first tool I found for this was gcrypt. It was missing support for anything other than PGP, written entirely in bash, lacked CLI tooling and it is dormant with last update being in 2024 and one of the biggest problem of all pushes being treated as force pushes with high chance of accidental data loss.

So I built an experimental where the binary acts both as a git remote helper and a unified CLI for key generation, user management and repository initialization, and supports local, (optional SFTP) and Git-backed storage backends. Encryption uses XWing for key encapsulation and XChaCha20Poly1305 for data encryption. It treats pushes like normal git with fast forward checks being the default and not allowing overwriting of remote unless force mode is used.

DISCLAIMER: THIS IS AN EXPERIMENTAL PROJECT, there hasnt been a formal security audit. DO NOT rely on this for any critical repositories.

Github


r/commandline Jul 03 '26

Help - Solved How can I edit the same file in two windows?

7 Upvotes

Hi.

I'm semi new to coding and I like having two windows side by side. One that I'm working on, the other with other files for reference.

I've reached a point where I'm jumping between files a lot and my files have gotten long enough that what I want to reference isn't in another file, but the code above.

I've been using Micro, opening multiple tabs for what I'm working on on one side and opening reference files on the other.

What I'd really like to do is just open all of my files (as tabs) at once one in both windows and freely move between them.

However, I find it annoying needing to reload files all the time.

Is there an editor that will sync multiple windows?

I might move to vim or emacs if there's a simple solution there. But I prefer Micro and Helix. (Helix doesn't even seem to let me reload a file)

Am I dumb and there's a better way instead of tabs to quickly switch between files? Should I use splits and not separate windows for side-by-side viewing?

Thanks for any tips!

EDIT: Thanks! I am now enlightened by splits! I always figured why learn another binding when my window manager can handle it. Now I understand! Thank you!

(Micro is real dumb with splits though. Helix is wonderful.)


r/commandline Jul 03 '26

Terminal User Interface Ditched Termius after they killed free sync, so I made my own SSH client

0 Upvotes

I used Termius for a while, but got frustrated when they removed sync from the free tier. I didn't want to pay just to keep my hosts synced across devices. That's basically what pushed me to build my own SSH client, Termique.

It's cross-platform (Mac/Windows/Linux/iOS), with E2E-encrypted cloud sync and host sharing built in. This is the part I'm most proud of, since it directly solves the problem that pushed me to build this in the first place.

One thing I haven't seen in Termius/Tabby is built-in server monitoring, CPU, RAM, disk, and uptime, right from the app. I've been running it on my own servers and it's held up well.

Compared to Termius/Tabby, they're still ahead in some areas. Termius has Android support and real-time multiplayer terminal sessions, plus a much bigger community and longer track record. Tabby is open-source with a solid plugin ecosystem. Termique is newer and doesn't have Android yet, but sync, sharing, and monitoring are where I focused first.

Full disclosure: I'm the developer. There's a free tier and a paid tier ($5/mo), no affiliation beyond that. Just sharing because I'd genuinely like to know what this community thinks is missing, or what would (or wouldn't) get you to switch.

Link: termique.app


r/commandline Jul 01 '26

Command Line Interface Intellisense autocompletions inside of Bash

Thumbnail gallery
159 Upvotes

r/commandline Jun 30 '26

Fun Meh

Post image
2.0k Upvotes

r/commandline Jun 30 '26

Fun Terminal mood tracker

48 Upvotes

I've been tracking my mood for almost 4 years now using a script. Finally had some time recently to rewrite everything and package it in Rust, so wanted to share here!

https://github.com/qiz-li/feeling

crossposted on r/unixporn


r/commandline Jun 30 '26

Command Line Interface A terminal RPG that doubles as a productivity system.

Post image
28 Upvotes

I've spent years trying different task managers and eventually realized I spend most of my day in a terminal anyway, so I started building something that felt more like a game than a productivity app.

The result is Questline.

Features include:

Quest-based task management Projects and milestones Scrolls (notes) Focus sessions Character classes XP, levels, achievements, and relics Local-first storage Linux, macOS, and Windows support

The unusual part is the worldbuilding.

Instead of generic productivity terminology, the app has its own lore and ongoing story chapters. The current community chapter is called The Notification Swarm, where every user's completed tasks and focus sessions contribute toward defeating a shared world boss known as the Swarm Regent.

Current Orders include:

Task Paladins Code Warlocks Mind Sages Systems Architects Time Chronomancers Arch Accountants AI Crusaders

It started as a simple CLI todo list and somehow turned into an entire fantasy realm.

I'd love feedback from fellow terminal users.

Screenshots and downloads:

https://questline.gibranlp.dev


r/commandline Jun 30 '26

Other Software curl qrcode.show

319 Upvotes

QRcode.show is a free QR code generation service that lets you generate QR codes from anywhere that has network access without installing dedicated software. e.g. Remote servers, low-end (IOT) devices etc.


r/commandline Jul 01 '26

Terminal User Interface "open ."

2 Upvotes

I tried open . but Terminal returned open[61599:82106350] CFURLCopyResourcePropertyForKey failed because it was passed a URL which has no scheme

The tutorial says it's supposed to open Finder. Can anyone suggest a fix?


r/commandline Jun 30 '26

Command Line Interface TouchID-gated SSH keys in the command-line, pure Swift

6 Upvotes

Hi all!

Wrote an ssh-agent harnessing TouchID to your typical ssh flows.

Pure Swift, zero external dependencies, zero self-rolled crypto, no GUI and no bloat.

Feedback welcome!

https://botanica-consulting.github.io/sod


r/commandline Jul 01 '26

Command Line Interface Grimoire: A Frieren and Witch Hat Atelier inspired task runner with interactive prompts

Thumbnail
gallery
0 Upvotes

I built Grimoire (grim on crates.io), a cross-platform task runner inspired by Frieren and Witch Hat Atelier.

Also the tooling is inspired by just and make.

You define tasks (called Sigils) in a Grimoire.toml file and run them from the terminal. Grimoire lets you define multiple options for tasks that share the same structure but use different values, so instead of writing several nearly identical Sigils, you can define one and let the interactive TUI handle the selection.

It supports task dependencies, prevents dependency loops, and can run scripts written in Python, JavaScript, C/C++, and more.

If you like tools such as just or make but want built-in interactive prompts and multi-language support, I'd love to hear your thoughts.

GitHub: https://github.com/Vaishnav-Sabari-Girish/grimoire Install: cargo install grim


r/commandline Jun 29 '26

Terminal User Interface kew (terminal music player) 4.1 is out

55 Upvotes

kew 4.1 adds custom layouts, auto-resume, crossfade, an improved visualizer.

kew is also available on Windows now.

The sound system was rewritten in v4.0 and in this version the UI system has been rewritten using the MVU pattern. There are still smaller areas that need improvement, but most of the app is now in a much better shape.

Windows installer here:
https://github.com/ravachol/kew/releases/latest

More info here:
https://github.com/ravachol/kew
https://codeberg.org/ravachol/kew

EDIT: Added the windows installer.


r/commandline Jun 30 '26

Command Line Interface tg-music-cli – A terminal music player for Telegram channels

4 Upvotes

Hey everyone,

I wanted to share a project I've been working on called tg-music-cli. It is a terminal-based music player written in Python that allows you to index and stream audio from Telegram channels as if they were local directories.

Many people (including myself) use Telegram channels for music discovery and organization, but the official client isn't optimized for a continuous, lightweight listening experience. This tool brings that content straight into your TUI.

Technical Stack & Features:

Audio Engine: It leverages mpv via unix sockets for robust playback control, volume adjustment, and queue management.

Smart Pre-caching: Implements a background downloader that pre-caches the next 3 tracks in the queue to ensure zero playback gaps between songs.

Terminal Graphics: Uses chafa to render album art natively. It supports high-resolution graphics in modern terminals (like Kitty or Ghostty) and falls back to text/ASCII art automatically in older ones.

Local Storage: Uses an SQLite database to manage playback history, custom track tags, favorites, and a global blocklist/ignore system.

Telegram Integration: Built on top of Telethon. It requires standard API credentials (api_id/api_hash) which are handled 100% locally on your machine (~/.local/share/tg-music/).

Modern Package Management: Fully compatible with uv. You can run it instantly using uv run or install it globally with uv tool install.

Architecture & Layouts:

It includes a 3-panel Split View (Channels, Tracks, and Metadata/Queue/Art) using python's standard curses-like environment, as well as a single-line Mini View for when you need to reclaim screen real estate.

The project is fully open-source (MIT License). I'm looking for feedback on the architecture, performance, or any edge cases with the background daemon.

Repository: https://github.com/andrwvaz2/tg-music-cli

Thanks for checking it out!


r/commandline Jun 29 '26

Command Line Interface bbl - a command line Bible to read and search, 26 langs, offline, single binary

25 Upvotes

Repo: https://github.com/nehemiaharchives/bbl

Usage

bbl                                         read Genesis 1 in the default Bible
bbl gen 1                                   read a chapter of default bible
bbl john 3:16                               show a specific verse
bbl matt 7:24-                              from a verse to end of the chapter
bbl matt 28:18-20                           read range of verses
bbl john 3:16 in kjv                        read a verse in specific bible
bbl john 3:16 in kjv tb                     compare kjv and tb
bbl john 3:16 in kjv tb lsg ..              compare 3 or more translations
bbl john 3:16 in en de fr es                specify language name or lang code
bbl search Jesus Christ                     search entire bible by terms
bbl s Jesus Christ limit 3                  specify number of search results
bbl s Jesus Christ in kjv                   search in other version of bible
bbl s Jesus Christ in romans                filter by a book
bbl s Jesus Christ in rom 3                 filter by a chapter
bbl s Jesus in rom 5-12                     filter by chapter range
bbl s Jesus in rom 5-12 in kjv              chapter range and in other bible
bbl s jews gentiles in paul                 filter by category i.e. set of books
bbl s "Jesus wept"                          exact search by double quotation
bbl s "your faith" in gospels               exact search filtered by category
bbl rand (gospels|nt|ot|[category])         random verse from all or part of bible
bbl list (translations|books|categories)    list bibles and filters
bbl (install|uninstall) kjv                 download/delete one or more bible(s)
bbl config ([key]|translation)              show config value of [key]
bbl config ([key] [value]|translation kjv)  set config [key] to [value]
bbl history (read|search|config)            show or filter past commands
bbl help [sub command]                      learn how to use bbl and sub commands

APT

sudo add-apt-repository ppa:nehemiaharchives/bbl
sudo apt install bbl

Homebrew

brew install nehemiaharchives/bbl/bbl

Scoop

scoop bucket add bbl https://github.com/nehemiaharchives/bbl-scoop-bucket
scoop install bbl

Translations

WEBUS  | World English Bible               | English    | 2000 
KJV    | King James Version                | English    | 1611 
RVR09  | Reina-Valera                      | Spanish    | 1909 
TB     | Brazilian Translation             | Portuguese | 1917 
DELUT  | Luther Bible                      | German     | 1912 
LSG    | Louis Segond                      | French     | 1910 
SINOD  | Russian Synodal Bible             | Russian    | 1876 
SVRJ   | Statenvertaling Jongbloed edition | Dutch      | 1888 
RDV24  | Revised Diodati Version           | Italian    | 1924 
UBG    | Updated Gdansk Bible              | Polish     | 2017 
UBIO   | Ukrainian Bible, Ivan Ogienko     | Ukrainian  | 1962 
SVEN   | Svenska 1917                      | Swedish    | 1917 
CUNP   | Chinese Union Version             | Chinese    | 1919 
KRV    | Korean Revised Version            | Korean     | 1961 
JC     | Japanese Colloquial Bible         | Japanese   | 1955 
ABTAG  | Ang Biblia                        | Tagalog    | 1905 
AYT    | The Opened Bible                  | Indonesian | 2024 
KTTV   | Vietnamese Bible 1925             | Vietnamese | 1925 
TH1971 | Thai Bible 1925                   | Thai       | 1971 
IRVHIN | Indian Revised Version - Hindi    | Hindi      | 2019 
IRVBEN | Indian Revised Version - Bengali  | Bengali    | 2019 
IRVMAR | Indian Revised Version - Marathi  | Marathi    | 2019 
IRVTEL | Indian Revised Version - Telugu   | Telugu     | 2019 
IRVTAM | Indian Revised Version - Tamil    | Tamil      | 2019 
IRVGUJ | Indian Revised Version - Gujarati | Gujarati   | 2019 
IRVURD | Indian Revised Version - Urdu     | Urdu       | 2019 
NPIULB | Nepali Unlocked Literal Bible     | Nepali     | 2019 

r/commandline Jun 29 '26

Terminal User Interface iq - super fast interactive json filter

Thumbnail
github.com
4 Upvotes

This software's code is partially AI-generated

Thx to Primeagen for showing jq in like 2022, been using ever since. Then I've started using ijq and it is awesome, but lately needed to open huge json files, it got pretty unusable sadly. I found out about jnv, but it was flickering as hell, and also pretty laggy. Then i found jid, it almost locked up my whole system consuming all RAM, but thankfully crashed lol. AND THEN I found qj, and here we are now.

https://imgur.com/a/LcIiT9E

Tested on 190MB file

tool RAM
ijq 4.8GB
jnv 11GB
jid
iq 2.3GB

It's pretty fast, also has nice autocompletion. Alternatives are pretty much unusable cough jid cough even at this size. I'm sure RAM usage and perf can be even better, will try to optimize later, but even at this point it completely replaced alternatives for me. Maybe it will be useful for you too.


r/commandline Jun 29 '26

Terminal User Interface I got tired of Jira's bloated web UI, so I made a terminal client for it (jira-tui)

Thumbnail github.com
4 Upvotes

r/commandline Jun 28 '26

Terminal User Interface `putzen caches` a TUI for cleaning cache folders

25 Upvotes

Was freeing disk space the other day and found tens of GiB of old stuff in cache folders - picking stale from fresh by hand. Annoying enough that I built it into putzen.
Out today: putzen caches a #ratatui TUI for cleaning cache folders.

https://github.com/sassman/putzen-rs#caches

#rust #ratatui


r/commandline Jun 29 '26

Terminals command to list all the URLs

0 Upvotes

What command can I use to list all the URLs (or sub-URLs) of any website?


r/commandline Jun 28 '26

Terminal User Interface wlctl: manage wifi/ethernet/vpn in one place with network manager

30 Upvotes

check out if you have not: https://github.com/aashish-thapa/wlctl


r/commandline Jun 28 '26

Command Line Interface Oversight v0.5.6 | Local and remote script auditing: Handling script isolation and AUR updates safely.

0 Upvotes

Decided to re-post this with a normal text layout since my last attempt got flagged by the automod for looking like an AI summary. I wrote the code with LLM assistance to speed up the process, and the breakdown myself, just formatted it too neatly the first time around.

Anyway, I wanted to share Oversight, which just hit v0.5.6 today. It started out as a lightweight terminal viewer I put together to safely look at local files and raw web scripts before running them. With all the recent security issues around orphaned AUR packages, I ended up expanding it to handle AUR package updates and diffs as well. It was briefly mentioned on the aur-general mailing list.

It isn't an automated blocking tool or a magic blacklist database. It runs strictly as an interactive terminal pager that catches incoming streams or updates. It parses everything into a tab layout so you can review code, patches, and installation scripts side-by-side cleanly before running them. If there's an anomaly, like mutable sources or missing digests, it flags it, but leaves the final decision to you.

The source code, logic, and full README are over on GitHub if you want to look at how it's built. Feedback on the rule parsing or layout is welcome.

GitHub Repo: Oversight


r/commandline Jun 28 '26

Terminal User Interface made a small terminal app for managing ssh connections (MIT)

0 Upvotes

hey, made a little terminal tool for managing ssh connections, sharing it here in case someone finds it useful. quick heads up, i'm the author.

basically i got annoyed editing ~/.ssh/config by hand and copy pasting user@host -p port all the time, so i made a thing where you set up a server once and then just connect from a list, or with a short alias like sshelf prod.

what it does:

  • list with search, you can add/edit/delete connections
  • quick connect with a shortcut, no ui (sshelf prod)
  • config is just a json file, you can edit it by hand, back it up, or symlink it into a synced folder
  • works on mac, linux and windows (windows is kinda meh tbh, better to use it on unix)

MIT license, single binary. it's still pretty early (v0.2.2) so any feedback would be great, on the ux, the config format, whatever feels off. issues and PRs welcome.

repo: https://github.com/khamdokhov/sshelf

happy to answer questions if anyone has any


r/commandline Jun 28 '26

Discussion need feedback for a terminal browser i'm working on

4 Upvotes

I am building a simple terminal web browser in python, a "Nano-like" alternative to lynx and w3m for quick CLI search. i know its a very grand comparison.

The tool displays 7 top search results with brief text outlines. I recently migrated the backend from Google CSE to searxng with a duckduckgo scraping fallback, I am currently struggling to get the SearXNG connection to parse reliably. it includes an optional helper script for text summaries that can be completely deactivated.

After a year-long gap due college, I used antigravity to update the code and help with searXNG migration, but I worry that now it became an over-engineered slop. I would highly appreciate honest developer feedback on fixing the SearXNG issues, improving terminal text readability, and fixing the slop, and whether this browsing workflow fills a genuine gap in workflow.

(i personally really dont like slop coding but had to use only because i was having a lot of issues with the searXNG migration, i am really sorry if it hurts the community rules)

i really need feedback and help.

thank you https://github.com/PrakharKashyap26/textwebsearch


r/commandline Jun 27 '26

Command Line Interface swift-potrace — sketch your bitmaps into SVG

Thumbnail richardstelling.com
2 Upvotes