Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document generating a default token on runner resource-class create [RT-6] #5755

Merged
merged 1 commit into from
Oct 8, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
13 changes: 3 additions & 10 deletions jekyll/_cci2/runner-installation.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -51,21 +51,14 @@ For example, if your GitHub URL is `https://github.com/circleci`, then use: `cir
. Create a resource class for your runner for your namespace using the following command:
+
```
circleci runner resource-class create <resource-class> <description>
circleci runner resource-class create <resource-class> <description> --generate-token
```
+
For example, `circleci runner resource-class create my-namespace/my-resource-class my-description`.
For example, `circleci runner resource-class create my-namespace/my-resource-class my-description --generate-token`.
+
NOTE: To create resource classes and tokens you need to be an organization administrator in the VCS provider.
. Create a token for authenticating the above resource-class using the following command:
+
```
circleci runner token create <resource-class> <nickname>
```
+
For example, `circleci runner token create my-namespace/my-resource-class my-token`. This will print a generated runner configuration including the authentication token.

CAUTION: The token cannot be retrieved again, so be sure to store it safely.
CAUTION: The default token cannot be retrieved again, so be sure to store it safely.

== Job running requirements

Expand Down