From 5f1d2f69408c6b7c6236a7e1160d26e0e8e6f1df Mon Sep 17 00:00:00 2001 From: Andrii Bodnar Date: Fri, 20 Oct 2023 12:06:59 +0300 Subject: [PATCH] docs: add example for the init command --- website/mantemplates/crowdin-generate.adoc | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/website/mantemplates/crowdin-generate.adoc b/website/mantemplates/crowdin-generate.adoc index b83bdbebb..4ce9b0d26 100644 --- a/website/mantemplates/crowdin-generate.adoc +++ b/website/mantemplates/crowdin-generate.adoc @@ -15,6 +15,23 @@ include::{includedir}/{command}.adoc[tag=picocli-generated-man-section-options] include::{includedir}/{command}.adoc[tag=picocli-generated-man-section-footer] +=== 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%" \ + --preserve-hierarchy +---- + +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.