/looker-skills:using-looker-clifrom looker-skills
Documents Looker CLI operations including profile management, persistent session login, command discovery via meta tree/search, and API request body inspection with --describe-body and --template.
Ships in looker-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
looker-cli)This skill documents standard operations, session management, discovery workflows, and API payload tools in Looker CLI (looker-cli).
Profiles allow you to store connection configurations (host, port, credentials, tokens) for different Looker instances (e.g., development, staging, production) in ~/.config/looker-cli/config.yaml.
Add connection settings for a Looker instance using profile add:
looker-cli profile add <profile_name> --host <instance_host> --port <port>
Optional flags when creating a profile:
--client-id <id>: Set Looker API Client ID.--client-secret <secret>: Set Looker API Client Secret.--token <access_token>: Store a pre-acquired API access token.--refresh-token <refresh_token>: Store an OAuth refresh token.Example:
looker-cli profile add staging --host staging.looker.mycompany.com --port 443
List all configured profiles:
looker-cli profile ls
The active (default) profile is denoted with an asterisk (*):
dev (dev.looker.mycompany.com:443)
* staging (staging.looker.mycompany.com:443)
prod (prod.looker.mycompany.com:443)
Set a specific profile as your default active profile using profile use:
looker-cli profile use <profile_name>
Example:
looker-cli profile use prod
Subsequent commands will automatically execute against the active profile without needing explicit connection flags.
--profile)To execute a single command against a profile other than the default active profile, use the global --profile flag:
looker-cli <command> --profile <profile_name>
Examples:
# Query current user on production without changing active default profile
looker-cli user me --profile prod
# List projects in dev environment
looker-cli project ls --profile dev
Remove a stored profile definition using profile rm:
looker-cli profile rm <profile_name>
session login)looker-cli supports persistent authentication sessions, allowing commands to run without authenticating on every request.
Authenticate against the host defined in your active profile using configured API credentials:
looker-cli session login
Upon successful authentication, access credentials and session state are persisted to ~/.config/looker-cli/config.yaml.
--oauth)For user-scoped interactive logins using OAuth 2.0 PKCE, pass the --oauth flag:
looker-cli session login --oauth
Workflow:
config.yaml.--text)To display the authenticated access token to stdout (e.g., for piping into scripts or environment variables) instead of persisting it to the config file, pass --text:
looker-cli session login --text
View details about the currently active session (authenticated user ID, session workspace, expiration):
looker-cli session get
Switch your persistent session context between personal development workspace (dev) and production (production):
# Switch to personal development mode
looker-cli session update dev
# Switch to production mode
looker-cli session update production
Invalidate and terminate the active persistent session:
looker-cli session logout
looker-cli includes meta discovery utilities to inspect command hierarchies and search available API endpoints.
meta tree)Display the interactive CLI command tree:
looker-cli meta tree
--noun)To filter the tree for subcommands pertaining to a specific resource noun (e.g., project, dashboard, user, query), pass --noun:
looker-cli meta tree --noun project
Sample output:
project
├── branch
├── cat
├── checkout
├── create
├── deploy
│ └── key
├── directory
│ ├── create
│ ├── ls
│ └── rm
├── file
│ ├── cat
│ ├── create
│ ├── ls
│ ├── rm
│ └── update
├── import
├── ls
├── update
└── validate
--output json)Output the command structure as a JSON object:
looker-cli meta tree --noun query --output json
meta search)Search all high-level CLI commands and low-level API operations by keyword:
looker-cli meta search <KEYWORD>
Examples:
# Search for commands related to projects
looker-cli meta search project
# Search for commands related to users or authentication
looker-cli meta search user
Sample output:
Found 63 matching commands:
looker-cli api project create_project - Create Project
looker-cli api project deploy_to_production - Deploy To Production
looker-cli api project validate_project - Validate Project
looker-cli project create - Create a new project
looker-cli project validate - Validate a project
--describe-body & --template)looker-cli exposes low-level REST API endpoints under looker-cli api <group> <endpoint>. When creating or updating Looker resources via raw API commands, use --describe-body and --template to inspect expected parameters and structure payload files.
--describe-body)Pass --describe-body on an API command to output the formal JSON Schema of its request body. This lists all allowable parameters, data types, field descriptions, write-only flags, and allowed values (x-looker-values):
looker-cli api <group> <endpoint> --describe-body
Example: Inspect schema for creating a project
looker-cli api project create_project --describe-body
Sample snippet:
{
"properties": {
"name": {
"description": "Project display name",
"type": "string",
"x-looker-nullable": false
},
"pull_request_mode": {
"description": "The git pull request policy for this project. Valid values are: \"off\", \"links\", \"recommended\", \"required\".",
"type": "string",
"x-looker-nullable": false,
"x-looker-values": [
"off",
"links",
"recommended",
"required"
]
}
}
}
--template)Pass --template on an API command to print a clean JSON skeleton populated with default/empty values for writable fields:
looker-cli api <group> <endpoint> --template
Example: Generate template for creating a connection
looker-cli api connection create_connection --template
Sample output:
{
"database": "",
"db_timezone": "",
"dialect_name": "",
"host": "",
"name": "",
"port": ""
}
Combine --template with piping or file redirection to construct and submit POST/PUT payloads:
Generate and edit template file:
looker-cli api project create_project --template > new_project.json
Populate required fields in new_project.json:
{
"name": "my_new_project",
"pull_request_mode": "recommended"
}
Execute API request using payload file:
looker-cli api project create_project new_project.json
| Task | Command |
|---|---|
| Add Profile | looker-cli profile add dev --host dev.looker.com --port 443 |
| List Profiles | looker-cli profile ls |
| Set Default Profile | looker-cli profile use dev |
| Override Profile | looker-cli project ls --profile prod |
| Persistent Login | looker-cli session login |
| OAuth PKCE Login | looker-cli session login --oauth |
| Inspect Session | looker-cli session get |
| Command Tree | looker-cli meta tree |
| Tree by Resource | looker-cli meta tree --noun project |
| Search Commands | looker-cli meta search <keyword> |
| View Request Schema | looker-cli api <group> <endpoint> --describe-body |
| Generate JSON Template | looker-cli api <group> <endpoint> --template |
What SKILL.md sets; muted values are Claude Code's defaults
Generated from the plugin's indexed repository (looker-open-source/looker-skills) — no native marketplace selected
npx claudepluginhub p/looker-open-source-looker-skills27 skills in this plugin
/authenticating-looker-cliLooker Developer Onboarding: Step 3. Authenticates the Looker CLI using OAuth. Only execute this after Step 2 (CLI Verification using `installing-looker-cli`)./connecting-looker-to-bigqueryLooker Developer Onboarding: Step 4. Creates a database connection in Looker to Google BigQuery. Only execute this after Step 3 (CLI Authentication using `authenticating-looker-cli`)./creating-looker-dashboardLooker Developer Onboarding: Step 7 (Final Step). Creates a LookML dashboard in the project, imports it as a user-defined dashboard (UDD) in Looker, and iteratively refines it based on user feedback by syncing changes. Only execute this after Step 6 (Model Setup using `creating-lookml-model`)./creating-lookml-modelLooker Developer Onboarding: Step 6. Creates LookML views and models based on the user's goals, maps model connections, validates LookML, and runs verification queries. Only execute this after Step 5 (Project Setup using `setting-up-looker-project`)./exploring-data-for-lookerLooker Developer Onboarding: Step 1. Guides the agent to explore BigQuery data and define the onboarding goal. This is the first active step, to be executed immediately after reading the parent orchestrator `looker-developer-onboarding`./installing-looker-cliLooker Developer Onboarding: Step 2. Verifies that the Looker CLI is available in the PATH, or installs it from GitHub Releases if missing. Only execute this after Step 1 (Data Discovery using `exploring-data-for-looker`).Other plugins' skills for the same job