Skip to main content

mesmer util

Useful utilities.

mesmer util env#

This will print whatever values the CLI gathers from its environment.

Passing --show-tokens will include auth tokens in the output.

$ mesmer util envInteractive .............. trueTelemetry Enabled ........ trueTenant ID ................ some-tenant.mesmerhq.comProject ID ............... xxxxxxxxxxxxxxxxxxxxxxxxAuth Token ............... [hidden]Config Directory ......... /home/yourusername/.config/mesmerAuth Config Location ..... /home/yourusername/.config/mesmer/auth.ymlProject Config Location .. /home/yourusername/Dev/mesmer-cli/.mesmer.yml

mesmer util telemetry#

This command lets you enable, disable, and inspect the CLI's telemetry functionality.

# Disable telemetry$ mesmer util telemetry disable โœ“  Deleted your client UUID โœ“  Disabled telemetry for this user    From here on in, no usage statistics will be sent.
# Enable telemetry$ mesmer util telemetry enable โœ“  Enabled telemetry    Thanks for helping us improve the Mesmer CLI!
# See what's inside a telemetry ping$ mesmer util telemetry exampleTelemetry is currently enabled.
Here's what an example telemetry ping would look like:
client_id .... 48ce9a0d-cd64-44a7-8938-62a2dcc2b97binteractive .. true(more fields may be present, run this on your machine to see them)
If telemetry is enbabled, this data would be sent to Google Analytics, so we can improve the CLI.

mesmer util completions#

This command will generate tab-completions for your shell of choice.

Right now, we support:

  • Bash
  • Fish
  • PowerShell
# Install bash completions in the current session$ source <(mesmer util completions)
# Install completions more permanently# (This is probably not the most idiomatic way to do it. Consult your dotfiles.)$ mesmer util completions >~/.mesmer-bash-completions.bash$ echo "source ~/.mesmer-bash-completions.bash" >> ~/.bashrc
# Generate completions for powershell$ mesmer util completions powershell >mesmer-completions.ps1