thyra
v1.1.1
Published
Simple project folder opener CLI
Maintainers
Readme
thyra
A tiny CLI to bookmark project folders under short names and open them instantly in your favorite editor.
thyra is designed for developers who hop between multiple projects and want a faster, keyboard-only way to jump straight into a folder—no file explorer, no hassle.
Features
- Save any directory under a short, memorable name
- Open saved directories instantly from the terminal
- Check the CLI version easily (
thyra version) - Works with any editor (VS Code, WebStorm, Vim, Sublime Text, Emacs, etc.)
- Stores configuration in your user directory
- Cross-platform: macOS, Linux, Windows
- Simple, fast, no fluff
Installation
npm install -g thyraRequires Node.js v14+.
After install, the thyra command will be available system-wide.
Quick Start
# Save projects
thyra config blog ~/projects/personal-blog
thyra config api /var/www/company/api
# Open instantly
thyra open blog
# See everything you saved
thyra list
# Check thyra version
thyra versionUsage
Save a project folder
thyra config <name> <path>Examples
thyra config blog ~/projects/personal-blog
thyra config api /var/www/company/apiOpen a saved project
thyra open <name>Example
thyra open blogThis opens the saved path in your configured editor.
List all saved projects
thyra listSample output
blog → /Users/you/projects/personal-blog
api → /var/www/company/apiShow CLI version
thyra --versionOutput
v1.0.5This shows the currently installed version of thyra.
Help
thyra --helpEditor Configuration
By default, thyra uses VS Code (code) if it’s available.
To use a different editor, set the THYRA_EDITOR environment variable:
# one-off for current shell
THYRA_EDITOR=webstorm thyra open blog
# or set it permanently (bash/zsh)
export THYRA_EDITOR=webstormCommon editor commands
| Editor | Command |
| ------------------ | ------------- |
| Visual Studio Code | code |
| WebStorm | webstorm |
| PhpStorm | pstorm |
| Vim / Neovim | vim, nvim |
| Sublime Text | subl |
| Emacs | emacs |
Tip (Windows, PowerShell):
setx THYRA_EDITOR "webstorm"How It Works
thyra stores your mappings in a JSON file:
| Platform | Path |
| ------------- | ---------------------------- |
| macOS / Linux | ~/.config/thyra/thyra.json |
| Windows | %APPDATA%\thyra\thyra.json |
Each entry maps a name → absolute path.
When you run thyra open <name>:
- thyra reads the target path from the config
- thyra launches your editor with that directory
Example Workflow
# Save projects
thyra config frontend ~/code/myapp/frontend
thyra config backend ~/code/myapp/backend
thyra config docs ~/code/myapp/docs
# Hop around instantly
thyra open frontend
thyra open backend
thyra open docs
# View all
thyra list
# Check thyra version
thyra versionTroubleshooting
Command not found Ensure global npm binaries are on your PATH. On macOS/Linux, this is often
$HOME/.npm-global/binor the Node version manager’s bin directory.Editor doesn’t open Confirm the editor command works by itself (e.g., run
webstorm .orcode .in any folder). If it does, setTHYRA_EDITORto that command.Paths with spaces Wrap the path in quotes when configuring:
thyra config design "/Users/you/Work/Client A/Design"
Uninstall
npm uninstall -g thyraYour config file is left in place so you can reinstall later. Remove it manually if you want a clean slate.
Keywords
cli, command-line, open-folder, project-manager, developer-tools, shortcuts, vscode, jetbrains, vim, productivity, workspace, folder-aliasAuthor
- Email: [email protected]
- GitHub: github.com/udithavithanage
License
MIT License – You are free to use, modify, and distribute this tool.
