> For the complete documentation index, see [llms.txt](https://developer.harness.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developer.harness.io/sast-and-sca/cli/reference/count-lines.md).

# sl count-lines

The `sl count-lines` command allows you to count the lines of code in a given directory. This information can help you determine if the workstation you're running Qwiet AI by Harness on can support code analysis.

> The command will try to exclude directories that do not contain your application code directly (e.g., `node_modules` for Node.js or `vendor` for Go).

## Usage <a href="#usage" id="usage"></a>

To run: `sl count-lines [command options] <path-to-directory>`

### Command options <a href="#command-options" id="command-options"></a>

| **Option** | **Description**                                         |
| ---------- | ------------------------------------------------------- |
| `--js`     | Use to indicate the project is a JavaScript application |
| `--csharp` | Use to indicate the project is a C# application         |
| `--go`     | Use to indicate the project is a Go application         |
| `--java`   | Use to indicate the project is a Java/Scala application |
| `--kotlin` | Use to indicate the project is a Kotlin application     |
| `--php`    | Use to indicate the project is a PHP application        |
| `--python` | Use to indicate the project is a Python application     |
| `--ruby`   | Use to indicate the project is a Ruby application       |

## Sample usage <a href="#sample-usage" id="sample-usage"></a>

```
$ sl count-lines --js sample-apps/sl-angular
552 lines for 28 JavaScript files in sample-apps/sl-angular
```

![](/files/DfHDmRpYn5HJOmhRtTva) ![](/files/P5vj8JOtHNJWVEvAqKym)
