Fetching text
Once you’ve installed, authenticated, and configured the CLI, you’ll be able to pull down up-to-date text by running the CLI:./ditto/config.yml (relative to where you run the CLI command). To use a config file from a different location, provide the path via -c or --config flag:
5.x of the CLI is set up to pull text from the latest version of Ditto by default. However, it still contains support for all features from 4.x via the --legacy flag. To run the CLI in legacy mode, add the --legacy flag to any command that was supported by v4.5.2. View the legacy documentation for full details.
Scan
Thescan command analyzes a path for user-facing text and sends the candidates it finds to Ditto, where you can review them and turn them into Ditto components from within the web app.
<path> is the file or directory to scan. The CLI extracts text candidates, uploads them to Ditto, and prints a link to view progress and results in the web app:
Requires Node.js 20 or higher. Scan depends on packages that require Node
20+. See Installation.
--local along with --out-dir:
--prefix <prefix> to prefix the names of the output files.