Push config set-fcm

Open in

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

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.json

Configure FCM for a specific app:

ably push config set-fcm --service-account /path/to/service-account.json --app my-app

Configure FCM and output the result in JSON format:

ably push config set-fcm --service-account /path/to/service-account.json --json

See also

  • Push — Explore all ably push commands.
  • CLI reference — Full list of available commands.