1"use strict";(globalThis.webpackChunkaqua_docusaurus||=[]).push([[2560],{4084(e,a,n){n.r(a),n.d(a,{assets:()=>s,contentTitle:()=>r,default:()=>u,frontMatter:()=>l,metadata:()=>o,toc:()=>c});const o=JSON.parse('{"id":"tutorial/global-config","title":"Install tools globally","description":"aqua finds the configuration files from the current directory to the root directory.","source":"@site/docs/tutorial/global-config.md","sourceDirName":"tutorial","slug":"/tutorial/global-config","permalink":"/docs/tutorial/global-config","draft":false,"unlisted":false,"editUrl":"https://github.com/aquaproj/aqua/edit/main/website/docs/tutorial/global-config.md","tags":[],"version":"current","sidebarPosition":600,"frontMatter":{"sidebar_position":600},"sidebar":"tutorialSidebar","previous":{"title":"Configuration file path","permalink":"/docs/tutorial/config-path"},"next":{"title":"Guides","permalink":"/docs/guides/"}}');var i=n(4848),t=n(8453);const l={sidebar_position:600},r="Install tools globally",s={},c=[{value:"<code>aqua i</code> ignores global configuration by default",id:"aqua-i-ignores-global-configuration-by-default",level:2},{value:"See also",id:"see-also",level:2}];function d(e){const a={a:"a",admonition:"admonition",code:"code",h1:"h1",h2:"h2",header:"header",li:"li",p:"p",pre:"pre",ul:"ul",...(0,t.R)(),...e.components};return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(a.header,{children:(0,i.jsx)(a.h1,{id:"install-tools-globally",children:"Install tools globally"})}),"\n",(0,i.jsx)(a.p,{children:"aqua finds the configuration files from the current directory to the root directory."}),"\n",(0,i.jsx)(a.pre,{children:(0,i.jsx)(a.code,{className:"language-console",children:'$ pwd\n/tmp\n$ gh version\nFATA[0000] aqua failed aqua_version=1.19.2 error="command is not found" exe_name=gh program=aqua\n'})}),"\n",(0,i.jsxs)(a.p,{children:["If you want to install tools regardless the current directory,\nlet's add the global configuration.\nCreate a global configuration file and add the path to the environment variable ",(0,i.jsx)(a.code,{children:"AQUA_GLOBAL_CONFIG"}),".\nYou can change the global configuration file path freely."]}),"\n",(0,i.jsx)(a.pre,{children:(0,i.jsx)(a.code,{className:"language-console",children:'$ mkdir -p "${XDG_CONFIG_HOME:-$HOME/.config}/aquaproj-aqua"\n$ vi "${XDG_CONFIG_HOME:-$HOME/.config}/aquaproj-aqua/aqua.yaml"\n$ export AQUA_GLOBAL_CONFIG=${AQUA_GLOBAL_CONFIG:-}:${XDG_CONFIG_HOME:-$HOME/.config}/aquaproj-aqua/aqua.yaml\n'})}),"\n",(0,i.jsx)(a.pre,{children:(0,i.jsx)(a.code,{className:"language-yaml",children:"registries:\n- type: standard\n ref: v4.155.1 # renovate: depName=aquaproj/aqua-registry\n\npackages:\n- name: cli/[email protected]\n- name: junegunn/[email protected]\n"})}),"\n",(0,i.jsx)(a.pre,{children:(0,i.jsx)(a.code,{className:"language-console",children:"$ gh version\ngh version 2.2.0 (2021-10-25)\nhttps://github.com/cli/cli/releases/tag/v2.2.0\n"})}),"\n",(0,i.jsxs)(a.h2,{id:"aqua-i-ignores-global-configuration-by-default",children:[(0,i.jsx)(a.code,{children:"aqua i"})," ignores global configuration by default"]}),"\n",(0,i.jsxs)(a.admonition,{type:"caution",children:[(0,i.jsxs)(a.p,{children:[(0,i.jsx)(a.code,{children:"aqua i"})," ignores global configuration by default.\nTo install tools of global configuration by ",(0,i.jsx)(a.code,{children:"aqua i"}),", please set the ",(0,i.jsx)(a.code,{children:"-a"})," option."]}),(0,i.jsx)(a.pre,{children:(0,i.jsx)(a.code,{className:"language-console",children:"$ aqua i -a\n"})})]}),"\n",(0,i.jsx)(a.h2,{id:"see-also",children:"See also"}),"\n",(0,i.jsxs)(a.ul,{children:["\n",(0,i.jsx)(a.li,{children:(0,i.jsx)(a.a,{href:"/docs/guides/team-config",children:"Share aqua configuration for teams and organizations"})}),"\n",(0,i.jsx)(a.li,{children:(0,i.jsx)(a.a,{href:"/docs/guides/install-all-packages",children:"Install Standard Registry's all packages very quickly"})}),"\n"]})]})}function u(e={}){const{wrapper:a}={...(0,t.R)(),...e.components};return a?(0,i.jsx)(a,{...e,children:(0,i.jsx)(d,{...e})}):d(e)}},8453(e,a,n){n.d(a,{R:()=>l,x:()=>r});var o=n(6540);const i={},t=o.createContext(i);function l(e){const a=o.useContext(t);return o.useMemo(function(){return"function"==typeof e?e(a):{...a,...e}},[a,e])}function r(e){let a;return a=e.disableParentContext?"function"==typeof e.components?e.components(i):e.components||i:l(e.components),o.createElement(t.Provider,{value:a},e.children)}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.