You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
BREAKING: hide functions:config:* commands by default (#9340)
We'll gate all mutating functions:config:* commands behind the new `legacyRuntimeConfigCommands` experiment. We'll keep functions:config:{get,export} available for inspection.
Includes some minor refactoring to align deprecation message across all surfaces.
```shell
$ firebase functions:config:set FOO=bar
Error: DEPRECATION NOTICE: Action required before March 2026
The functions.config() API and the Cloud Runtime Config service are deprecated. Deploys that rely on functions.config() will fail once Runtime Config shuts down in March 2026.
The legacy functions:config:* CLI commands are deprecated and will be removed before March 2026.
Migrate configuration to the Firebase Functions params APIs:
import { defineJsonSecret } from "firebase-functions/params";
const config = defineJsonSecret("RUNTIME_CONFIG");
exports.myFunction = functions
.runWith({ secrets: [config] })
.https.onRequest((req, res) => {
const apiKey = config.value().service.key;
// ...
});
To convert existing runtime config values, try the interactive migration command:
firebase functions:config:export
Learn more: https://firebase.google.com/docs/functions/config-env#migrate-config
To run this legacy command temporarily, run the following command and try again:
firebase experiments:enable legacyRuntimeConfigCommands
```
constFUNCTIONS_CONFIG_DEPRECATION_MESSAGE=`DEPRECATION NOTICE: Action required before March 2026
21
+
22
+
The functions.config() API and the Cloud Runtime Config service are deprecated. Deploys that rely on functions.config() will fail once Runtime Config shuts down in March 2026.
23
+
24
+
The legacy functions:config:* CLI commands are deprecated and will be removed before March 2026.
25
+
26
+
Learn how to migrate from functions.config() to the params package:
0 commit comments