UNPKG

@pnp/cli-microsoft365

Version:

Manage Microsoft 365 and SharePoint Framework projects on any platform

22 lines 696 B
import AppCommand from '../../base/AppCommand.js'; import commands from '../commands.js'; import { entraApp } from '../../../utils/entraApp.js'; class AppGetCommand extends AppCommand { get name() { return commands.GET; } get description() { return 'Retrieves information about the current Microsoft Entra app'; } async commandAction(logger, args) { try { const app = await entraApp.getAppRegistrationByAppId(args.options.appId); await logger.log(app); } catch (err) { this.handleRejectedODataJsonPromise(err); } } } export default new AppGetCommand(); //# sourceMappingURL=app-get.js.map