asdf 버전 관리자 필수 명령어 치트시트입니다.
검색 필드에 명령어 이름을 입력하거나 카테고리(플러그인, 버전 등)로 필터링하여 필요한 명령어를 찾으세요.
명령어 설명, 일반적인 옵션, 실용적인 사용 예제를 확인하세요.
복사 버튼을 클릭하면 클립보드에 복사되어 터미널에서 바로 사용할 수 있습니다.
asdf plugin add nodejsNode.js 플러그인 추가asdf plugin add pythonPython 플러그인 추가asdf plugin add erlang https://github.com/asdf-vm/asdf-erlang.git커스텀 URL에서 플러그인 추가asdf plugin list설치된 플러그인 표시asdf plugin list --urlsURL과 함께 플러그인 표시asdf plugin list all사용 가능한 모든 플러그인 표시asdf plugin remove nodejsNode.js 플러그인 제거asdf plugin remove pythonPython 플러그인 제거asdf plugin update nodejsNode.js 플러그인 업데이트asdf plugin update pythonPython 플러그인 업데이트asdf plugin update --all모든 플러그인 일괄 업데이트asdf install nodejs 20.11.0Node.js 20.11.0 설치asdf install nodejs latest최신 안정 Node.js 설치asdf install.tool-versions의 모든 버전 설치asdf uninstall nodejs 18.0.0Node.js 18.0.0 제거asdf uninstall python 3.9.0Python 3.9.0 제거asdf list nodejs설치된 Node.js 버전 표시asdf list설치된 모든 버전 표시asdf list all nodejs사용 가능한 모든 Node.js 버전 표시asdf list all nodejs 20Node.js 20.x 버전만 표시asdf latest nodejs최신 안정 Node.js 버전 표시asdf latest python최신 안정 Python 버전 표시asdf current모든 현재 버전 표시asdf current nodejs현재 Node.js 버전 표시asdf global nodejs 20.11.0글로벌 Node.js 버전 설정asdf global python latestPython을 최신 버전으로 글로벌 설정asdf global nodejs system시스템 Node.js 버전 사용asdf reshim nodejsNode.js shim 재생성asdf reshim python 3.12.0Python 3.12.0 shim 재생성asdf local nodejs 20.11.0로컬 Node.js 버전 설정asdf local python 3.12.0로컬 Python 버전 설정asdf local ruby latestRuby를 최신 버전으로 로컬 설정asdf shell nodejs 18.0.0이 셸 세션에서 Node.js 18.0.0 사용asdf shell python 3.11.0이 셸 세션에서 Python 3.11.0 사용asdf shell nodejs --unset셸 버전 설정 해제asdf where nodejs 20.11.0Node.js 20.11.0 설치 경로 표시asdf where python현재 Python 설치 경로 표시asdf which nodenode 실행 파일 경로 표시asdf which pythonpython 실행 파일 경로 표시asdf infoasdf 환경 정보 표시asdf updateasdf를 최신 안정 버전으로 업데이트asdf update --headasdf를 최신 개발 버전으로 업데이트asdf help전체 도움말 표시asdf help installinstall 명령어 도움말 표시asdf 명령어는 asdf 버전 관리자의 필수 명령어를 정리한 치트시트입니다. 플러그인 관리부터 버전 관리, 글로벌/로컬 설정까지 개발 환경 구성에 필요한 명령어를 포괄적으로 다룹니다. 각 명령어에는 설명, 일반 옵션, 원클릭 복사 가능한 실용적인 예제가 포함됩니다.
asdf global은 ~/.tool-versions에 기록하여 모든 디렉토리에서 사용되는 기본 버전을 설정합니다. asdf local은 현재 디렉토리의 .tool-versions에 기록하여 해당 프로젝트 내에서만 적용되는 버전을 설정합니다.
asdf shell은 현재 셸 세션에서만 유효한 임시 버전 설정입니다. 테스트나 확인을 위해 일시적으로 다른 버전을 사용하고 싶을 때 유용합니다. 셸을 닫으면 설정이 초기화됩니다.
asdf는 shim을 사용하여 명령어를 올바른 버전으로 라우팅합니다. npm install -g 등으로 글로벌 패키지를 설치한 후, 새 실행 파일을 인식시키기 위해 reshim이 필요합니다.
.tool-versions는 프로젝트에서 사용하는 런타임 버전을 정의하는 파일입니다. 이 파일을 저장소에 커밋하면 팀 전체가 동일한 버전을 사용할 수 있습니다. asdf install 명령으로 파일에 기재된 모든 버전을 일괄 설치할 수 있습니다.
asdf where는 버전의 설치 디렉토리를 반환합니다 (예: ~/.asdf/installs/nodejs/20.11.0). asdf which는 실행 파일의 구체적인 경로를 반환합니다 (예: ~/.asdf/installs/nodejs/20.11.0/bin/node).