Skip to content
86% off$349 $48.86code BF2026

Docs

Bytepliers docs37 pages

The bytepliers CLI: install, commands and exit codes

Install the bytepliers CLI, run transforms, recipes and scripts from Terminal on your Mac, pipe input, read exit codes, and fix license and PATH errors.

Updated 8 min read

On this page

This page shows how to install the bytepliers command-line tool (the bytepliers CLI) and use it in Terminal and shell scripts. It covers transforms, detection, JWTs, hashes, IDs, timestamps, recipes and scripts. The command ships inside the app at Bytepliers.app/Contents/Helpers/bytepliers. It works while the app is closed, makes no network requests, and never touches the Keychain.

Before you start

  • Open Bytepliers at least once. The app writes a small license pass that the command checks (see Why the bytepliers CLI says it needs a license).
  • You need an active trial or a MacSuite license. help, version and list work without one.

Install the bytepliers command

  1. In Bytepliers, open Settings (⌘, or Command-Comma) and click the Integrations tab.
  2. Under Command-Line Tool, click Install….
  3. Bytepliers links the command into /usr/local/bin. If that folder isn't writable, the Install the bytepliers command alert offers two choices:
    • Install in /usr/local/bin… asks for an administrator password, then creates the link there.
    • Install in ~/.local/bin creates the link in your home folder without a password. That folder must be on your shell's PATH.
  4. Open a new Terminal window and check that it works:
sh
bytepliers version
Settings Integrations tab with the Command-Line Tool row, its Install button and an example command

The install is a symbolic link to the helper inside the app. If a file named bytepliers that isn't a Bytepliers link already exists in the chosen folder, Bytepliers leaves it alone.

Add ~/.local/bin to your PATH

If you chose ~/.local/bin and Terminal says command not found, add the folder to your PATH. The default shell on current macOS is zsh. This command appends one line to ~/.zshrc:

sh
echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.zshrc

Open a new Terminal window afterwards. To undo, open ~/.zshrc in a text editor and delete that line.

Run a transform

The basic form is:

sh
bytepliers <transform> [--arg A] [--arg2 B]

-a and -b are short for --arg and --arg2. Some examples:

sh
echo '{"b":2,"a":1}' | bytepliers json-format
pbpaste | bytepliers base64-decode
bytepliers sql-format -i query.sql
bytepliers url-encode "a b&c"
pbpaste | bytepliers yaml-to-json | pbcopy

In order, these pretty-print JSON from a pipe, decode Base64 from the clipboard, format a SQL file, encode text given as an argument, and convert YAML on the clipboard to JSON and copy it back.

To see every transform name, run:

sh
bytepliers list transforms

Add --json for machine-readable output. bytepliers list tools and bytepliers list recipes work the same way.

Transform names

These are the same 94 transforms you can use as Pipelines steps. Pipelines and recipes lists each one with its title.

GroupCLI names
JSON & datajson-format, json-minify, json-sort-keys, json-path, jq, json-to-yaml, yaml-to-json, json-to-swift, json-to-typescript, json-to-csv, csv-to-json
Encode & decodebase64-encode, base64-decode, base64url-encode, url-encode, url-decode, html-encode, html-decode, escape, unescape, escape-unicode, hex-encode, hex-decode, gzip, gunzip, jwt-payload, jwt-header
Hashmd5, sha1, sha256, sha512
Casecamel-case, snake-case, kebab-case, constant-case, pascal-case, title-case, upper, lower
Linessort-lines, sort-lines-desc, dedupe-lines, reverse-lines, trim-lines, remove-empty-lines, number-lines, prefix-lines, lines-not-in-list, lines-in-list
Format codesql-format, sql-minify, xml-format, xml-minify, html-format, html-minify, css-format, css-minify, js-format, js-minify, markdown-to-html
Convertcurl-to-swift, curl-to-fetch, curl-to-python, timestamp-to-iso, cert-report, remove-invisibles
Find & replaceregex-replace, regex-extract, regex-list, replace
Scriptsscript

gzip compresses the input and outputs Base64 ("Gzip → Base64"). gunzip takes Base64 and decompresses it ("Base64 → Gunzip").

Transforms that take arguments

CLI name--arg--arg2
json-pathJSONPath expression (default in Pipelines: $..id)None
jqjq filter (default in Pipelines: .[])Options: -r, -c, -S, -j, --tab
prefix-linesPrefix (default in Pipelines: - )None
lines-not-in-list, lines-in-listThe other list, one item per line or a, b, cNone
regex-replacePatternTemplate (for example $1)
regex-extractPattern (returns group 1 if present, else the match; up to 10,000 results)None
regex-listPatternTemplate (for example $0)
replaceFindReplace with
scriptScript nameNone

Put arguments in single quotes so the shell doesn't expand $ or *:

sh
bytepliers json-path --arg '$.items[*].name' -i response.json
pbpaste | bytepliers regex-replace --arg '(\w+)@(\w+)' --arg2 '$2'

Built-in commands: detect, jwt, hash, uuid and ts

These commands don't need a transform name.

detect

sh
pbpaste | bytepliers detect
pbpaste | bytepliers detect --json

This ranks what the input looks like and prints the top five matches with reasons. In text mode each line is kind confidence reason. Use --json when another script will read the result.

jwt

sh
pbpaste | bytepliers jwt
pbpaste | bytepliers jwt --header

This decodes a JWT's payload, or its header with --header. To check a signature, use the JWT Decoder tool in the app.

hash

sh
bytepliers hash -i notes.txt
printf 'hello' | bytepliers hash -a md5

This hashes the input with SHA-256 by default. -a picks the algorithm. The help text lists md5, sha1, sha256 and sha512, but the command also accepts sha224, sha384, sha3-256, sha3-512, keccak-256, blake2b-256, crc32, adler-32 and xxhash64.

The CLI only reads UTF-8 text up to 100 MB (see Limits), so it can't hash a .zip, .dmg or other binary file. Use the File tab of Hash Generator in the app for those, or see how to check a SHA-256 checksum on Mac.

uuid

sh
bytepliers uuid
bytepliers uuid --v7 -n 10
bytepliers uuid --ulid
bytepliers uuid -u

This generates identifiers. Version 4 UUIDs are the default (--v4). --v7 makes version 7 UUIDs and --ulid makes ULIDs. -n sets the count (1 to 10,000). -u outputs uppercase; ULIDs are always uppercase.

ts (or timestamp)

sh
bytepliers ts
bytepliers ts 1700000000
bytepliers timestamp "2026-11-11T10:00:00Z"

This converts a timestamp or date, or the current time if you give no value. It prints five values: unix, unix-ms, iso-utc, iso-local and relative.

Run recipes and scripts

Recipes

Save a recipe in the Pipelines tool first, then run it by name:

sh
pbpaste | bytepliers recipe "Gunzip API payload" | pbcopy

"Gunzip API payload" is one of the example recipes that ship with the app. Quote names that contain spaces. The recipe runs its steps in order, stops at the first step that fails, and has the same 2 MB limit per step as in the app. Recipes are stored in ~/Library/Application Support/Bytepliers/recipes.json. See Pipelines and recipes for how to build them.

User scripts

sh
pbpaste | bytepliers script --arg "Reverse Characters"

script needs --arg with the script's name.

Gap to know about: the command only looks in the default scripts folder, ~/Library/Application Support/Bytepliers/scripts/. If you chose a custom folder in Settings ▸ Advanced ▸ Scripts, the app finds your scripts but the command does not, and it fails with "No script named “…” in <folder>". For now, keep the scripts you call from Terminal in the default folder, or click Use Default in that Settings section.

How input works

The command takes its input from the first of these that you provide:

  1. Text arguments: bytepliers base64-encode "hello"
  2. A file: -i data.json (or --input). Use -i - to read standard input explicitly.
  3. Piped standard input: cat data.json | bytepliers json-format
OptionWhat it does
-i, --input <file>Read input from a file (- means stdin)
--rawKeep a trailing newline from stdin or a file
-n, --no-newlineDon't add a newline after the output
--Treat everything after it as literal text, even if it starts with -

For example, bytepliers base64-encode -- -n encodes the text -n instead of reading it as an option.

Errors go to stderr, prefixed bytepliers:, with line:col: positions where they apply. A pipe only receives the result, and 2>/dev/null hides the errors.

Limits

  • Files over 100 MB are refused before they are read ("the file is larger than 100 MB").
  • Transforms and recipes refuse input over 2 MB, the same limit as in the app: "Input is 3.1 MB — the limit for live conversion is 2 MB."
  • Files must be UTF-8 text. Anything else fails with "not UTF-8 text".

Exit codes

CodeMeaning
0Success
1The transform failed (for example, invalid JSON)
64Usage error
66No input was given
77Needs a license or an active trial

In a script:

sh
if formatted=$(bytepliers json-format -i payload.json); then
  printf '%s\n' "$formatted" > payload.pretty.json
else
  echo "payload.json could not be formatted" >&2
fi

Why the bytepliers CLI says it needs a license

The command never goes online, so it can't check your license itself. Instead it reads a pass the app writes to ~/Library/Application Support/Bytepliers/cli-access.json. The file holds only dates.

  • During the trial, the pass is valid until the trial ends.
  • With a license, the pass is valid for 30 days.
  • The app refreshes the pass every time it becomes active.

If you see one of these messages, open Bytepliers (or switch to it) and run the command again:

  • "Open Bytepliers once to enable the command-line tool." No pass exists yet on this Mac.
  • "Bytepliers needs a license or an active trial. Open Bytepliers to continue." The pass has expired: your trial ended, or you haven't opened the licensed app in 30 days. Exit code 77.
  • "The command-line tool's access file is unreadable" (or "invalid"). Opening the app writes a new pass.

If the trial is over and you haven't entered a key, choose Enter License… in the app menu first.

Use the command from Raycast and Alfred

The recipe scripts Bytepliers exports for Raycast run pbpaste | bytepliers recipe "<name>" | pbcopy, and the Alfred workflow's bp keyword runs bytepliers list --alfred. Both need the command installed. See Shortcuts, Services, Raycast and Alfred.

Uninstall the command

  1. Open Settings ▸ Integrations.
  2. Under Command-Line Tool, click Uninstall.

This removes the link only if it points to a Bytepliers helper; any other file with the same name stays. Do this before you move Bytepliers to the Trash, because the link points into the app.

If you already deleted the app, check what is at the path, then remove the leftover link by hand:

sh
ls -l ~/.local/bin/bytepliers

ls -l shows whether it is a link and where it points. This next command deletes the file at that path:

sh
rm ~/.local/bin/bytepliers

For an install in /usr/local/bin, use rm /usr/local/bin/bytepliers, with sudo in front if that folder isn't writable for your account.

Troubleshooting

ProblemCause and fix
zsh: command not found: bytepliersThe install folder isn't on your PATH. Add ~/.local/bin as shown above, or install into /usr/local/bin. Open a new Terminal window afterwards.
The command stopped working after you moved the appThe link still points to the old location. Install it again from Settings ▸ Integrations; if that reports another file is in the way, remove the old link by hand (see above) and try again.
"The command-line tool is missing from this copy of Bytepliers."The helper isn't inside the app. Download Bytepliers again from macsuite.app.
"Couldn't install the command in ~/.local/bin." / "Another file named bytepliers is already there."A different file already uses that name. Rename or remove it yourself, or choose the other folder.
"Couldn't change /usr/local/bin."The administrator step didn't finish. Try again, or choose Install in ~/.local/bin.
"unknown command “…”. Run bytepliers list to see every transform."The name isn't a CLI name. Use json-format, not the title "Format JSON".
"no input: pipe text in, pass -i <file>, or give the text as an argument"Nothing reached the command. Check the pipe or the file path. Exit code 66.
"not UTF-8 text"The file is binary or in another encoding. Open it in the app instead.
"No script named “…” in <folder>"The script isn't in the default scripts folder, or the name doesn't match. See User scripts.
Output has an extra or missing trailing newlineAdd -n to drop the output newline, or --raw to keep the input's trailing newline.

Every app.
One purchase.