Looker CLI
Looker Studio from the command line.
List, export, and clone Looker Studio reports via Google Drive API. Perfect for dashboard automation, backups, and client templating.
View on NPMInstall
Install globally via npm:
npm install -g kanmi-looker-cli
Or as part of the complete suite:
npm install -g kanmi-suite-cli
Features
List Reports
View all accessible reports with metadata and permissions.
Export Reports
Download as PDF or export metadata as JSON.
Clone Reports
Create copies for templating or client customization.
Automation Ready
Perfect for CI/CD pipelines and scheduled reporting.
Usage
Authentication
looker-cli auth
List Reports
looker-cli list --format table
Export as PDF
looker-cli export \
--id "report_id" \
--format pdf \
--output "dashboard.pdf"
Export Metadata
looker-cli export \
--id "report_id" \
--format json \
--output "report-metadata.json"
Clone Report
looker-cli clone \
--id "report_id" \
--name "Q1 Dashboard - Copy" \
--folder "Templates"
Filter Reports
looker-cli list \
--filter "name:contains:Dashboard" \
--format json
Setup
Requires a Google Cloud Project with Google Drive API enabled. Looker Studio reports are managed through Drive.
- Go to Google Cloud Console
- Enable Google Drive API
- Create OAuth2 credentials (Desktop application)
- Download credentials JSON
# Environment variables
GOOGLE_CREDENTIALS_PATH=/path/to/credentials.json
LOOKER_OUTPUT_DIR=/path/to/exports