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
|`list`| List all locations (name and id) that the authenticated session has access to, grouped by organization |**organization id** : (_optional_) return results for specified organization only |
566
-
|`api-key`| Work with an api-key for your location |`create`|
566
+
|`api-key`| Work with an API key for your location |`create`|
567
567
|`--help`| Return help | - |
568
568
569
569
##### Positional arguments: `api-key`
@@ -603,7 +603,7 @@ See [Authenticate](#authenticate).
|`api-key`| Authenticate to Viam using an organization, location, or machine part API key. | - |
605
605
|`print-access-token`| Prints the access token used to authenticate the current CLI session. | - |
606
-
|`--disable-browser-open`| Authenticate in a headless environment by preventing the opening of the default browser during login (default: `false`). | - |
606
+
|`--no-browser`| Authenticate in a headless environment by preventing the opening of the default browser during login (default: `false`). | - |
607
607
|`--help`| Return help. | - |
608
608
609
609
##### Named arguments
@@ -1096,7 +1096,7 @@ See [create an organization API key](#create-an-organization-api-key) for more i
|`list`| List all organizations (name, id, and [namespace](/operate/reference/naming-modules/#create-a-namespace-for-your-organization)) that the authenticated session has access to. | - |
1099
+
|`list`| List all organizations (name, ID, and [namespace](/operate/reference/naming-modules/#create-a-namespace-for-your-organization)) that the authenticated session has access to. | - |
1100
1100
|`api-key create`| Create a new organization API key. | - |
1101
1101
|`support-email get`| Get the support email for an organization. | - |
1102
1102
|`support-email set`| Set the support email for an organization. | - |
|`--path`| The path to the package for upload. The package should be zipped with tar and have the `.tar.gz` extension. |`upload`|**Required**|
1166
1166
|`--destination`| The output directory for downloaded package. |`export`|**Required**|
1167
1167
1168
+
### `profiles`
1169
+
1170
+
The `profiles` command allows you to manage different CLI authentication profiles, so you can easily switch between API key authentications (for example authentication to one organization versus another).
1171
+
1172
+
```sh {class="command-line" data-prompt="$"}
1173
+
viam profiles add --profile-name=<name-of-profile-to-add> --key-id=<API-key-ID> --key=<API-key>
1174
+
viam profiles update --profile-name=<name-of-profile-to-update> --key-id=<API-key-ID> --key=<API-key>
1175
+
viam profiles list
1176
+
viam profiles remove --profile-name=<name-of-profile-to-remove>
|`list`| List all machines that the authenticated session has access to, filtered by organization and location. | - |
1250
-
|`api-key`| Work with an api-key for your machine |`create` (see [positional arguments: api-key](#positional-arguments-api-key)) |
1303
+
|`api-key`| Work with an API key for your machine |`create` (see [positional arguments: api-key](#positional-arguments-api-key)) |
1251
1304
|`status`| Retrieve machine status for a specified machine | - |
1252
1305
|`logs`| Retrieve logs for a specified machine | - |
1253
1306
|`part`| Manage a specified machine part |`status`, `run`, `logs`, `shell`, `restart`, `tunnel`, `cp` (see [positional arguments: part](#positional-arguments-part)). To use the `part shell` and `part cp` commands, you must add the [ViamShellDanger fragment](https://app.viam.com/fragment/b511adfa-80ab-4a70-9bd5-fbb14696b17e/json) to your machine. |
@@ -1268,7 +1321,7 @@ viam machine part cp --machine=123 --part=123 -r -p machine:my_dir machine:my_fi
1268
1321
| -------- | ----------- |
1269
1322
|`status`| Retrieve machine status for a specified machine part |
1270
1323
|`run`| Run a component or service command, optionally at a specified interval. For commands that return data in their response, you can use this to stream data. |
1271
-
|`logs`| Get logs for the specified machine part |
1324
+
|`logs`| Get logs for the specified machine or machine part |
1272
1325
|`shell`| Access a machine part securely using a secure shell. To use this feature you must add the [`ViamShellDanger` fragment](https://app.viam.com/fragment/b511adfa-80ab-4a70-9bd5-fbb14696b17e/json) to your machine. |
1273
1326
|`restart`| Restart a machine part. |
1274
1327
|`cp`| Copy files to and from a machine part. |
@@ -1280,27 +1333,26 @@ viam machine part cp --machine=123 --part=123 -r -p machine:my_dir machine:my_fi
|`--organization`| Organization name or ID that the machine belongs to |`list`, `status`, `logs`, `part`|**Required**|
1284
-
|`--location`| Location name or ID that the machine belongs to or to list machines in |`list`, `status`, `logs`, `part`|**Required**|
1285
-
|`--machine`| Machine name or ID for which the command is being issued. If machine name is used instead of ID, `--organization` and `--location` are required. |`status`, `logs`, `part`|**Required**|
1286
-
|`--errors`| Boolean, return only errors (default: false) |`logs`| Optional |
1336
+
|`--part`| Part ID for which the command is being issued. |`part`|**Required**|
1337
+
|`--machine`| Machine ID for which the command is being issued. If machine name is used instead of ID, `--org` and `--location` are required. |`status`, `logs`|**Required**|
1338
+
|`--location`| ID of the location that the machine belongs to or to list machines in. |`list`, `status`, `logs`, `part`| Optional |
1339
+
|`--org`| ID of the organization that the machine belongs to or to list machines in. |`list`, `status`, `logs`, `part`| Optional |
1340
+
|`--errors`| Boolean, return only errors (default: false). |`logs`| Optional |
1287
1341
|`--levels`| Filter logs by levels (debug, info, warn, error). Accepts multiple inputs in comma-separated list. |`logs`| Optional |
1288
-
|`--part`| Part name or ID for which the command is being issued |`logs`, `part`| Optional |
|`--keyword`| Filter logs by keyword. |`logs`| Optional |
1291
1344
|`--start`| Filter logs to include only those after the start time. Time format example: `2025-01-13T21:30:00Z` (ISO-8601 timestamp in RFC3339). |`logs`| Optional |
1292
1345
|`--end`| Filter logs to include only those before the end time. Time format example: `2025-01-13T21:35:00Z` (ISO-8601 timestamp in RFC3339). |`logs`| Optional |
1293
1346
|`--count`| The number of logs to fetch. |`logs`| Optional |
1294
1347
|`--format`| THe file format for the output file. Options: `text` or `json`. |`logs`| Optional |
1295
1348
|`--output`| The path to the output file to store logs in. |`logs`| Optional |
1296
-
|`--stream`| If specified, the interval in which to stream the specified data, for example, 100ms or 1s |`part run`| Optional |
1297
-
|`--data`| Command data for the command being request to run (see [data argument](#using-the---stream-and---data-arguments)) |`part run`|**Required**|
1298
-
|`--machine-id`| The machine to create an API key for |`api-key`|**Required**|
1299
-
|`--name`| The optional name of the API key |`api-key`| Optional |
1300
-
|`--org-id`| The optional organization ID to attach the key to |`api-key`| Optional |
1349
+
|`--stream`| If specified, the interval in which to stream the specified data, for example, 100ms or 1s. |`part run`| Optional |
1350
+
|`--data`| Command data for the command being request to run (see [data argument](#using-the---stream-and---data-arguments)). |`part run`|**Required**|
1351
+
|`--machine-id`| The machine to create an API key for. |`api-key`|**Required**|
1352
+
|`--name`| The optional name of the API key. |`api-key`| Optional |
0 commit comments