From 58ff68267cdb211d4ba956fb477c7b76655f5fac Mon Sep 17 00:00:00 2001 From: Chris Reynolds Date: Fri, 22 Nov 2024 14:16:25 -0700 Subject: [PATCH] use one-liner to store license directly to auth.json but provide a manual step for doing it the old way --- .../addons/object-cache/howto/wordpress.md | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/source/content/addons/object-cache/howto/wordpress.md b/source/content/addons/object-cache/howto/wordpress.md index 01d07359c7..52b8eb6f77 100644 --- a/source/content/addons/object-cache/howto/wordpress.md +++ b/source/content/addons/object-cache/howto/wordpress.md @@ -117,21 +117,19 @@ Refer to the [official Object Cache Pro documentation](https://objectcache.pro/d ``` 1. Commit and push this file to your site. -1. Obtain a license token to use in the following authentication steps. - - ```bash - terminus remote:wp "." -- eval "echo getenv('OCP_LICENSE');" - ``` - -1. Create the authentication token and add your license token to Composer. You can do this automatically with the following command or create it manually with the steps below. - +1. Obtain the license token and apply it directly to the Composer `auth.json` to be able to authenticate against Object Cache Pro's Composer repository. + ```bash{promptUser: user} - composer config --auth http-basic.objectcache.pro token + composer config --auth http-basic.objectcache.pro token $(terminus remote:wp . -- eval "echo getenv('OCP_LICENSE');") ``` - + + This will pull the Object Cache Pro license token directly into the `auth.json` file. + **Manually:** 1. Create an `auth.json` file in your directory. + + 1. Run `terminus remote:wp . -- eval "echo getenv('OCP_LICENSE');")` to output the token to your terminal, then copy it into the `password` field in the next step. 1. Add the following code to the `auth.json` file.