Skip to content

Commit cffe401

Browse files
authored
added information on the escaping of $ in the CF API Key (#2050)
1 parent 909ea4e commit cffe401

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

README.md

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -617,7 +617,20 @@ To manage a CurseForge modpack automatically with upgrade support, pinned or lat
617617
618618
> **NOTES:**
619619
>
620-
> A CurseForge API key is **required** to use this feature. Go to their [developer console](https://console.curseforge.com/), generate an API key, and set the environment variable `CF_API_KEY`.
620+
> A CurseForge API key is **required** to use this feature. Go to their [developer console](https://console.curseforge.com/), generate an API key, and set the environment variable `CF_API_KEY`.
621+
>
622+
> When entering your API Key in a docker compose file you will need to escape any `$` character with a second `$`.
623+
>
624+
> Example if your key is `$11$22$33aaaaaaaaaaaaaaaaaaaaaaaaaa`:
625+
> ```yaml
626+
> environment:
627+
> CF_API_KEY: '$$11$$22$$33aaaaaaaaaaaaaaaaaaaaaaaaaa'
628+
> ```
629+
> If you use `docker run` you will need to escape the `$` with a `\`.
630+
> Example:
631+
> ```shell
632+
> docker run ... -e "CF_API_KEY=\$11\$22\$33aaaaaaaaaaaaaaaaaaaaaaaaaa"
633+
> ```
621634
>
622635
> Be sure to use the appropriate [image tag for the Java version compatible with the modpack](#running-minecraft-server-on-different-java-version).
623636
>

0 commit comments

Comments
 (0)