immich/cli
2023-10-11 11:48:35 +02:00
..
src Merge branch 'main' of https://github.com/immich-app/immich into feat/cli-albums 2023-10-11 10:46:57 +02:00
.editorconfig feat(cli) Add new CLI (#3066) 2023-07-06 09:37:47 -05:00
.eslintignore feat(cli) Add new CLI (#3066) 2023-07-06 09:37:47 -05:00
.eslintrc.js feat(cli) Add new CLI (#3066) 2023-07-06 09:37:47 -05:00
.gitignore feat(cli) Add new CLI (#3066) 2023-07-06 09:37:47 -05:00
.prettierignore feat(cli) Add new CLI (#3066) 2023-07-06 09:37:47 -05:00
.prettierrc feat(cli) Add new CLI (#3066) 2023-07-06 09:37:47 -05:00
package-lock.json chore(server,web,docs) bulk bump of dependencies with vulnerabilities (#4312) 2023-10-10 08:31:21 -04:00
package.json feat: add format fix 2023-10-11 10:59:08 +02:00
README.md docs: remove cli folder 2023-10-11 11:48:35 +02:00
testSetup.js feat(cli) Add new CLI (#3066) 2023-07-06 09:37:47 -05:00
tsconfig.build.json feat(cli): add build script and unify tests (#3369) 2023-07-21 13:10:01 -05:00
tsconfig.json feat(cli) Add new CLI (#3066) 2023-07-06 09:37:47 -05:00

A command-line interface for interfacing with Immich

Getting started

Perform these actions in the cli folder:

$ npm run build

Then install it globally:

$ npm install -g .

To start using the CLI, you need to login with an API key first:

$ immich login-key https://your-immich-instance/api your-api-key

NOTE: This will store your api key under ~/.config/immich/auth.yml

Next, you can run commands:

$ immich server-info

When you're done, log out to remove the credentials from your filesystem

$ immich logout

Usage

Usage: immich [options] [command]

Immich command line interface

Options:
  -h, --help                        display help for command

Commands:
  upload [options] [paths...]       Upload assets
  import [options] [paths...]       Import existing assets
  server-info                       Display server information
  login-key [instanceUrl] [apiKey]  Login using an API key
  help [command]                    display help for command

Todo

  • Sidecar should check both .jpg.xmp and .xmp
  • Sidecar check could be case-insensitive

Known issues

  • Upload can't use sdk due to multiple issues