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: bulk_upload_cli/README.md
+25-2Lines changed: 25 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,6 +20,7 @@ For more related resources and support services, see [Help & Support](https://cl
20
20
-[Creating a CSV from a Unity Cloud project](#creating-a-csv-from-a-unity-cloud-project)
21
21
-[Edit metadata in the CSV file](#edit-metadata-in-the-csv-file)
22
22
-[Use an existing configuration file](#use-an-existing-configuration-file)
23
+
-[Index assets from VCS](#index-assets-from-vcs)
23
24
-[Optimize asset creation and upload](#optimize-asset-creation-and-upload)
24
25
-[Use keybindings](#use-keybindings)
25
26
-[Replicate the folder structure with collections](#replicate-the-folder-structure-with-collections)
@@ -72,6 +73,7 @@ Select one of the following actions:
72
73
73
74
-**Upload local assets**: Upload assets from your local machine to the cloud. See [Select the input method](#select-the-input-method) section for more information.
74
75
-**Update assets' metadata**: Update the metadata of existing assets in the cloud. See [Creating a csv from a Unity Cloud project](#creating-a-csv-from-a-unity-cloud-project) section for more information.
76
+
-**Index assets from VCS**: Select this option to index assets from a version control system (VCS) to the cloud. See the [Index assets from VCS](#index-assets-from-vcs) section for more information.
75
77
### Select the input method
76
78
77
79
Select one of the following strategies as the input method for bulk asset creation:
@@ -139,6 +141,27 @@ To use an existing configuration file, follow these steps:
139
141
3. On the next run with the `--create` flag, you can add the `--config` flag followed by the name of the configuration file you created. All your answers from the first run will be loaded from the configuration file.
140
142
4. Alternatively, you can use the `--config-select` flag to select from a list of existing configuration files.
141
143
144
+
### Index assets from VCS
145
+
146
+
To index assets from a version control system (VCS) to the cloud, follow these steps:
147
+
1. Run the CLI tool with the `--create` flag.
148
+
2. When prompted to choose an action, select `Index assets from VCS`.
149
+
3. You will be prompted to select an existing VCS integration or create a new one.
150
+
- To create a new VCS integration, you will need to provide the following information:
151
+
- The VCS provider (for the moment only `plasticSCM` is supported).
152
+
- The server URL.
153
+
- Your authentication token.
154
+
4. You will be prompted to select a repository from the VCS integration. Select the repository you want to index.
155
+
5. You will be prompted to select a branch from the repository. Select the branch you want to index.
156
+
6. You will be prompted to select a folder from the branch. Select the folder you want to index. Use the '. (select this directory)' when you're in the folder you want to index; select '.. (go back)' to go back to the parent folder.
157
+
7. You will be prompted to select the grouping strategy for the assets:
158
+
- group files by name: Select this option if your assets are following a naming convention, for example, blueasset.fbx, blueasset.png.
159
+
- group files by folder: Select this option if your assets are organized by folder, that is, all relevant files are in distinct folders.
160
+
- one file = one asset: Select this option if no grouping is necessary. Each file in the asset folder and its subfolders is created as an asset.
161
+
8. Answer the next questions normally.
162
+
163
+
At the end of the process, the CLI tool will create assets with files from the VCS mapped in a new dataset called `VCS Dataset`.
164
+
142
165
### Optimize asset creation and upload
143
166
144
167
Depending on your network, the number of assets, and the size of the assets, you can adjust the following settings in the `app_settings.json` file to optimize asset creation and upload:
@@ -179,9 +202,9 @@ Here's an example of how to set the environment variables in the `app_settings.j
0 commit comments