Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/docs/features/command-line-interface.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ If you are looking to import your Google Photos takeout, we recommend this commu

## Requirements

- Node.js 20 or above
- Node.js 22 or above
- Npm

If you can't install node/npm, there is also a Docker version available below.
Expand Down
12 changes: 11 additions & 1 deletion packages/cli/bin/immich
Original file line number Diff line number Diff line change
@@ -1,2 +1,12 @@
#!/usr/bin/env node
import '../dist/index.js';
import { createRequire } from 'node:module';
import semver from 'semver';

const { engines } = createRequire(import.meta.url)('../package.json');

if (!semver.satisfies(process.version, engines.node, { includePrerelease: true })) {
console.error(`The Immich CLI requires Node.js ${engines.node}, but you are running ${process.version}.`);
process.exit(1);
}

await import('../dist/index.js');
5 changes: 3 additions & 2 deletions packages/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,13 +59,14 @@
"check": "tsc --noEmit"
},
"engines": {
"node": ">=20.0.0"
"node": ">=22.0.0"

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was already the requirement, this field just hadn't been updated to match

},
"dependencies": {
"chokidar": "^4.0.3",
"fast-glob": "^3.3.2",
"fastq": "^1.17.1",
"lodash-es": "^4.17.21",
"micromatch": "^4.0.8"
"micromatch": "^4.0.8",
"semver": "^7.8.1"
}
}
3 changes: 3 additions & 0 deletions pnpm-lock.yaml
Comment thread
bo0tzz marked this conversation as resolved.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading