looker-open-source/looker-skills

installing-looker-cli

Looker Developer Onboarding: Step 2.

소스 보기

사용 방법

  1. 설치 명령을 복사하고 자신의 에이전트 환경에 설치하기 전에 소스 패키지를 확인하세요.
  2. 필요한 도구, 인증 정보, 지원 환경은 원본 문서에서 확인하세요.
  3. 입력과 원하는 산출물을 설명하고 출처와 결과를 대조하세요.
npx skills add https://github.com/looker-open-source/looker-skills --skill installing-looker-cli

시작 전 확인

  • 설치에는 모델 구독, API 한도, 파일 접근 권한이 포함되지 않습니다.
  • 별점 수와 설치 수는 활동 지표이며 독립적인 품질·보안 검증이 아닙니다.
원본 Skill 문서

원본 저장소의 제목, 예시, 코드, 표, 링크, 이미지를 유지해 표시합니다.

Installing Looker CLI

Checks if looker-cli is already available on the system. If it is not found, downloads and installs the appropriate pre-compiled binary from the GitHub Releases page of the looker-cli repository (https://github.com/looker-open-source/looker-cli/releases).

Prerequisites

  • Active internet connection to download the binary from GitHub.
  • Privileges to write to local binary directories (e.g. /usr/local/bin or

~/.local/bin).

Instructions

1. Check for Existing Installation

Before downloading, check if the CLI is already installed and accessible:

bash
looker-cli --help

If this command executes successfully and prints the help menu, the CLI is ready. Skip the installation steps below and proceed directly to Step 3 (Authentication).


2. Perform OS-Specific Installation

If looker-cli is not found, determine the operating system of the environment and execute the corresponding installation steps.

Option A: macOS & Linux

  1. Retrieve latest release tag: Query the GitHub API or check the releases

page (https://github.com/looker-open-source/looker-cli/releases) to identify the latest version tag (e.g., v1.0.0).

  1. Download and install: Run the following sequence to download, rename,

and move the binary to your local bin path:

For macOS (arm64 Apple Silicon):

bash
    curl -Lo looker-cli https://github.com/looker-open-source/looker-cli/releases/latest/download/looker-cli-darwin-arm64
    chmod +x looker-cli
    mkdir -p ~/.local/bin && mv looker-cli ~/.local/bin/

For macOS (amd64 Intel):

bash
    curl -Lo looker-cli https://github.com/looker-open-source/looker-cli/releases/latest/download/looker-cli-darwin-amd64
    chmod +x looker-cli
    mkdir -p ~/.local/bin && mv looker-cli ~/.local/bin/

For Linux (amd64):

bash
    curl -Lo looker-cli https://github.com/looker-open-source/looker-cli/releases/latest/download/looker-cli-linux-amd64
    chmod +x looker-cli
    mkdir -p ~/.local/bin && mv looker-cli ~/.local/bin/

Note: If `~/.local/bin` is not in your `PATH` or you have root permissions, you can choose to move it to `/usr/local/bin/` instead.

Option B: Windows

  1. Download: Download the latest Windows binary (e.g. using PowerShell):
powershell
    Invoke-WebRequest -Uri "https://github.com/looker-open-source/looker-cli/releases/latest/download/looker-cli-windows-amd64.exe" -OutFile "looker-cli.exe"
  1. Add to Path: Move looker-cli.exe to a directory in your system

%PATH% (or add its directory to the Environment Variables).


3. Verify the Installation

Run the help command again to verify the installation succeeded:

bash
looker-cli --help

Confirm that the output shows the Looker CLI help menu correctly. If it fails, check that the destination directory is indeed in your shell's PATH.

관련 작업

같은 저장소의 Skills

더 많은 Skills

모든 Skills