Error while using docker-compose exec appsmith appsmithctl backup

I’m using appsmith community edition - docker compose, trying to run (docker-compose exec appsmith appsmithctl backup) command but I’m getting " ERROR: No such service: appsmith " despite being in the docker-compose.yml directory and appsmith docker compose running. So is there any steps or modifications I should do to run appsmithctl commands?