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
Bulk functionality is available for many Code42 CLI methods, more details on which commands have bulk capabilities can be found in the [Commands Documentation](../commands.md).
4
+
5
+
All bulk methods take a CSV file as input.
6
+
7
+
The `generate-template` command can be used to create a CSV file with the necessary headers for a particular command.
8
+
9
+
For instance, the following command will create a file named `devices_bulk_deactivate.csv` with a single column header row of `guid`.
10
+
```bash
11
+
code42 devices bulk generate-template deactivate
12
+
```
13
+
14
+
The CSV file can contain more columns than are necessary for the command, however then the header row is **required**.
15
+
16
+
If the CSV file contains the *exact* number of columns that are necessary for the command then the header row is **optional**, but columns are expected to be in the same order as the template.
17
+
18
+
To run a bulk method, simply pass the CSV file path to the desired command. For example, you would use to following command to deactivate multiple devices within your organization at once:
0 commit comments