crowdin init
Description​
Generate Crowdin CLI configuration skeleton
Synopsis​
crowdin init [OPTIONS]
Options​
-d, --destination=…
Place where the configuration skeleton should be saved (default: "crowdin.yml")
-T, --token=…
Personal access token required for authentication
-i, --project-id=…
Numeric ID of the project
--base-path=…
Path to your project directory on a local machine
--base-url=…
Base URL of Crowdin server for API requests execution
-s, --source=…
Path to the source files
-t, --translation=…
Path to the translation files
--no-preserve-hierarchy
Strip the common parent directory from the file paths in the Crowdin project
--quiet
Generate the configuration skeleton without interactive prompts
-h, --help
Display help message and exit
Global Options​
-v, --verbose
Provide more information about the command execution
-c, --config=…
Specify a path to the configuration file
--identity=…
Specify a path to user-specific credentials
--no-colors
Disable colors and styles
--no-progress
Disable progress on executed command
-o, --output=…
Change output format (choices: "json", "toon", "plain")
Examples​
Instead of interactive mode, you can also pass the parameters directly to the command:
crowdin init \
--base-path "." \
--base-url "https://api.crowdin.com" \
-i "1" \
-T "personal-access-token" \
-s "/locales/**/*" \
-t "/%two_letters_code%/%original_file_name%"
As a result, the configuration file will be filled with the passed parameters.
Notes​
Warning: The browser authorization token you receive has an expiration period of 30 days. This means that after 30 days, the token will expire and you need to generate a new token to continue using CLI.