Skip to main content

terminus env:metrics


Displays the pages served and unique visit metrics for the specified site environment. The most recent data up to the current day is returned.

Example Usage

terminus env:metrics --period PERIOD --datapoints DATAPOINTS --format FORMAT --fields FIELDS --field FIELD -- <site>.<env>

env:metrics <site>.<env> Displays metrics for <site>'s <env> environment.

env:metrics <site> Displays the combined metrics for all of <site>'s

env:metrics <site> --fields=datetime,pages_served Displays only the pages





--ansiForce (or disable --no-ansi) ANSI output
--datapointsHow much data to return in total, or 'auto' to select a resonable default based on the selected period.
--defineDefine a configuration item value.
--fieldSelect just one field, and force format to *string*.
--fieldsAvailable fields: Period (datetime), Visits (visits), Pages Served (pages_served), Cache Hits (cache_hits), Cache Misses (cache_misses), Cache Hit Ratio (cache_hit_ratio)
--formatFormat the result data. Available formats: csv,json,list,null,php,print-r,sections,string,table,tsv,var_dump,var_export,xml,yaml
--helpDisplay help for the given command. When no command is given display help for the <info>list</info> command
--no-ansiNegate the "--ansi" option
--no-interactionDo not ask any interactive question
--periodThe time period for each data point (month|week|day)
--quietDo not output any message
--verboseIncrease the verbosity of messages: 1 for normal output (-v), 2 for more verbose output (-vv), and 3 for debug (-vvv)
--versionDisplay this application version
--yesAnswer all confirmations with "yes"
Back to all commands