From 738a89ffe18e18d418c3fc0a1bb556cf55520722 Mon Sep 17 00:00:00 2001 From: Jordi Boggiano Date: Tue, 12 Jan 2021 16:19:29 +0100 Subject: [PATCH] Doc tweaks, fixes composer/getcomposer.org#178 --- doc/03-cli.md | 2 ++ doc/articles/authentication-for-private-packages.md | 3 +-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/doc/03-cli.md b/doc/03-cli.md index 0561bebef..7aba323a7 100644 --- a/doc/03-cli.md +++ b/doc/03-cli.md @@ -943,6 +943,8 @@ The `COMPOSER_HOME` var allows you to change the Composer home directory. This is a hidden, global (per-user on the machine) directory that is shared between all projects. +Use `composer config --global home` to see the location of the home directory. + By default, it points to `C:\Users\\AppData\Roaming\Composer` on Windows and `/Users//.composer` on macOS. On \*nix systems that follow the [XDG Base Directory Specifications](https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html), diff --git a/doc/articles/authentication-for-private-packages.md b/doc/articles/authentication-for-private-packages.md index 1c065cb6d..11da2f035 100644 --- a/doc/articles/authentication-for-private-packages.md +++ b/doc/articles/authentication-for-private-packages.md @@ -80,10 +80,9 @@ To fix this you need to open the file in an editor and fix the error. To find th your global `auth.json`, execute: ```sh -composer config --global --list +composer config --global home ``` -And look for the `[home]` section. (It is by default `~/.composer` or `%APPDATA%/Composer` on Windows) The folder will contain your global `auth.json` if it exists. You can open this file in your favorite editor and fix the error.