Configuration

motaword CLI application looks for .motaword/ directory to configure itself. It looks for configuration in this order:

  1. Working directory
  2. $HOME/.motaword
  3. /etc/.motaword

We keep 2 files in this directory:

  • credentials.json
  • config.json

credentials.json holds your MotaWord API client ID and client secret. This file can be generated via motaword CLI itself. See Authentication below for more information.

config.json lets you configure all aspects of your motaword CLI, and especially tailored for motaword translate command which is typically used in development and CI/CD environments. You can learn more about translate command below.

Unless you are using translate command, config.json file is optional.