Kanmi Suite CLI
Unified interface for analytics and SEO.
Single kanmi command to access GA4, Search Console, and Looker Studio. Configuration management, colorized output, smart command routing.
Install
Install globally via npm:
npm install -g kanmi-suite-cli
Managed Tools
| Tool | Command | Purpose |
|---|---|---|
| GSC CLI | kanmi gsc |
Search Console data retrieval |
| GA4 CLI | kanmi ga4 |
Google Analytics 4 reporting |
| Looker CLI | kanmi looker |
Looker Studio report management |
Features
Smart Routing
Automatically routes commands to the appropriate underlying tool.
Configuration
Save defaults, manage settings, store frequently used parameters.
Colorized Output
Enhanced output with success, error, warning, and info messages.
Tool Management
Install, update, and manage all CLI tools with dependency checking.
Usage
Tool Management
kanmi status # Check installation status
kanmi install # Install all tools
kanmi update # Update to latest versions
Configuration
kanmi config # View configuration
kanmi config set default-project 123 # Set value
kanmi config defaults # Show saved defaults
Tool Commands
# Search Console
kanmi gsc sites
kanmi gsc query https://example.com
# Google Analytics 4
kanmi ga4 report -p 123456 -m users -d country
# Looker Studio
kanmi looker list
kanmi looker export -i report_id
Authentication
Each tool requires Google Cloud OAuth setup. Run any command to trigger the authentication flow:
kanmi gsc sites # Triggers GSC OAuth
kanmi ga4 properties # Triggers GA4 OAuth
kanmi looker list # Triggers Looker OAuth
Create a .env file with your credentials:
CLIENT_ID=your-google-oauth-client-id
CLIENT_SECRET=your-google-oauth-client-secret