PocketBase defines a PocketBase app launcher.

It implements [CoreApp] via embedding and all of the app interface methods could be accessed directly through the instance (eg. PocketBase.DataDir()).

Hierarchy

Methods

  • Execute initializes the application (if not already) and executes the pb.RootCmd with graceful shutdown support.

    This method differs from pb.Start() by not registering the default system commands!

    Returns void

  • Start starts the application, aka. registers the default system commands (serve, migrate, version) and executes pb.RootCmd.

    Returns void

Properties

rootCmd?: cobra.Command

RootCmd is the main console command

References

Re-exports bootstrap
Re-exports cache
Re-exports createBackup
Re-exports dao
Re-exports dataDir
Re-exports db
Re-exports encryptionEnv
Re-exports isBootstrapped
Re-exports isDev
Re-exports logger
Re-exports logsDB
Re-exports logsDao
Re-exports newBackupsFilesystem
Re-exports newFilesystem
Re-exports newMailClient
Re-exports refreshSettings
Re-exports resetBootstrapState
Re-exports restart
Re-exports restoreBackup
Re-exports settings
Re-exports store
Re-exports subscriptionsBroker

Generated using TypeDoc