Installation and authentication of the Ditto CLI
npm
5.2 or higherUsing an env variable for your API key
$HOME/.config/ditto
; the default path can be overwritten by specifying a custom one via the environment variable DITTO_CONFIG_FILE
.The Ditto API key is read from the file at the path stored at DITTO_CONFIG_FILE
unless it’s explicitly provided by the env var DITTO_API_KEY
.Updating your API key
$HOME/.config/ditto
file and you’ll be prompted for a new key the next time that the CLI executes./ditto
directory from where you’re running the CLI. (For more information on the structure of files pulled by Ditto, see files)
Because the Ditto CLI updates your string files locally, you can continue to manage it as you would with any other product update (push it to staging, commit changes to a branch, etc.).