@dxos/app-framework - v0.15.0
    Preparing search index...

    Variable createCliAppConst

    createCliApp: (
        ...args: [CreateCliAppOptions],
    ) => Effect<
        {
            command: Command<any, { [key: string]: any }, any, any, any>;
            layer: Layer<any, any, never>;
        },
        Error,
        never,
    > = ...

    Creates a CLI application with plugin support. Similar to useApp but for CLI environments.

    Type declaration

      • (
            ...args: [CreateCliAppOptions],
        ): Effect<
            {
                command: Command<any, { [key: string]: any }, any, any, any>;
                layer: Layer<any, any, never>;
            },
            Error,
            never,
        >
      • Parameters

        Returns Effect<
            {
                command: Command<any, { [key: string]: any }, any, any, any>;
                layer: Layer<any, any, never>;
            },
            Error,
            never,
        >

    const plugins = [ClientPluginCLI()];
    const manager = await createCliApp({ plugins });
    const commands = manager.capabilities.getAll(Capabilities.Command);