Use the ably push config set-fcm command to configure FCM push notifications for an app.
Synopsis
ably push config set-fcm --service-account <path> [options]Options
--service-account Required
Required
The path to the FCM service account JSON file.
--app
The app ID to configure.
--json
Output results as compact JSON. Mutually exclusive with --pretty-json.
--pretty-json
Output results in formatted JSON. Mutually exclusive with --json.
--verbose | -v
Enable verbose logging. Can be combined with --json or --pretty-json.
Examples
Configure FCM with a service account:
ably push config set-fcm --service-account /path/to/service-account.jsonConfigure FCM for a specific app:
ably push config set-fcm --service-account /path/to/service-account.json --app my-appConfigure FCM and output the result in JSON format:
ably push config set-fcm --service-account /path/to/service-account.json --jsonSee also
- Push — Explore all
ably pushcommands. - CLI reference — Full list of available commands.