Utils CLI

Star pavinduLakshan/utilscli on GitHub

The terminal-native day-to-day utility toolbox for developers.

Encode, decode, format, generate, and inspect common support data without leaving your shell. Just run uc to show the interactive terminal UI, or use individual commands directly when you already know what you need.

Utils CLI terminal UI showing available developer utility commands
The terminal UI opens with uc.
uc api Postman-style terminal API client with request history, headers, and response panels
The Postman-style API client opens with uc api.

Install

curl -fsSL https://raw.githubusercontent.com/pavinduLakshan/utilscli/main/install.sh | sh

The installer downloads the correct binary from the latest GitHub release, installs it to ~/.local/bin, and adds that location to your shell startup file when needed. Open a new terminal afterwards.

uc b64-encode osidosodi
# b3NpZG9zb2Rp

Available commands

Every tool in the terminal UI is also available as an individual command, so workflows can be scripted or run directly from your shell.

b64-encode

Encode text as Unicode-safe Base64.

uc b64-encode "hello"

b64-decode

Decode padded or unpadded Base64 text.

uc b64-decode aGVsbG8

b64url-encode

Encode URL-safe Base64 without padding.

uc b64url-encode "hello"

b64url-decode

Decode URL-safe Base64 text.

uc b64url-decode aGVsbG8

url-encode

Percent-encode a URL component using RFC 3986 rules.

uc url-encode "hello world"

url-decode

Decode a percent-encoded URL component.

uc url-decode hello%20world

html-encode

Escape HTML special characters.

uc html-encode '<a href="/">'

html-decode

Decode common HTML entities.

uc html-decode '&lt;hello&gt;'

jwt

Decode a JWT header and payload without verifying its signature.

uc jwt '<header>.<payload>.<signature>'

saml

Decode Base64 SAML XML, including Redirect-binding deflate.

uc saml '<base64-saml-message>'

json-pretty

Validate and indent JSON.

uc json-pretty '{"enabled":true}'

json-minify

Validate JSON and remove insignificant whitespace.

uc json-minify '{ "enabled": true }'

xml-pretty

Validate and indent XML.

uc xml-pretty '<root><item>one</item></root>'

xml-minify

Validate XML and remove whitespace-only text nodes.

uc xml-minify '<root> <item>one</item> </root>'

hash

Generate MD5, SHA-1, SHA-256, and SHA-512 hashes.

uc hash "hello"

uuid

Generate a version 4 UUID; supports --count up to 100.

uc uuid --count 3

password

Generate a random password; supports --length and --symbols.

uc password --length 24 --symbols

timestamp

Convert a Unix timestamp or an RFC 3339 date.

uc timestamp 1710000000

totp

Generate a TOTP code and time left from a Base32 secret; supports -n digits and -e expiry seconds.

uc totp --secret JBSWY3DPEHPK3PXP -n 6 -e 30

api

Open a Postman-style request builder UI.

uc api