Skip to main content

Apps API

Apps API

import { CodeBoltClient } from '@codebolt/clientsdk';

const client = new CodeBoltClient();

Quick Reference

MethodDescription
editOpens an application for editing.
forkForks an existing application.
getAllRetrieves all registered applications.
getAppFromCacheRetrieves an app's data from the cache.
getByIdRetrieves a specific application by its ID.
installInstalls an application.
startStarts an installed application.
uninstallUninstalls an application.
updateAppToCacheUpdates an app's data in the cache.

Methods


edit

client.apps.edit(data: EditAppRequest): Promise<unknown>

Opens an application for editing.

Launches the app's source code or configuration in an editable mode, allowing modifications to its behavior.

ParameterTypeRequiredDescription
dataEditAppRequestYesThe edit configuration

Returns: Promise<unknown> — A promise that resolves when the app is ready for editing

Full reference →


fork

client.apps.fork(data: ForkAppRequest): Promise<unknown>

Forks an existing application.

Creates a copy of an app that can be independently modified and customized. Useful for creating variants of existing apps.

ParameterTypeRequiredDescription
dataForkAppRequestYesThe fork configuration

Returns: Promise<unknown> — A promise that resolves when the app has been forked

Full reference →


getAll

client.apps.getAll(): Promise<App[]>

Retrieves all registered applications.

Returns the complete list of apps available in the system, both installed and available for installation.

No parameters.

Returns: Promise<App[]> — A promise that resolves to an array of App objects

Full reference →


getAppFromCache

client.apps.getAppFromCache(params?: AppCacheParams): Promise<unknown>

Retrieves an app's data from the cache.

Returns the cached representation of an app for fast access, avoiding a full database or filesystem lookup.

ParameterTypeRequiredDescription
paramsAppCacheParamsNoOptional cache parameters identifying the app

Returns: Promise<unknown> — A promise that resolves to the cached app data

Full reference →


getById

client.apps.getById(appId: string): Promise<App>

Retrieves a specific application by its ID.

Returns the full App object including its metadata, configuration, and current status.

ParameterTypeRequiredDescription
appIdstringYesThe unique identifier of the app

Returns: Promise<App> — A promise that resolves to the App object

Full reference →


install

client.apps.install(data: InstallAppRequest): Promise<unknown>

Installs an application.

Downloads and registers an app, making it available in the CodeBolt environment for use.

ParameterTypeRequiredDescription
dataInstallAppRequestYesThe installation configuration

Returns: Promise<unknown> — A promise that resolves when the app has been installed

Full reference →


start

client.apps.start(data: StartAppRequest): Promise<unknown>

Starts an installed application.

Launches an app that has been previously installed, making its functionality active in the runtime.

ParameterTypeRequiredDescription
dataStartAppRequestYesThe start configuration

Returns: Promise<unknown> — A promise that resolves when the app has been started

Full reference →


uninstall

client.apps.uninstall(data: UninstallAppRequest): Promise<unknown>

Uninstalls an application.

Removes an installed app and cleans up its associated resources.

ParameterTypeRequiredDescription
dataUninstallAppRequestYesThe uninstall configuration

Returns: Promise<unknown> — A promise that resolves when the app has been uninstalled

Full reference →


updateAppToCache

client.apps.updateAppToCache(params?: AppCacheParams): Promise<unknown>

Updates an app's data in the cache.

Refreshes the cached representation of an app, ensuring that the latest metadata is available without a full reload.

ParameterTypeRequiredDescription
paramsAppCacheParamsNoOptional cache parameters identifying the app

Returns: Promise<unknown> — A promise that resolves when the cache has been updated

Full reference →