Skip to content

Add note about configuration PATH environment variable in Linux OS to make installed tools globally be executable in shell from any directory. #42746

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

Merged
merged 6 commits into from
Oct 1, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions docs/core/tools/dotnet-tool-install.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,12 @@ Global tools are installed in the following directories by default when you spec

Executables are generated in these folders for each globally installed tool, although the actual tool binaries are nested deep into the sibling `.store` directory.

> [!NOTE]
> On Linux after installing a command-line tool with `dotnet tool`, the tool can be executed only from the `$HOME/.dotnet/tools` path.
> To make the tool executable from any directory, update the `PATH` environment variable.
> To make the updated `PATH` environment variable permanent in your shell, update your shell settings.
> For `Bash`, this is the `$HOME/.bashrc` file.

### `--tool-path` tools

Tools with explicit tool paths are stored wherever you specified the `--tool-path` parameter to point to. They're stored in the same way as global tools: an executable binary with the actual binaries in a sibling `.store` directory.
Expand Down
Loading