cdChange working directory. Supports ~, -, .., and absolute or relative paths.
cd <dir><dirname>Auto-cd: type a directory name directly to change into it without the cd command.
<dirname>pushdPush the current directory onto the stack and change to the given directory.
pushd <dir>popdPop the top directory from the stack and cd into it.
popddirsDisplay the current directory stack. Entries are in pushd order.
dirspwdPrint the absolute path of the current working directory.
pwdlsList directory contents as a structured table with name, type, size, and modified columns.
ls [-al] [path ...]zSmart jump to a directory using frecency-based fuzzy matching. Learns from your cd history.
z <query...>ziInteractive fuzzy directory picker powered by fzf-style UI. Shows all visited directories.
zi [query]Variables & Environment
11exportSet or list environment variables. Without arguments, prints all exported variables.
export [name=val]unsetRemove a shell variable or function from the current environment.
unset <name>readonlyMark a variable as read-only. Any subsequent assignment will fail.
readonly <name>constDeclare a constant (immutable) variable. Cannot be reassigned after creation.
const <name>=<val>with-envExecute a block with scoped environment variables. Variables revert after block ends.
with-env { KEY: val } { cmd }localDeclare a variable scoped to the current function. Not visible outside the function.
local <name>=<val>declareDeclare variables with type attributes. Supports arrays, associative arrays, exports, and dedup.
declare [-xaAU] vartypesetSet variable attributes (zsh-compatible). Often used with -U for deduplication.
typeset [-U] varsetSet shell runtime options. Controls error handling, tracing, and safety behaviors.
set [options]umaskDisplay or set the file creation permission mask. Affects permissions of newly created files.
umask [mode]ulimitGet or set resource limits for the current shell process (file size, open files, memory, etc).
ulimit [opts] [val]Aliases & Customization
5aliasCreate, list, or remove command aliases. Supports suffix aliases with -s.
alias [-s] [n=cmd]unaliasRemove one or all aliases from the current session.
unalias [-a] <name>customizeLaunch the interactive configuration wizard. Shorthand for 'config wizard'.
customizeconfigManage shell configuration. Subcommands include wizard, show, reset, edit, save, and set.
config <sub> [key] [value]set-themeApply a built-in color theme to the shell prompt and UI.
set-theme <name>I/O & Evaluation
16echoPrint arguments to stdout. Supports escape sequences with -e and raw mode with -E.
echo [-neE] [str]printfFormat and print data using C-style format specifiers (%s, %d, %f, %x).
printf <fmt> [...]printzsh-style print with options for per-line output, raw mode, and prompt expansion.
print [-nlrP] [...]readRead a line of input from stdin into a variable.
read [-rsp] <var>sourceExecute commands from a file in the current shell context. Variables and functions persist.
source <file>.Execute commands from a file in the current shell (alias for source).
. <file>evalEvaluate a string as a shell command. Useful for dynamically constructed commands.
eval <string>execReplace the current shell process with the given command. Does not return.
exec <cmd>testEvaluate a conditional expression. Returns exit code 0 (true) or 1 (false).
test <expr>[Evaluate a conditional expression (alias for test). Must end with ].
[ <expr> ]typeShow how a command name is interpreted (alias, function, builtin, or external).
type <name>doExecute a command string or block. Useful for inline command evaluation.
do { cmd }ignoreSilently discard all output from the pipeline. Useful for suppressing noisy commands.
... | ignoreinputPrompt the user for interactive text input and return the entered string.
input [prompt]input-listPresent an interactive menu of items and return the user's selection.
input-list [items]useImport a module or file into the current scope. Brings exported commands and variables.
use <module>History
3historyView command history or clear it. Shows numbered entries with timestamps.
history [-c] [-n N]fcList or re-edit recent history commands. Opens in $EDITOR for editing before re-execution.
fc [-l] [-r] [range]!!History expansion shortcuts. !! repeats last command, !n repeats command N, ^old^new substitutes.
!! / !n / !str / ^old^newJob Control
9jobsList all active background jobs with their status, PID, and command.
jobsfgBring a background job to the foreground. Resumes a stopped job.
fg [%job]bgContinue a stopped job in the background.
bg [%job]waitWait for one or all background jobs to complete before continuing.
wait [job|pid]disownRemove a job from the job table so it is not killed when the shell exits.
disown [%job]killSend a signal to a process or job. Default signal is SIGTERM (15).
kill [-sig] targettrapSet or display signal handlers. Run a command when a specific signal is received.
trap [cmd] [sig]schedSchedule a command for future execution after a delay or at a specific time.
sched [+s|HH:MM] cmdsuspendSuspend the current shell process (send SIGTSTP to self).
suspendFlow Control
12ifConditional execution with if/elif/else branches. Executes the block whose condition is true.
if cond; then ... fiforIterate over a list of values, executing the body block for each item.
for VAR in LIST; do ... donewhileLoop while a condition is true. Also supports until (loop until true).
while cond; do ... donecasePattern matching on a value. Each branch is a glob pattern followed by commands.
case WORD in ...) ;; esacmatchModern pattern matching expression. More powerful than case with structured pattern support.
match VAL { pat => expr }tryError handling with try/catch/finally blocks. Catch block receives the error.
try { } catch { } finally { }defDefine a custom command with named and typed parameters.
def name [...params] { body }selectPresent a numbered menu of items for the user to choose from.
select VAR in LIST[[Extended conditional test with pattern matching and logical operators. More powerful than [.
[[ expression ]]returnReturn from the current function with an optional exit status code.
return [status]breakExit from the innermost loop (for, while, until). Optional N exits N levels.
break [n]continueSkip the rest of the current loop iteration and jump to the next one.
continue [n]Scripting
15getoptsParse positional parameters according to an option string. Used in scripts for argument handling.
getopts optstr varshiftShift positional parameters left by N positions (default: 1). $2 becomes $1, etc.
shift [n]hashManage the shell's command hash table. Speeds up command lookups by caching paths.
hash [name | -r]timesPrint accumulated CPU times for the shell and all child processes.
timestimeMeasure the wall-clock and CPU execution time of a command.
time <command>trueReturn exit code 0 (success). Useful as a no-op condition in loops.
truefalseReturn exit code 1 (failure). Useful for testing error paths.
false:No-op command that returns success (exit 0). Used as a placeholder in scripts.
:bindkeyList or set custom keybindings for the line editor. Bind key sequences to widgets.
bindkey [seq] [widget]commandRun a command bypassing shell functions and aliases. With -v, show command location.
command [-v] cmdbuiltinRun a shell builtin command explicitly, bypassing any functions or aliases with the same name.
builtin <cmd>autoloadMark a function for lazy-loading from $fpath. Function is loaded on first call.
autoload [-U] fnrepeatExecute a command N times in sequence.
repeat N cmdwhichLocate a command and show its full path, or indicate if it is a builtin/alias/function.
which <name>whenceLocate a command (zsh-compatible alias for which). Shows how a name resolves.
whence <name>Security
2auditTamper-evident audit logging with SHA-256 hash chain. Records all command executions.
audit <sub>policyCommand execution policy engine. Allow, deny, or require confirmation for specific commands.
policy <sub>System
22sysSystem information dashboard showing host, CPU, memory, disk, network, and battery.
sys [tools]uninstallInteractive wizard to cleanly uninstall zy shell, removing configs and restoring default shell.
uninstallexitExit the shell with an optional exit code. Running jobs are warned about.
exit [code]helpShow general help or detailed per-command help with syntax, examples, and flags.
help [command]featureToggle runtime feature gates on or off. Controls experimental or optional behaviors.
feature <name> [on|off]hookRegister shell lifecycle hooks that run on events like precmd, preexec, chpwd, and exit.
hook <event> <cmd>httpBuilt-in HTTP client supporting GET, POST, HEAD, PUT, DELETE methods.
http <method> <url>pluginPlugin management system. List, enable, disable, and reload shell plugins.
plugin <sub>skillExecute and manage shell skills (reusable task automation scripts).
skill <name>statsShow command usage statistics including most-used commands, session time, and command counts.
statsclearClear the terminal screen and move cursor to the top-left.
clearis-adminCheck if the current shell is running with root/administrator privileges.
is-adminportFind and return a free TCP port number on the local machine.
portpsList all running processes as a structured table with PID, name, CPU, and memory.
pssleepPause execution for a specified duration. Supports units like sec, ms, min.
sleep <duration>term-sizeGet the terminal dimensions (columns and rows) as a record.
term-sizeunameDisplay system and kernel information (OS name, version, architecture).
uname [-a]url-decodeDecode a percent-encoded URL string back to its original form.
url-decode <str>url-encodePercent-encode a string for safe use in URLs.
url-encode <str>url-parseParse a URL into its components (scheme, host, port, path, query, fragment).
url-parse <url>versionShow the zy shell version, build date, commit hash, and feature flags.
versionwhoamiPrint the current username.
whoamiZSH Compatibility
16setoptSet a zsh-style shell option. Silently accepted for compatibility with .zshrc files.
setopt <option>unsetoptUnset a zsh-style shell option.
unsetopt <option>emulateEmulate another shell's behavior mode. Used for zsh/sh/ksh compatibility layers.
emulate <shell>zmodloadLoad or unload zsh modules. Stub for compatibility — silently succeeds.
zmodload <module>zstyleConfigure completion and other style settings. Zsh-compatible stub.
zstyle <pattern> <style> [values...]compinitInitialize the completion system. Zsh-compatible stub — zy auto-initializes completions.
compinitcompdefAssociate a completion function with one or more commands.
compdef <function> <command...>zleAccess and manipulate the Zsh Line Editor widgets. Stub for widget compatibility.
zle <widget>strftimeFormat a Unix timestamp or the current time using strftime format specifiers.
strftime <format> [timestamp]zstatDisplay detailed file status information (size, permissions, timestamps).
zstat <file>pcre_matchMatch a string against a Perl-compatible regular expression.
pcre_match <pattern> <string>zparseoptsParse command-line options from an argument array into associative arrays.
zparseopts <spec...>zftpBuilt-in FTP client. Zsh-compatible stub for basic FTP operations.
zftp <subcommand> [args]ztcpOpen, listen, or close raw TCP socket connections.
ztcp <host> <port>zptyStart and manage commands in pseudo-terminal sessions.
zpty <name> <command>watchMonitor user login and logout events on the system.
watchCompletion
4compaddAdd completion candidates to the current completion reply array.
compadd [options] <words...>compgenGenerate completion matches. Bash-compatible interface for generating word lists.
compgen [-W wordlist] [-A action] [prefix]_argumentsParse and define argument/option completion specs for a command (zsh-style).
_arguments <specs...>completeRegister a completion function for a command. Bash-compatible interface.
complete [-F function] [-W wordlist] <command>Filters
65allCheck if every item in a list satisfies a condition. Returns true only if all match.
input | all { |it| condition }anyCheck if at least one item in a list satisfies a condition.
input | any { |it| condition }appendAdd one or more items to the end of a list. Scalars are promoted to a list first.
input | append <value...>chunkSplit a list into fixed-size chunks. The last chunk may be smaller.
input | chunk <size>collectCollect streaming pipeline data into a single in-memory value.
input | collectcolumnsExtract the list of column names from a table or keys from a record.
input | columnscompactRemove null values and empty strings from a list. For tables, removes rows containing any null.
input | compactcountCount the number of items in a list, rows in a table, or characters in a string.
input | countdefaultProvide a fallback value for null or missing fields.
input | default <value>describeDescribe the type and structure of a pipeline value.
input | describedropDrop the last n items from a list or rows from a table. Defaults to 1.
input | drop [n]drop-columnRemove the last N columns from a table.
input | drop-column [n]drop-nthRemove a specific row by its 0-based index.
input | drop-nth <index>eachApply a shell command to every item in a list. Returns a list of results.
input | each <command>each-whileApply a closure to each item while the closure returns a non-null value. Stops on first null.
input | each-while { |it| expr }emptyCheck if a value is empty (empty string, list, or null).
input | emptyenumerateAdd a 0-based index to each item, returning records with index and item fields.
input | enumerateeverySelect every Nth item from a list, starting at the first.
input | every <n>filterFilter items by a boolean condition expression.
input | filter <condition>findSearch for items containing a substring. Matches against any cell in tables, or string value in lists.
input | find <pattern>firstGet the first N items from a list or table (default: 1).
input | first [N]flattenFlatten nested lists by one level. Non-list items and tables pass through unchanged.
input | flattengetGet a field value from a record or a full column from a table.
input | get <field>group-byGroup table rows into a record keyed by the distinct values of a specified column.
input | group-by <column>headersTreat the first row of a table as column headers, re-keying the remaining rows.
input | headersinsertInsert a new column with a fixed value into every row of a table, or add a key to a record.
input | insert <column> <value>is-emptyCheck if a value is empty or null. Returns true for empty strings, lists, records, and null.
input | is-emptyis-not-emptyCheck if a value is non-empty and non-null.
input | is-not-emptyitemsIterate over key-value pairs of a record, applying a closure to each.
input | items { |key, val| expr }joinSQL-style inner join of two tables on a matching column.
input | join <right-table> <on-column>lastGet the last N items from a list or table (default: 1).
input | last [N]lengthCount items in a list, rows in a table, keys in a record, or characters in a string.
input | lengthlinesSplit a string into a list of lines (split on newlines).
input | linesmergeMerge two records (second wins on conflict) or concatenate two tables column-wise.
input | merge <other>moveMove a column to a new position (before or after another column) in a table.
input | move <column> --before <ref> | --after <ref>nthGet the item at a specific 0-based index.
input | nth <index>par-eachApply a closure to each item in parallel. Order is not guaranteed.
input | par-each { |it| expr }prependAdd one or more items to the beginning of a list. Scalars are promoted to a list.
input | prepend <value...>rangeGenerate a range of numbers as a list.
range <start>..<end>reduceReduce a list to a single value by applying an accumulator expression.
input | reduce { <closure> }rejectRemove one or more columns from a table. Rows are preserved with remaining columns.
input | reject <column...>renameRename one or more columns in a table. Arguments are provided as old/new pairs.
input | rename <old> <new> [...]reverseReverse the order of items in a list.
input | reverserotateRotate (transpose) table columns to rows and vice versa.
input | rotateselSelect (project) specific columns from a table, discarding all others.
input | sel <columns...>shuffleRandomly shuffle the items in a list.
input | shuffleskipSkip the first n items from a list or rows from a table. Defaults to 1.
input | skip [n]skip-untilSkip items until the condition first becomes true, then pass through all remaining.
input | skip-until { |it| condition }skip-whileSkip items while the condition is true, then pass through all remaining.
input | skip-while { |it| condition }sliceExtract a slice of a list by start and end index.
input | slice <start>..<end>sortSort a list in ascending order. Supports strings, numbers, and booleans.
input | sort [--reverse]sort-bySort a table by one or more column values in ascending or descending order.
input | sort-by <column> [--reverse]takeTake the first n items from a list or rows from a table. If n exceeds length, all items are returned.
input | take [n]take-untilTake items until the condition first becomes true. Stops collecting on first match.
input | take-until { |it| condition }take-whileTake items while the condition holds. Stops collecting on first non-match.
input | take-while { |it| condition }transposeTranspose a table's rows and columns (pivot).
input | transposeuniqRemove consecutive duplicate values from a list. Sort first for full deduplication.
input | uniquniq-byRemove duplicate rows from a table based on a specific column's values.
input | uniq-by <column>updateUpdate the value of an existing column in every row of a table, or update a key in a record.
input | update <column> <value>upsertInsert a column if missing, or update it if it exists.
input | upsert <column> <value>valuesExtract all values from a record as a list.
input | valueswhereFilter rows from a table or items from a list by a condition expression.
input | where <condition>windowCreate a sliding window of fixed size over a list.
input | window <size>wrapWrap a scalar value into a single-field record.
input | wrap <name>zipZip two lists together into a list of pairs.
input | zip <other>Strings
33ansiOutput an ANSI escape code by name. Useful for coloring or styling text.
ansi <name>ansi-stripRemove all ANSI escape codes from a string, leaving plain text.
input | ansi-stripcharOutput a special character by name (newline, tab, etc.) or by Unicode code point.
char <name>decodeDecode a base64-encoded string back to plain text.
input | decode base64detect-columnsAuto-detect column boundaries from whitespace-aligned text and convert to a table.
input | detect-columnsencodeEncode a string to base64.
input | encode base64parseParse a string using a pattern with named capture groups. Returns a table of matches.
input | parse <pattern>split-charsSplit a string into a list of individual characters.
input | split-charssplit-columnSplit a string into columns by a separator, assigning column names.
input | split-column <separator> [names...]split-listSplit a list into sub-lists of a fixed size.
input | split-list <size>split-rowSplit a string into a list of substrings using a delimiter.
input | split-row <separator>split-wordsSplit a string into a list of words (split on whitespace).
input | split-wordsstr-camel-caseConvert a string to camelCase. Splits on underscores, hyphens, and spaces.
input | str-camel-casestr-capitalizeCapitalize the first letter of a string, leaving the rest unchanged.
input | str-capitalizestr-containsCheck if a string contains a given substring. Returns "true" or "false" as a string.
input | str-contains <needle>str-distanceCompute the Levenshtein edit distance between two strings.
str-distance <a> <b>str-downcaseConvert all characters in a string to lowercase.
input | str-downcasestr-ends-withCheck if a string ends with a given suffix. Returns "true" or "false".
input | str-ends-with <suffix>str-index-ofFind the 0-based index of the first occurrence of a substring. Returns -1 if not found.
input | str-index-of <needle>str-joinJoin a list of items into a single string using an optional separator.
list | str-join [separator]str-kebab-caseConvert a string to kebab-case (lowercase words separated by hyphens).
input | str-kebab-casestr-lengthGet the number of characters in a string.
input | str-lengthstr-pascal-caseConvert a string to PascalCase (UpperCamelCase).
input | str-pascal-casestr-replaceReplace occurrences of a pattern in a string. Replaces only the first match by default.
input | str-replace <pattern> <replacement> [--all]str-reverseReverse the characters in a string.
input | str-reversestr-screaming-snake-caseConvert a string to SCREAMING_SNAKE_CASE (uppercase with underscores).
input | str-screaming-snake-casestr-snake-caseConvert a string to snake_case. Splits on hyphens, spaces, and camelCase boundaries.
input | str-snake-casestr-starts-withCheck if a string starts with a given prefix. Returns "true" or "false".
input | str-starts-with <prefix>str-statsCount lines, words, characters, and bytes in a string.
input | str-statsstr-substringExtract a substring by start and end character indices.
input | str-substring <start> <end>str-title-caseConvert a string to Title Case (capitalize the first letter of each word).
input | str-title-casestr-trimRemove leading and trailing whitespace from a string.
input | str-trimstr-upcaseConvert all characters in a string to uppercase.
input | str-upcaseMath
26mathEvaluate a mathematical expression string. Supports +, -, *, /, %, **, parentheses.
math <expression>math-absReturn the absolute value (magnitude without sign) of a number.
value | math-absmath-arccosCompute the inverse cosine (arccosine) in radians.
value | math-arccosmath-arcsinCompute the inverse sine (arcsine) in radians.
value | math-arcsinmath-arctanCompute the inverse tangent (arctangent) in radians.
value | math-arctanmath-avgCompute the arithmetic mean (average) of all values in a list.
list | math-avgmath-ceilRound a float up to the nearest integer.
value | math-ceilmath-cosCompute the cosine of an angle in radians.
value | math-cosmath-eReturn Euler's number (e ≈ 2.71828). A mathematical constant.
math-emath-expCompute e raised to the power of the input value (e^x).
value | math-expmath-floorRound a float down to the nearest integer.
value | math-floormath-lnCompute the natural logarithm (base e) of a value.
value | math-lnmath-logCompute the base-10 logarithm of a value.
value | math-logmath-maxReturn the maximum value from a list.
list | math-maxmath-medianCompute the median (middle value) of a sorted list. Averages two middle values for even-length lists.
list | math-medianmath-minReturn the minimum value from a list.
list | math-minmath-modeFind the most frequently occurring value(s) in a list.
list | math-modemath-piReturn the mathematical constant Pi (π ≈ 3.14159).
math-pimath-productCompute the product of all values in a list (multiply all together).
list | math-productmath-roundRound to the nearest integer (half rounds up).
value | math-roundmath-sinCompute the sine of an angle in radians.
value | math-sinmath-sqrtCompute the square root of a non-negative number.
value | math-sqrtmath-stddevCompute the standard deviation of a list of numbers.
list | math-stddevmath-sumSum all values in a list. Supports integers and floats.
list | math-summath-tanCompute the tangent of an angle in radians.
value | math-tanmath-varianceCompute the variance of a list of numbers.
list | math-varianceConversions
10fillPad a value to a minimum width using a fill character.
input | fill --width <n> [--char <c>] [--alignment <side>]fmtFormat a number as binary, hex, octal, or scientific notation.
input | fmtinto-binaryConvert a value to its binary (byte sequence) representation.
input | into-binaryinto-boolConvert a value to boolean. Truthy: non-zero, non-empty. Falsy: 0, empty, null.
input | into-boolinto-durationConvert a value (int or string) to a duration type.
input | into-durationinto-filesizeConvert a number (bytes) to a human-readable filesize.
input | into-filesizeinto-floatConvert a value to a floating-point number.
input | into-floatinto-intConvert a value to an integer. Strings are parsed, floats truncated.
input | into-intinto-recordConvert a list of key-value pairs or a table row into a record.
input | into-recordinto-stringConvert any value to its string representation.
input | into-stringBits
8bits-andPerform a bitwise AND operation between two integers.
a | bits-and <b>bits-notPerform a bitwise NOT (complement) on an integer.
input | bits-notbits-orPerform a bitwise OR operation between two integers.
a | bits-or <b>bits-rolBitwise rotate left by n positions.
input | bits-rol <n>bits-rorBitwise rotate right by n positions.
input | bits-ror <n>bits-shlBitwise shift left by n positions (multiply by 2^n).
input | bits-shl <n>bits-shrBitwise shift right by n positions (divide by 2^n, truncated).
input | bits-shr <n>bits-xorPerform a bitwise XOR (exclusive OR) between two integers.
a | bits-xor <b>Bytes
11bytes-addAppend bytes to the end of a byte sequence.
input | bytes-add <bytes>bytes-atExtract byte(s) at a specific index or range from a byte sequence.
input | bytes-at <index>bytes-buildBuild a byte sequence from a list of integers (0–255).
bytes-build [integers...]bytes-collectCollect individual bytes from a pipeline into a single byte sequence.
input | bytes-collectbytes-ends-withCheck if a byte sequence ends with a given suffix.
input | bytes-ends-with <suffix>bytes-index-ofFind the index of the first occurrence of a byte pattern.
input | bytes-index-of <pattern>bytes-lengthGet the number of bytes in a byte sequence.
input | bytes-lengthbytes-removeRemove a range of bytes from a byte sequence.
input | bytes-remove <start> <end>bytes-replaceReplace a byte pattern with another in a byte sequence.
input | bytes-replace <old> <new>bytes-reverseReverse the order of bytes in a byte sequence.
input | bytes-reversebytes-starts-withCheck if a byte sequence starts with a given prefix.
input | bytes-starts-with <prefix>Path
9path-basenameExtract the filename component from a path string.
input | path-basenamepath-dirnameExtract the directory component from a path string.
input | path-dirnamepath-existsCheck if a filesystem path exists.
input | path-existspath-expandExpand a path to its absolute form, resolving ~ and symlinks.
input | path-expandpath-joinJoin path components into a single path using the OS separator.
path-join <parts...>path-parseParse a path string into a record with dir, stem, and extension components.
input | path-parsepath-relative-toCompute the relative path from a base directory.
input | path-relative-to <base>path-splitSplit a path into a list of its components.
input | path-splitpath-typeDetermine the type of a filesystem path (file, dir, symlink).
input | path-typeHash
2hash-md5Compute the MD5 hash of a string (hexadecimal digest).
input | hash-md5hash-sha256Compute the SHA-256 hash of a string (hexadecimal digest).
input | hash-sha256Date & Time
7date-formatFormat a date value using strftime-style format specifiers.
input | date-format <format>date-humanizeConvert a date to a human-friendly relative string (e.g. '2 hours ago').
input | date-humanizedate-list-timezoneList all available timezone names.
date-list-timezonedate-nowGet the current date and time as a datetime value.
date-nowdate-to-recordConvert a datetime to a record with year, month, day, hour, minute, second fields.
input | date-to-recorddate-to-tableConvert a datetime to a table with year, month, day, etc. as columns.
input | date-to-tabledate-to-timezoneConvert a datetime to a different timezone.
input | date-to-timezone <timezone>Random
6random-boolGenerate a random boolean (true or false) with optional bias.
random-bool [--bias <float>]random-charsGenerate a random string of alphanumeric characters.
random-chars [--length <n>]random-diceSimulate rolling dice. Returns a list of results.
random-dice [--dice <n>] [--sides <s>]random-floatGenerate a random floating-point number within an optional range.
random-float [min..max]random-intGenerate a random integer within a range.
random-int <min>..<max>random-uuidGenerate a random UUID v4 string.
random-uuidGenerators
4calDisplay a calendar for the current month or a specified month/year.
cal [--month <m>] [--year <y>] [--full-year]generateGenerate an infinite or bounded sequence by repeatedly applying a closure to an accumulator.
generate <initial> { |acc| ... }seqGenerate a numeric sequence from start to end with an optional step.
seq <start> [step] <end>seq-dateGenerate a sequence of dates from start to end at a given interval.
seq-date --begin <date> --end <date> --increment <dur>Formats
14from-csvParse CSV text from the pipeline into structured table data.
input | from-csv [--separator <char>] [--noheaders]from-jsonParse JSON text from the pipeline into structured data.
input | from-jsonfrom-tomlParse TOML text from the pipeline into a record.
input | from-tomlfrom-tsvParse TSV (tab-separated values) text from the pipeline into a table.
input | from-tsv [--noheaders]from-xmlParse XML text from the pipeline into structured data.
input | from-xmlfrom-yamlParse YAML text from the pipeline into structured data.
input | from-yamlto-csvConvert structured data to CSV text.
input | to-csv [--separator <char>] [--noheaders]to-htmlConvert structured data to an HTML table.
input | to-html [--partial]to-jsonConvert structured data to JSON text.
input | to-json [--indent <n>] [--raw]to-mdConvert structured data to a Markdown table.
input | to-md [--pretty]to-tomlConvert a record to TOML text.
input | to-tomlto-tsvConvert structured data to TSV (tab-separated values) text.
input | to-tsv [--noheaders]to-xmlConvert structured data to XML text.
input | to-xml [--indent <n>]to-yamlConvert structured data to YAML text.
input | to-yamlEnvironment
2env-listList all environment variables as a structured table with name and value columns.
env-listload-envLoad a record of key-value pairs into the environment as variables.
input | load-envDebug
6debugShow a debug text representation of pipeline data, useful for inspecting types and structure.
input | debug [--raw]debug-infoDisplay detailed shell build and runtime information (version, features, OS, etc.).
debug-infoinspectInspect the pipeline value in an interactive detailed view.
input | inspectmetadataShow metadata about a pipeline value including its type, span, and source origin.
input | metadatatimeitMeasure and report the wall-clock execution time of an expression or block.
timeit { <block> }view-sourceView the source code of a user-defined command, alias, or function.
view-source <name>Files
9cpCopy files and directories from source to destination.
cp [flags] <src> <dst>duCalculate and display disk usage for a path.
du [path] [--max-depth <n>] [--all]globExpand a glob pattern into a list of matching file paths.
glob <pattern> [--depth <n>]mkdirCreate one or more directories, including intermediate parents.
mkdir <dir...>mvMove or rename files and directories.
mv <src> <dst>openOpen and auto-parse a file based on its extension (JSON, TOML, YAML, CSV, etc.).
open <file> [--raw]rmRemove files and directories.
rm [flags] <path...>saveSave pipeline data to a file, optionally appending.
input | save <file> [--append] [--raw]touchCreate a new empty file or update the timestamp of an existing file.
touch <file...>