@flxify/cli
v1.2.0
Published
Terminal text utility with 112 transformation scripts, Vim keybindings, command palette, and 6 themes
Maintainers
Readme
@flxify/cli
A terminal-based text utility with 111 transformation scripts, Vim keybindings, and a command palette — the same power as flxify.dev, right in your terminal.
Install
npm install -g @flxify/cliUsage
flxify # Launch with empty editor
flxify file.txt # Open a file
flxify --theme cyber-neon # Launch with a specific themeFeatures
- 112 scripts — JSON formatting, Base64, hashing, case conversion, sorting, JWT decode, and more
- Command palette (Ctrl+B) with fuzzy search across all scripts
- Vim keybindings — Normal, Insert, Visual, and Visual-Line modes
- 6 themes — Standard Dark/Light, Cyber Neon, Nordic Frost, Monokai Pro, OLED Stealth
- File editing — open, edit, and save files with Ctrl+S
- Unsaved changes protection — prompts before quitting with unsaved edits
- Search —
/in Normal mode for incremental search withn/Nnavigation
Key Bindings
| Key | Action |
|-----|--------|
| Ctrl+B or Ctrl+P | Open command palette |
| Ctrl+S | Save file (prompts for filename if none open) |
| Ctrl+T | Cycle theme |
| Ctrl+Q or Ctrl+C | Quit |
| i, a, o, O | Enter Insert mode |
| Escape | Return to Normal mode |
| v | Visual mode |
| V | Visual Line mode |
| dd, yy, p | Delete/yank/paste lines |
| / | Search |
| n / N | Next/previous search result |
| u / Ctrl+R | Undo/redo |
Vim Command Mode
Press : in Normal mode to open the command bar:
| Command | Action |
|---------|--------|
| :w | Save file |
| :wq | Save and quit |
| :x | Save and quit (alias for :wq) |
| :q | Quit (warns if unsaved changes) |
| :q! | Force quit without saving |
Themes
Switch themes with Ctrl+T or launch with --theme <name>:
standard-dark(default)standard-lightcyber-neonnordic-frostmonokai-prooled-stealth
Theme preference is saved to ~/.config/flxify/config.json.
CLI Options
Usage:
flxify [options] [file]
Options:
-h, --help Show help
-v, --version Print version
-t, --theme <name> Set theme on startup
Arguments:
[file] File path to openHow Scripts Work
Open the command palette (Ctrl+B), search for a script, and press Enter. The script transforms your editor content (or just the visual selection if one is active).
Scripts use the same API as the web app and VS Code extension:
function main(state) {
state.text = state.text.toUpperCase();
}Requirements
- Node.js >= 18.0.0
- A terminal with truecolor support (most modern terminals)
Related
- Web app: flxify.dev
- VS Code extension: Marketplace
- GitHub: ahmedeltaweel/flxify
