mirror of
https://github.com/immich-app/immich
synced 2025-10-17 18:19:27 +00:00
16 lines
415 B
TypeScript
16 lines
415 B
TypeScript
|
|
import { BaseCommand } from '../cli/base-command';
|
||
|
|
|
||
|
|
export default class ServerInfo extends BaseCommand {
|
||
|
|
static description = 'Display server information';
|
||
|
|
static enableJsonFlag = true;
|
||
|
|
|
||
|
|
public async run() {
|
||
|
|
console.log('Getting server information');
|
||
|
|
|
||
|
|
await this.connect();
|
||
|
|
const { data: versionInfo } = await this.immichApi.serverInfoApi.getServerVersion();
|
||
|
|
|
||
|
|
console.log(versionInfo);
|
||
|
|
}
|
||
|
|
}
|