<p>You're missing the <code>--non-interactive</code> tag to your registration command.</p>

<p>Full command should be:</p>

<pre><code>gitlab-runner register --non-interactive --locked false --run-untagged true --tag-list java --name foo --registration-token %token% --url https://myurl --executor shell
</code></pre>

<p>Relevant documentation for <a href="https://gitlab.com/gitlab-org/gitlab-runner/blob/master/docs/commands/README.md#non-interactive-registration" rel="nofollow noreferrer">non-interactive registration</a>.</p>

CC BY-SA 3.0
2017-11-24T09:35:38.490Z
2017-11-24T09:35:38.490Z
Rekovni
<p>I'm trying to write a windows batch file to automate the gitlab runner registration : </p>

<pre><code>SET /p token=Token ?:
gitlab-runner register --locked false --run-untagged true --tag-list java --name foo --token %token% --url https://myurl --executor
</code></pre>

<p>I found the parameters in help documentation (<code>gitlab-runner register --help</code>) but it doesn't care about them. It still continues to ask question whose answers are in the parameters.</p>

<p>Thanks for helping</p>

<gitlab><gitlab-ci-runner>
Gitlab CI Runner command line doesn't care about --parameters
GGO
# Gitlab CI Runner command line doesn't care about --parameters

(Asked by: username_0 on 2017-11-24)

I'm trying to write a windows batch file to automate the gitlab runner registration : 
SET /p token=Token ?:
gitlab-runner register --locked false --run-untagged true --tag-list java --name foo --token %token% --url https://myurl --executor

I found the parameters in help documentation (gitlab-runner register --help) but it doesn't care about them. It still continues to ask question whose answers are in the parameters.
Thanks for helping

**Tags:** gitlab, gitlab-ci-runner


---

## 1 answers

### Answer by username_1 on 2017-11-24. Score: 3 | Accepted answer

You're missing the --non-interactive tag to your registration command.
Full command should be:
gitlab-runner register --non-interactive --locked false --run-untagged true --tag-list java --name foo --registration-token %token% --url https://myurl --executor shell

Relevant documentation for non-interactive registration.


---

