Documentation
Everything you need to get started with Thirdwatch.
Quick Start
1. Install
$ npm install -g thirdwatch2. Scan your repo
$ thirdwatch scan .3. View the manifest
$ cat thirdwatch.jsonCLI Reference — thirdwatch scan
Scan a codebase and produce a Thirdwatch Dependency Manifest (TDM).
$ thirdwatch scan [path] [options]Arguments
| Flag | Description |
|---|---|
| path | Directory to scan. Defaults to current directory (.) |
Options
| Flag | Description |
|---|---|
| -o, --output <file> | Output file path. Defaults to ./thirdwatch.json |
| -f, --format <format> | Output format: json (default) or yaml |
| --languages <langs...> | Languages to scan (default: auto-detect) |
| --ignore <patterns...> | Glob patterns to ignore |
| --config <file> | Path to .thirdwatch.yml config file |
| --no-resolve | Skip environment variable resolution |
| --verbose | Show detailed scan progress |
| --quiet | Suppress all output except the TDM |
| --no-color | Disable colored output |
| -h, --help | Show help |
| -v, --version | Show version |
Configuration
Thirdwatch can be configured via a .thirdwatch.yml file in your project root.
# .thirdwatch.yml output: thirdwatch.json format: json exclude: - "node_modules/**" - "**/*.test.*" - "dist/**"
Ignore File
Create a .thirdwatchignore file to exclude paths from scanning. Uses gitignore syntax.
# .thirdwatchignore node_modules/ dist/ *.test.ts fixtures/
Examples
Scan current directory
$ thirdwatch scanScan with YAML output
$ thirdwatch scan . --format yaml -o deps.yamlVerbose mode
$ thirdwatch scan . --verboseQuiet mode (TDM only)
$ thirdwatch scan . --quietTDM Schema
The canonical JSON Schema for the Thirdwatch Dependency Manifest is available at schema/v1/tdm.schema.json.