Is that possible using realm-cli to push a single function to Realm?

Seeing your previous question, on this forum it appears you may be confusing the Atlas UI with the Atlas CLI, when in reality both provide the ability to modify the same underlying Atlas App which is essentially a series of special directories/files that Realm uses for its various roles. The Atlas UI will show the Realm App in a browser-viewable interface, but it is also possible to also modify the filesystem of the Realm App and push the directory up to Atlas using the Realm CLI. You view steps for downloading the CLI onto your machine here.

Follow the steps below to

  1. Pull the current Realm app using realm-cli pull <your_realm_app_id>,
  2. Open the root folder in VSCode,
  3. Add your function to a new file within the functions subdirectory and
  4. Call realm-cli push --remote=<your_realm_app_id> -- to update the existing Realm app with the new function. Once you do this, you will see the changes in realm.

Check out the following page from the Atlas App Documentation for more details on updating Realm Apps from the CLI.