Firebase Labs experiments management for enabling and configuring beta features and experimental functionality.
List, enable, and disable Firebase Labs experiments.
/**
* List all available experiments with their status and descriptions
* @param options - Configuration options
* @returns Promise resolving to array of experiment objects
*/
function experimentsList(options?: Options): Promise<any[]>;
/**
* Get detailed description of a specific experiment
* @param experiment - Experiment name
* @param options - Configuration options
* @returns Promise resolving to experiment details
*/
function experimentsDescribe(
experiment: string,
options?: Options
): Promise<any>;
/**
* Enable a Firebase Labs experiment
* @param experiment - Experiment name to enable
* @param options - Configuration options
* @returns Promise resolving when experiment is enabled
*/
function experimentsEnable(
experiment: string,
options?: Options
): Promise<void>;
/**
* Disable a Firebase Labs experiment
* @param experiment - Experiment name to disable
* @param options - Configuration options
* @returns Promise resolving when experiment is disabled
*/
function experimentsDisable(
experiment: string,
options?: Options
): Promise<void>;import * as client from "firebase-tools";
// List all experiments
const experiments = await client.experiments.list({
project: "my-project"
});
console.log("Available experiments:");
experiments.forEach(exp => {
console.log(`- ${exp.name}: ${exp.enabled ? 'enabled' : 'disabled'}`);
console.log(` ${exp.description}`);
});
// Get experiment description
const expDetails = await client.experiments.describe("webframeworks", {
project: "my-project"
});
// Enable an experiment
await client.experiments.enable("webframeworks", {
project: "my-project"
});
// Disable an experiment
await client.experiments.disable("webframeworks", {
project: "my-project"
});# List all experiments with status
firebase experiments:list# Describe a specific experiment
firebase experiments:describe webframeworks
# Enable an experiment
firebase experiments:enable webframeworks
# Disable an experiment
firebase experiments:disable webframeworksSome commonly used Firebase Labs experiments include: