diff --git a/docs/connect/cli.md b/docs/connect/cli.md index 912498b..fc64a56 100644 --- a/docs/connect/cli.md +++ b/docs/connect/cli.md @@ -10,8 +10,11 @@ You can use them to quickly validate HTTP and PostgreSQL connectivity to your database cluster, or to conduct basic scripting. Before running the command-line snippets outlined below, please use the correct -settings instead of the placeholder tokens ``, ``, and -``. +settings instead of the placeholder tokens ``, `` and +``. + +When using CrateDB Cloud, `` will be something like +`.{aks1,eks1}.region.{azure,aws}.cratedb.net`. (crash)= @@ -31,12 +34,12 @@ working with CrateDB. For more information, see the documentation about [crash]. ::::{tab-set} -:::{tab-item} CrateDB Server and Cloud +:::{tab-item} CrateDB and CrateDB Cloud :sync: server ```{code-block} shell CRATEPW= \ - crash --hosts 'https://.cratedb.net:4200' --username '' \ + crash --hosts 'https://:4200' --username '' \ --command "SELECT 42.42;" ``` ::: @@ -72,12 +75,12 @@ For more information, see the documentation about [psql]. ::::{tab-set} -:::{tab-item} CrateDB Server and Cloud +:::{tab-item} CrateDB and CrateDB Cloud :sync: server ```{code-block} shell PGUSER= PGPASSWORD= \ - psql postgresql://.cratedb.net/crate --command "SELECT 42.42;" + psql postgresql:///crate --command "SELECT 42.42;" ``` ::: @@ -111,11 +114,11 @@ For more information, see the documentation about [HTTPie]. ::::{tab-set} -:::{tab-item} CrateDB Server and Cloud +:::{tab-item} CrateDB and CrateDB Cloud :sync: server ```{code-block} shell -http https://:@.cratedb.net:4200/_sql?pretty" \ +http https://:@:4200/_sql?pretty" \ stmt="SELECT 42.42;" ``` ::: @@ -151,12 +154,12 @@ This example combines it with [jq], a lightweight and flexible command-line JSON ::::{tab-set} -:::{tab-item} CrateDB Server and Cloud +:::{tab-item} CrateDB and CrateDB Cloud :sync: server ```{code-block} shell echo '{"stmt": "SELECT 42.42;"}' \ - | curl "https://:@.cratedb.net:4200/_sql?pretty" --silent --data @- | jq + | curl "https://:@:4200/_sql?pretty" --silent --data @- | jq ``` ::: diff --git a/docs/connect/index.md b/docs/connect/index.md index 90fa3ce..188135e 100644 --- a/docs/connect/index.md +++ b/docs/connect/index.md @@ -16,7 +16,7 @@ needs to be configured with corresponding settings. ::::::{tab-set} -:::::{tab-item} CrateDB Server and Cloud +:::::{tab-item} CrateDB and CrateDB Cloud ::::{grid} :margin: 0