From 7f39cf2343a53986c323e4d31723e8fe11ae589b Mon Sep 17 00:00:00 2001 From: Justin Floyd Date: Wed, 22 Jul 2026 09:33:53 -0400 Subject: [PATCH 1/2] docs: add connection update command (merge, replace, unset) to cdata-cli skill --- skills/cdata-cli/SKILL.md | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/skills/cdata-cli/SKILL.md b/skills/cdata-cli/SKILL.md index fc6c3a2..1247e76 100644 --- a/skills/cdata-cli/SKILL.md +++ b/skills/cdata-cli/SKILL.md @@ -66,6 +66,9 @@ If `cdatacli --version` is missing, install: | Inspect connection properties | `drivers connectionprops [--full]` | | Generate driver-specific skill | `drivers skill ` | | Create connection | `connection create --driver --name N --connectionstring CS` | +| Update connection (merge) | `connection update --name N --connectionstring CS` | +| Update connection (replace) | `connection update --name N --connectionstring CS --replace` | +| Remove properties | `connection update --name N --unset "Key1,Key2"` | | List connections | `connection list` | | Delete connection | `connection delete --name N` | | List catalogs | `metadata catalogs --connection N` | @@ -245,9 +248,14 @@ Common patterns: ```bash cdatacli connection list +cdatacli connection update --name "" --connectionstring "" +cdatacli connection update --name "" --connectionstring "" --replace +cdatacli connection update --name "" --unset "Key1,Key2" cdatacli connection delete --name "" ``` +`connection update` merges new properties into the existing connection by default — useful for changing a single property without recreating the connection. Use `--replace` to swap the entire connection string, or `--unset` to remove specific properties. Property names are case-insensitive. `--replace` and `--unset` cannot be combined. + Connections are saved as encrypted `.conn` files (AES-256): | OS | Location | @@ -328,7 +336,7 @@ cdatacli query sql --connection --sql "UPDATE [TableName] SET [Col1] = 'n cdatacli query sql --connection --sql "DELETE FROM [TableName] WHERE [Id] = '123'" ``` -If writes fail, the connection may have `ReadOnly=true`. Do not change this on your own — point it out to the user and ask whether they want to recreate the connection without `ReadOnly=true` before taking any action. +If writes fail, the connection may have `ReadOnly=true`. Do not change this on your own — point it out to the user and ask whether they want to remove it. If they confirm, use `connection update --unset "ReadOnly"` rather than recreating the connection. #### Stored Procedures From dc1b434961ed1b020d45b7599d1cc1b87cbf1fad Mon Sep 17 00:00:00 2001 From: Justin Floyd Date: Wed, 22 Jul 2026 09:45:34 -0400 Subject: [PATCH 2/2] docs: add --force flag to connection update command --- skills/cdata-cli/SKILL.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/skills/cdata-cli/SKILL.md b/skills/cdata-cli/SKILL.md index 1247e76..8ac3cbc 100644 --- a/skills/cdata-cli/SKILL.md +++ b/skills/cdata-cli/SKILL.md @@ -68,6 +68,7 @@ If `cdatacli --version` is missing, install: | Create connection | `connection create --driver --name N --connectionstring CS` | | Update connection (merge) | `connection update --name N --connectionstring CS` | | Update connection (replace) | `connection update --name N --connectionstring CS --replace` | +| Update, skip validation | `connection update --name N --connectionstring CS --force` | | Remove properties | `connection update --name N --unset "Key1,Key2"` | | List connections | `connection list` | | Delete connection | `connection delete --name N` | @@ -254,7 +255,7 @@ cdatacli connection update --name "" --unset "Key1,Key2" cdatacli connection delete --name "" ``` -`connection update` merges new properties into the existing connection by default — useful for changing a single property without recreating the connection. Use `--replace` to swap the entire connection string, or `--unset` to remove specific properties. Property names are case-insensitive. `--replace` and `--unset` cannot be combined. +`connection update` merges new properties into the existing connection by default — useful for changing a single property without recreating the connection. Use `--replace` to swap the entire connection string, or `--unset` to remove specific properties. Property names are case-insensitive. `--replace` and `--unset` cannot be combined. Use `--force` to skip connection validation — useful for placeholder connections or testing without a live source. Connections are saved as encrypted `.conn` files (AES-256):