Sudo: nextcloud.enable-https: command not found

Hey, so I have been working on a Snap build of NextCloud on my RaspberryPi (Pi OS Lite).
I want to enable HTTPS for this, but when I try running sudo nextcloud.enable-https self-signed,
I get the following error: sudo: nextcloud.enable-https: command not found.
This error also accours when I do sudo nextcloud.enable-https lets-encrypt.

I have no clue what is wrong, so if someone could help me out. Here is some information that may help out. I dont know a lot about Nextcloud, so if you need anything else please let me know.

OS: Raspberry PI OS Lite (32-bits)
Installation: Snap 2.51.1
NextCloud: 21.0.3snap1