You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: website/docs/advanced.md
+33Lines changed: 33 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -168,6 +168,39 @@ Example of the configuration:
168
168
]
169
169
```
170
170
171
+
### Argument File
172
+
173
+
Crowdin CLI supports loading command-line arguments from a file.
174
+
The arguments can be stored in a plain text file and be passed to the CLI using the `@filename` syntax.
175
+
176
+
This can be useful when:
177
+
- You have a long list of options
178
+
- You want to reuse the same configuration
179
+
- You want to avoid issues with escaping special characters (like quotes) on Windows shells (PowerShell, cmd.exe)
180
+
181
+
#### How to use
182
+
Create a text file containing the arguments you would normally type in the command line.
183
+
Each argument must be separated by a new line.
184
+
In your CLI command, reference the file using `@` followed by the filename.
185
+
186
+
Example file (args.txt):
187
+
```
188
+
--branch feat
189
+
--directory src
190
+
```
191
+
192
+
Run CLI using file:
193
+
194
+
```bash
195
+
crowdin string list @args.txt
196
+
```
197
+
198
+
For PowerShell:
199
+
200
+
```powershell
201
+
crowdin string list "@args.txt"
202
+
```
203
+
171
204
### Multilingual Files
172
205
173
206
For multilingual file formats (containing multiple languages in one file) you can use the `multilingual` option in the configuration. This option allows you to omit the language placeholders in the `translation` pattern:
0 commit comments