project list ignored

Check your local project package directories for forceignored files.

When deploying or retrieving metadata between your local project and an org, you can specify the source files you want to exclude with a .forceignore file. The .forceignore file structure mimics the .gitignore structure. Each line in .forceignore specifies a pattern that corresponds to one or more files. The files typically represent metadata components, but can be any files you want to exclude, such as LWC configuration JSON files or tests.

force:source:ignored:list

Flag Name (Long)Flag Name (Short)Description
‑‑flags‑dirN/AType: Value

Import flag values from a directory.
‑‑jsonN/AType: Boolean

Format output as json.
‑‑source‑dir‑pType: Value

File or directory of files that the command checks for foreceignored files.

List all the files in all package directories that are ignored:

List all the files in a specific directory that are ignored:

Check if a particular file is ignored: