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: cmd/storesBulkOperations.go
+19-5
Original file line number
Diff line number
Diff line change
@@ -106,11 +106,25 @@ var importStoresCmd = &cobra.Command{
106
106
varstoresCreateFromCSVCmd=&cobra.Command{
107
107
Use: "csv --file <file name to import> --store-type-id <store type id> --store-type-name <store type name> --results-path <filepath for results> --dry-run <check fields only>",
108
108
Short: "Create certificate stores from CSV file.",
109
-
Long: `Certificate stores: Will parse a CSV and attempt to create a certificate store for each row with the provided parameters.
110
-
'store-type-name' OR 'store-type-id' are required.
111
-
'file' is the path to the file to be imported.
112
-
'resultspath' is where the import results will be written to.
113
-
*NOTE*: If you do not wish to include credentials in your CSV file they can be provided one of three ways:
109
+
Long: `Will parse a CSV file and attempt to create a certificate store for each row with the provided parameters.
110
+
Any errors encountered will be logged to the <file_name>_results.csv file, under the 'Errors' column.
111
+
112
+
Required Flags:
113
+
- '--store-type-name' OR '--store-type-id'
114
+
- '--file' is the path to the file to be imported.
115
+
116
+
#### Credentials
117
+
118
+
##### In the CSV file:
119
+
120
+
| Header | Description |
121
+
| --- | --- |
122
+
| Properties.ServerUsername | This is equivalent to the 'ServerUsername' field in the Command Certificate Store UI. |
123
+
| Properties.ServerPassword | This is equivalent to the 'ServerPassword' field in the Command Certificate Store UI. |
124
+
| Password | This is equivalent to the 'StorePassword' field in the Command Certificate Store UI. |
125
+
126
+
##### Outside CSV file:
127
+
If you do not wish to include credentials in your CSV file they can be provided one of three ways:
114
128
- via the --server-username --server-password and --store-password flags
115
129
- via environment variables: KFUTIL_CSV_SERVER_USERNAME, KFUTIL_CSV_SERVER_PASSWORD, KFUTIL_CSV_STORE_PASSWORD
0 commit comments