
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
@fscli/fscli
Advanced tools
Run node fs commands from the terminal with familiar method names and arguments.
fscli brings Node fs to the terminal with the same method names JavaScript
developers already use in code.
It is intentionally thin: fscli readFile, fscli mkdir, fscli rmdir,
fscli rm, fscli cp, and the rest all call the matching file system method from
the JavaScript runtime you are already using.
fsclifs method surface JavaScript developers
already knownpx and bunx when installed locallyGlobal install is the recommended setup:
npm install -g @fscli/fscli
Local project install also works:
npm install --save-dev @fscli/fscli
Then run it from the project root with:
npx fscli readFile ./package.json '{"encoding":"utf8"}'
bunx fscli readFile ./package.json '{"encoding":"utf8"}'
Basic entry points:
fscli
fscli --help
fscli --version
The command name is the Node file system method name:
fscli <command> [...positionals]
fscli <command> --<param> <value> ...
fscli --help
fscli --version
Run fscli or fscli --help to print the live command list from the runtime
that is executing it.
Examples:
fscli rmdir -P ./path/here
fscli readFile ./package.json '{"encoding":"utf8"}'
fscli writeFile ./tmp/hello.txt "hello from fscli" '{"encoding":"utf8"}'
fscli mkdir --path ./tmp/nested --options '{"recursive":true}'
fscli rm --path ./tmp/nested --options '{"recursive":true,"force":true}'
fscli cp --src ./src --dest ./backup --options '{"recursive":true}'
fscli readdir --path . --options '{"withFileTypes":true}'
CLI values are decoded before they are passed into Node:
true and false become booleansJSON.parseThat keeps option objects close to normal JavaScript:
fscli mkdir ./tmp/cache '{"recursive":true}'
fscli writeFile ./data.json '{"ok":true}' '{"encoding":"utf8"}'
If you are on PowerShell, escape inner double quotes inside JSON:
fscli mkdir --path .\tmp\nested --options "{\"recursive\":true}"
Uint8Array results are written as raw bytesconsole.log formattingThis reference reflects the current package on Node v22.14.0. fscli
positions itself as Node fs for your terminal, while the current command
surface follows the Promise-based file system exports available in the runtime
that executes it. Different Node or Bun versions and different runtimes can
change what you see here. For the live list on your machine, run fscli or
fscli --help.
| Command | Parameters | Flags |
|---|---|---|
access | path, mode | -P = --path-M = --mode |
appendFile | path, data, options | -P = --path-D = --data-O = --options |
chmod | path, mode | -P = --path-M = --mode |
chown | path, uid, gid | -P = --path-U = --uid-G = --gid |
copyFile | src, dest, mode | -S = --src-D = --dest-M = --mode |
cp | src, dest, options | -S = --src-D = --dest-O = --options |
glob | pattern, options | -P = --pattern-O = --options |
lchmod | path, mode | -P = --path-M = --mode |
lchown | path, uid, gid | -P = --path-U = --uid-G = --gid |
link | existingPath, newPath | -E = --existingPath-N = --newPath |
lstat | path, options | -P = --path-O = --options |
lutimes | path, atime, mtime | -P = --path-A = --atime-M = --mtime |
mkdir | path, options | -P = --path-O = --options |
mkdtemp | prefix, options | -P = --prefix-O = --options |
open | path, flags, mode | -P = --path-F = --flags-M = --mode |
opendir | args | -A = --args |
readFile | path, options | -P = --path-O = --options |
readdir | path, options | -P = --path-O = --options |
readlink | path, options | -P = --path-O = --options |
realpath | path, options | -P = --path-O = --options |
rename | oldPath, newPath | -O = --oldPath-N = --newPath |
rm | path, options | -P = --path-O = --options |
rmdir | path, options | -P = --path-O = --options |
stat | path, options | -P = --path-O = --options |
statfs | path, options | -P = --path-O = --options |
symlink | target, path, type_ | -T = --target-P = --path-Y = --type_ |
truncate | path, len | -P = --path-L = --len |
unlink | path | -P = --path |
utimes | path, atime, mtime | -P = --path-A = --atime-M = --mtime |
watch | filename, options | -F = --filename-O = --options |
writeFile | path, data, options | -P = --path-D = --data-O = --options |
For the most stable usage across Node versions, prefer positional arguments when you already know the method signature.
Run the package test suite with:
npm test
The current suite covers package metadata, publish-facing docs, and real CLI execution against temporary files and directories.
Apache-2.0
FAQs
Run node fs commands from the terminal with familiar method names and arguments.
The npm package @fscli/fscli receives a total of 4 weekly downloads. As such, @fscli/fscli popularity was classified as not popular.
We found that @fscli/fscli demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.