LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

bun-c

Run a shell command string through Bun's built-in shell

TLDR

Run a shell command
$ bun -c "[shell command]"
copy
Run a pipeline
$ bun -c "cat [file.txt] | grep [pattern]"
copy
Run with environment from .env file
$ bun -c "[command]" --env-file [.env]
copy

SYNOPSIS

bun -c command [options]

DESCRIPTION

bun -c runs a shell command string, similar to sh -c but using Bun's built-in cross-platform shell implementation. It supports common shell features like pipes, redirects, and environment variable expansion. It can load environment variables from .env files before executing the command, making it useful for running scripts that depend on environment configuration without additional tooling.

PARAMETERS

-c command

Execute the given command string using Bun's built-in shell.
--env-file file
Load environment variables from the specified file before executing.

SEE ALSO

bun(1), bun-run(1), bun-x(1), sh(1)

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid