Skip to content

Commit

Permalink
docs: add example for the init command
Browse files Browse the repository at this point in the history
  • Loading branch information
andrii-bodnar committed Oct 20, 2023
1 parent aca365a commit 5f1d2f6
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions website/mantemplates/crowdin-generate.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -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.

0 comments on commit 5f1d2f6

Please sign in to comment.