looker-open-source/looker-skills

setting-up-looker-project

Looker Developer Onboarding: Step 5.

소스 보기

사용 방법

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

시작 전 확인

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

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

Setting Up Looker Project

Creates a new Looker project and configures it with a local bare Git repository.

Prerequisites

  • Looker CLI must be installed and authenticated (see installing-looker-cli

and authenticating-looker-cli skills).

Instructions

1. Switch to the Development Workspace

Switch to the 'dev' workspace (required for creating or modifying project configurations). It is recommended to chain this with project operations to guarantee dev workspace persistence:

bash
looker-cli session update dev

2. Create the Project

Write the project name payload to /tmp/project_create.json:

json
{
  "name": "{project_id}"
}

Create the Looker project using the project import command (chained with session update dev):

bash
looker-cli session update dev && looker-cli project import /tmp/project_create.json
[!NOTE] Use a unique, URL-safe name for {project_id} (e.g., my_new_project).

3. Configure Local Bare Git Repository

Write the Git configuration payload to /tmp/project_git.json:

json
{
  "git_service_name": "bare"
}

Configure the project to use a local bare Git repository:

bash
looker-cli session update dev && looker-cli project update {project_id} /tmp/project_git.json
[!NOTE] This sets up a local Git repository on the Looker server, which is ideal for quick onboarding without needing external Git hosting.

4. Verify Project Setup

Retrieve the project details to verify that Git was correctly configured:

bash
looker-cli project cat {project_id}

Ensure the output indicates that uses_git is true and git_remote_url is not null (it will look like ../../bare_models/{project_id}.git).

[!NOTE] There might be a slight propagation delay on the Looker server after updating Git. If the project cat command fails (e.g., with a 400 error), wait a few seconds and retry.

관련 작업

같은 저장소의 Skills

더 많은 Skills

모든 Skills