GitLab CI "when manual" from command

I want manual deployment button for gitlab ci but don’t want to access it from gitlab UI.
Are there some other method to hit that manual button, like some command or variable while pushing commits or some other method?

not sure whether it does exactly what you want, but this seems closest to an answer to your question: https://docs.gitlab.com/ee/api/jobs.html#play-a-job