Skip to main content

Filesystem Pseudo CLI

Generated from packages/codeboltjs/src/tools/pseudo-cli/commands.ts. Edit the registry or rerun node scripts/generate-pseudo-cli-docs.js instead of updating this file by hand.

The fs pseudo CLI module currently exposes 14 commands.

Related SDK docs: Filesystem

Commands At A Glance

ActionDescriptionRequired flags
readRead file contents--path
writeWrite content to a file--path, --content
create-fileCreate a new file--name, --source, --path
create-folderCreate a new folder--name, --path
updateUpdate file contents--name, --path, --content
delete-fileDelete a file--name, --path
delete-folderDelete a folder--name, --path
listList files in a directory--path
list-dirList directory contents--path
searchSearch files with regex--path, --regex, --pattern
grepGrep search in files--path, --query
findFuzzy file search--query
read-manyRead multiple files--paths
code-defsList code definition names--path

read

Read file contents

codebolt fs read --path <string>
NameFlagTypeRequiredDescription
path--pathstringYesFilesystem or workspace path used by the command.

write

Write content to a file

codebolt fs write --path <string> --content <string>
NameFlagTypeRequiredDescription
path--pathstringYesFilesystem or workspace path used by the command.
content--contentstringYesRaw content string passed to the SDK method.

create-file

Create a new file

codebolt fs create-file --name <string> --source <string> --path <string>
NameFlagTypeRequiredDescription
name--namestringYesName of the target resource to create, update, or delete.
source--sourcestringYesSource content or source path used when creating a resource.
path--pathstringYesFilesystem or workspace path used by the command.

create-folder

Create a new folder

codebolt fs create-folder --name <string> --path <string>
NameFlagTypeRequiredDescription
name--namestringYesName of the target resource to create, update, or delete.
path--pathstringYesFilesystem or workspace path used by the command.

update

Update file contents

codebolt fs update --name <string> --path <string> --content <string>
NameFlagTypeRequiredDescription
name--namestringYesName of the target resource to create, update, or delete.
path--pathstringYesFilesystem or workspace path used by the command.
content--contentstringYesRaw content string passed to the SDK method.

delete-file

Delete a file

codebolt fs delete-file --name <string> --path <string>
NameFlagTypeRequiredDescription
name--namestringYesName of the target resource to create, update, or delete.
path--pathstringYesFilesystem or workspace path used by the command.

delete-folder

Delete a folder

codebolt fs delete-folder --name <string> --path <string>
NameFlagTypeRequiredDescription
name--namestringYesName of the target resource to create, update, or delete.
path--pathstringYesFilesystem or workspace path used by the command.

list

List files in a directory

codebolt fs list --path <string> [--recursive | --no-recursive]
NameFlagTypeRequiredDescription
path--pathstringYesFilesystem or workspace path used by the command.
recursive--recursivebooleanNoBoolean flag that enables recursive traversal.

list-dir

List directory contents

codebolt fs list-dir --path <string>
NameFlagTypeRequiredDescription
path--pathstringYesFilesystem or workspace path used by the command.

Search files with regex

codebolt fs search --path <string> --regex <string> --pattern <string>
NameFlagTypeRequiredDescription
path--pathstringYesFilesystem or workspace path used by the command.
regex--regexstringYesRegular expression pattern used by the search operation.
pattern--patternstringYesFile glob or match pattern used with the search operation.

grep

Grep search in files

codebolt fs grep --path <string> --query <string> [--include <string>] [--exclude <string>]
NameFlagTypeRequiredDescription
path--pathstringYesFilesystem or workspace path used by the command.
query--querystringYesSearch query string used by the command.
include--includestringNoOptional include filter passed to the search operation.
exclude--excludestringNoOptional exclude filter passed to the search operation.

find

Fuzzy file search

codebolt fs find --query <string>
NameFlagTypeRequiredDescription
query--querystringYesSearch query string used by the command.

read-many

Read multiple files

codebolt fs read-many --paths <json>
NameFlagTypeRequiredDescription
paths--pathsjsonYesValue for the paths parameter.

code-defs

List code definition names

codebolt fs code-defs --path <string>
NameFlagTypeRequiredDescription
path--pathstringYesFilesystem or workspace path used by the command.