Skip to content

Commit 5f52d50

Browse files
committed
update readme
1 parent 9970c85 commit 5f52d50

15 files changed

+478
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,13 +42,13 @@ The preferred installation method is via the installation script:
4242

4343
```bash
4444
# Unix (recommended)
45-
curl -fsSL ibm.biz/get-astra-cli | sh
45+
curl -sSL ibm.biz/astra-cli | sh
4646

4747
# Unix (brew)
4848
brew install datastax/astra-cli/astra
4949

5050
# Windows
51-
powershell -c "irm https://raw.githubusercontent.com/datastax/astra-cli/main/scripts/install.ps1 | iex"
51+
powershell -c "irm ibm.biz/astra-cli-win | iex"
5252
```
5353

5454
The CLI can also be downloaded directly from the [releases page](https://github.com/datastax/astra-cli/releases).
Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
---- meta ----
2+
command: astra db cqlsh exec two_regions_db 'DESC CARS' -o csv
3+
exit_code: 0
4+
comments:
5+
| Can't really test human output since we don't capture cqlsh output for human outputs
6+
| But at least we can verify the command runs and the exit code is correct
7+
| (human output returns cqlsh exit code; non-human output returns the cqlsh exit code via a field)
8+
---- output ----
9+
stdout: code,message,exit_code,stdout,stderr
10+
stdout: OK,"Cqlsh executed with exit code 1, with 0 lines in stdout and 70 lines in stderr.",1,,"Traceback (most recent call last):
11+
stdout: File ""/opt/homebrew/Cellar/[email protected]/3.11.13_1/Frameworks/Python.framework/Versions/3.11/lib/python3.11/urllib/request.py"", line 1348, in do_open
12+
stdout: h.request(req.get_method(), req.selector, req.data, headers,
13+
stdout: File ""/opt/homebrew/Cellar/[email protected]/3.11.13_1/Frameworks/Python.framework/Versions/3.11/lib/python3.11/http/client.py"", line 1303, in request
14+
stdout: self._send_request(method, url, body, headers, encode_chunked)
15+
stdout: File ""/opt/homebrew/Cellar/[email protected]/3.11.13_1/Frameworks/Python.framework/Versions/3.11/lib/python3.11/http/client.py"", line 1349, in _send_request
16+
stdout: self.endheaders(body, encode_chunked=encode_chunked)
17+
stdout: File ""/opt/homebrew/Cellar/[email protected]/3.11.13_1/Frameworks/Python.framework/Versions/3.11/lib/python3.11/http/client.py"", line 1298, in endheaders
18+
stdout: self._send_output(message_body, encode_chunked=encode_chunked)
19+
stdout: File ""/opt/homebrew/Cellar/[email protected]/3.11.13_1/Frameworks/Python.framework/Versions/3.11/lib/python3.11/http/client.py"", line 1058, in _send_output
20+
stdout: self.send(msg)
21+
stdout: File ""/opt/homebrew/Cellar/[email protected]/3.11.13_1/Frameworks/Python.framework/Versions/3.11/lib/python3.11/http/client.py"", line 996, in send
22+
stdout: self.connect()
23+
stdout: File ""/opt/homebrew/Cellar/[email protected]/3.11.13_1/Frameworks/Python.framework/Versions/3.11/lib/python3.11/http/client.py"", line 1468, in connect
24+
stdout: super().connect()
25+
stdout: File ""/opt/homebrew/Cellar/[email protected]/3.11.13_1/Frameworks/Python.framework/Versions/3.11/lib/python3.11/http/client.py"", line 962, in connect
26+
stdout: self.sock = self._create_connection(
27+
stdout: ^^^^^^^^^^^^^^^^^^^^^^^^
28+
stdout: File ""/opt/homebrew/Cellar/[email protected]/3.11.13_1/Frameworks/Python.framework/Versions/3.11/lib/python3.11/socket.py"", line 839, in create_connection
29+
stdout: for res in getaddrinfo(host, port, 0, SOCK_STREAM):
30+
stdout: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
31+
stdout: File ""/opt/homebrew/Cellar/[email protected]/3.11.13_1/Frameworks/Python.framework/Versions/3.11/lib/python3.11/socket.py"", line 974, in getaddrinfo
32+
stdout: for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
33+
stdout: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
34+
stdout: socket.gaierror: [Errno 8] nodename nor servname provided, or not known
35+
stdout:
36+
stdout: During handling of the above exception, another exception occurred:
37+
stdout:
38+
stdout: Traceback (most recent call last):
39+
stdout: File ""/Users/me/work/astra-cli/.cli_tests_temp/java/cqlsh-astra/bin/../zipfiles/cassandra-driver-internal-only-3.26.0-df103d3a.zip/cassandra-driver-3.26.0-df103d3a/cassandra/datastax/cloud/__init__.py"", line 138, in read_metadata_info
40+
stdout: File ""/opt/homebrew/Cellar/[email protected]/3.11.13_1/Frameworks/Python.framework/Versions/3.11/lib/python3.11/urllib/request.py"", line 216, in urlopen
41+
stdout: return opener.open(url, data, timeout)
42+
stdout: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
43+
stdout: File ""/opt/homebrew/Cellar/[email protected]/3.11.13_1/Frameworks/Python.framework/Versions/3.11/lib/python3.11/urllib/request.py"", line 519, in open
44+
stdout: response = self._open(req, data)
45+
stdout: ^^^^^^^^^^^^^^^^^^^^^
46+
stdout: File ""/opt/homebrew/Cellar/[email protected]/3.11.13_1/Frameworks/Python.framework/Versions/3.11/lib/python3.11/urllib/request.py"", line 536, in _open
47+
stdout: result = self._call_chain(self.handle_open, protocol, protocol +
48+
stdout: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
49+
stdout: File ""/opt/homebrew/Cellar/[email protected]/3.11.13_1/Frameworks/Python.framework/Versions/3.11/lib/python3.11/urllib/request.py"", line 496, in _call_chain
50+
stdout: result = func(*args)
51+
stdout: ^^^^^^^^^^^
52+
stdout: File ""/opt/homebrew/Cellar/[email protected]/3.11.13_1/Frameworks/Python.framework/Versions/3.11/lib/python3.11/urllib/request.py"", line 1391, in https_open
53+
stdout: return self.do_open(http.client.HTTPSConnection, req,
54+
stdout: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
55+
stdout: File ""/opt/homebrew/Cellar/[email protected]/3.11.13_1/Frameworks/Python.framework/Versions/3.11/lib/python3.11/urllib/request.py"", line 1351, in do_open
56+
stdout: raise URLError(err)
57+
stdout: urllib.error.URLError: <urlopen error [Errno 8] nodename nor servname provided, or not known>
58+
stdout:
59+
stdout: During handling of the above exception, another exception occurred:
60+
stdout:
61+
stdout: Traceback (most recent call last):
62+
stdout: File ""/Users/me/work/astra-cli/.cli_tests_temp/java/cqlsh-astra/bin/dsecqlsh.py"", line 534, in <module>
63+
stdout: cqlsh.main(*cqlsh.read_options(sys.argv[1:], os.environ))
64+
stdout: File ""/Users/me/work/astra-cli/.cli_tests_temp/java/cqlsh-astra/bin/cqlsh.py"", line 2616, in main
65+
stdout: shell = Shell(hostname,
66+
stdout: ^^^^^^^^^^^^^^^
67+
stdout: File ""/Users/me/work/astra-cli/.cli_tests_temp/java/cqlsh-astra/bin/dsecqlsh.py"", line 367, in __init__
68+
stdout: conn = cluster_factory(
69+
stdout: ^^^^^^^^^^^^^^^^
70+
stdout: File ""/Users/me/work/astra-cli/.cli_tests_temp/java/cqlsh-astra/bin/../pylib/cqlshlib/driver.py"", line 90, in cluster_factory
71+
stdout: return _cloud_cluster_factory(whitelist_lbp, **options)
72+
stdout: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
73+
stdout: File ""/Users/me/work/astra-cli/.cli_tests_temp/java/cqlsh-astra/bin/../pylib/cqlshlib/driver.py"", line 120, in _cloud_cluster_factory
74+
stdout: cluster = Cluster(**options)
75+
stdout: ^^^^^^^^^^^^^^^^^^
76+
stdout: File ""/Users/me/work/astra-cli/.cli_tests_temp/java/cqlsh-astra/bin/../zipfiles/cassandra-driver-internal-only-3.26.0-df103d3a.zip/cassandra-driver-3.26.0-df103d3a/cassandra/cluster.py"", line 1125, in __init__
77+
stdout: File ""/Users/me/work/astra-cli/.cli_tests_temp/java/cqlsh-astra/bin/../zipfiles/cassandra-driver-internal-only-3.26.0-df103d3a.zip/cassandra-driver-3.26.0-df103d3a/cassandra/datastax/cloud/__init__.py"", line 92, in get_cloud_config
78+
stdout: File ""/Users/me/work/astra-cli/.cli_tests_temp/java/cqlsh-astra/bin/../zipfiles/cassandra-driver-internal-only-3.26.0-df103d3a.zip/cassandra-driver-3.26.0-df103d3a/cassandra/datastax/cloud/__init__.py"", line 141, in read_metadata_info
79+
stdout: cassandra.DriverException: Unable to connect to the metadata service at https://e6856687-40e4-4638-a942-946355c6d711-us-west-2.db.astra-dev.datastax.com:29080/metadata. Check the cluster status in the cloud console. "
80+
---- end ----
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---- meta ----
2+
command: astra db cqlsh exec two_regions_db 'DESC CARS'
3+
exit_code: 1
4+
comments:
5+
| Can't really test human output since we don't capture cqlsh output for human outputs
6+
| But at least we can verify the command runs and the exit code is correct
7+
| (human output returns cqlsh exit code; non-human output returns the cqlsh exit code via a field)
8+
---- output ----
9+
---- end ----
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
---- meta ----
2+
command: astra db cqlsh exec two_regions_db 'DESC CARS' -o json
3+
exit_code: 0
4+
comments:
5+
| Can't really test human output since we don't capture cqlsh output for human outputs
6+
| But at least we can verify the command runs and the exit code is correct
7+
| (human output returns cqlsh exit code; non-human output returns the cqlsh exit code via a field)
8+
---- output ----
9+
stdout: {
10+
stdout: "code" : "OK",
11+
stdout: "message" : "Cqlsh executed with exit code 1, with 0 lines in stdout and 70 lines in stderr.",
12+
stdout: "data" : {
13+
stdout: "exitCode" : 1,
14+
stdout: "stdout" : "",
15+
stdout: "stderr" : "Traceback (most recent call last):\n File \"/opt/homebrew/Cellar/[email protected]/3.11.13_1/Frameworks/Python.framework/Versions/3.11/lib/python3.11/urllib/request.py\", line 1348, in do_open\n h.request(req.get_method(), req.selector, req.data, headers,\n File \"/opt/homebrew/Cellar/[email protected]/3.11.13_1/Frameworks/Python.framework/Versions/3.11/lib/python3.11/http/client.py\", line 1303, in request\n self._send_request(method, url, body, headers, encode_chunked)\n File \"/opt/homebrew/Cellar/[email protected]/3.11.13_1/Frameworks/Python.framework/Versions/3.11/lib/python3.11/http/client.py\", line 1349, in _send_request\n self.endheaders(body, encode_chunked=encode_chunked)\n File \"/opt/homebrew/Cellar/[email protected]/3.11.13_1/Frameworks/Python.framework/Versions/3.11/lib/python3.11/http/client.py\", line 1298, in endheaders\n self._send_output(message_body, encode_chunked=encode_chunked)\n File \"/opt/homebrew/Cellar/[email protected]/3.11.13_1/Frameworks/Python.framework/Versions/3.11/lib/python3.11/http/client.py\", line 1058, in _send_output\n self.send(msg)\n File \"/opt/homebrew/Cellar/[email protected]/3.11.13_1/Frameworks/Python.framework/Versions/3.11/lib/python3.11/http/client.py\", line 996, in send\n self.connect()\n File \"/opt/homebrew/Cellar/[email protected]/3.11.13_1/Frameworks/Python.framework/Versions/3.11/lib/python3.11/http/client.py\", line 1468, in connect\n super().connect()\n File \"/opt/homebrew/Cellar/[email protected]/3.11.13_1/Frameworks/Python.framework/Versions/3.11/lib/python3.11/http/client.py\", line 962, in connect\n self.sock = self._create_connection(\n ^^^^^^^^^^^^^^^^^^^^^^^^\n File \"/opt/homebrew/Cellar/[email protected]/3.11.13_1/Frameworks/Python.framework/Versions/3.11/lib/python3.11/socket.py\", line 839, in create_connection\n for res in getaddrinfo(host, port, 0, SOCK_STREAM):\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"/opt/homebrew/Cellar/[email protected]/3.11.13_1/Frameworks/Python.framework/Versions/3.11/lib/python3.11/socket.py\", line 974, in getaddrinfo\n for res in _socket.getaddrinfo(host, port, family, type, proto, flags):\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\nsocket.gaierror: [Errno 8] nodename nor servname provided, or not known\n\nDuring handling of the above exception, another exception occurred:\n\nTraceback (most recent call last):\n File \"/Users/me/work/astra-cli/.cli_tests_temp/java/cqlsh-astra/bin/../zipfiles/cassandra-driver-internal-only-3.26.0-df103d3a.zip/cassandra-driver-3.26.0-df103d3a/cassandra/datastax/cloud/__init__.py\", line 138, in read_metadata_info\n File \"/opt/homebrew/Cellar/[email protected]/3.11.13_1/Frameworks/Python.framework/Versions/3.11/lib/python3.11/urllib/request.py\", line 216, in urlopen\n return opener.open(url, data, timeout)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"/opt/homebrew/Cellar/[email protected]/3.11.13_1/Frameworks/Python.framework/Versions/3.11/lib/python3.11/urllib/request.py\", line 519, in open\n response = self._open(req, data)\n ^^^^^^^^^^^^^^^^^^^^^\n File \"/opt/homebrew/Cellar/[email protected]/3.11.13_1/Frameworks/Python.framework/Versions/3.11/lib/python3.11/urllib/request.py\", line 536, in _open\n result = self._call_chain(self.handle_open, protocol, protocol +\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"/opt/homebrew/Cellar/[email protected]/3.11.13_1/Frameworks/Python.framework/Versions/3.11/lib/python3.11/urllib/request.py\", line 496, in _call_chain\n result = func(*args)\n ^^^^^^^^^^^\n File \"/opt/homebrew/Cellar/[email protected]/3.11.13_1/Frameworks/Python.framework/Versions/3.11/lib/python3.11/urllib/request.py\", line 1391, in https_open\n return self.do_open(http.client.HTTPSConnection, req,\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"/opt/homebrew/Cellar/[email protected]/3.11.13_1/Frameworks/Python.framework/Versions/3.11/lib/python3.11/urllib/request.py\", line 1351, in do_open\n raise URLError(err)\nurllib.error.URLError: <urlopen error [Errno 8] nodename nor servname provided, or not known>\n\nDuring handling of the above exception, another exception occurred:\n\nTraceback (most recent call last):\n File \"/Users/me/work/astra-cli/.cli_tests_temp/java/cqlsh-astra/bin/dsecqlsh.py\", line 534, in <module>\n cqlsh.main(*cqlsh.read_options(sys.argv[1:], os.environ))\n File \"/Users/me/work/astra-cli/.cli_tests_temp/java/cqlsh-astra/bin/cqlsh.py\", line 2616, in main\n shell = Shell(hostname,\n ^^^^^^^^^^^^^^^\n File \"/Users/me/work/astra-cli/.cli_tests_temp/java/cqlsh-astra/bin/dsecqlsh.py\", line 367, in __init__\n conn = cluster_factory(\n ^^^^^^^^^^^^^^^^\n File \"/Users/me/work/astra-cli/.cli_tests_temp/java/cqlsh-astra/bin/../pylib/cqlshlib/driver.py\", line 90, in cluster_factory\n return _cloud_cluster_factory(whitelist_lbp, **options)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"/Users/me/work/astra-cli/.cli_tests_temp/java/cqlsh-astra/bin/../pylib/cqlshlib/driver.py\", line 120, in _cloud_cluster_factory\n cluster = Cluster(**options)\n ^^^^^^^^^^^^^^^^^^\n File \"/Users/me/work/astra-cli/.cli_tests_temp/java/cqlsh-astra/bin/../zipfiles/cassandra-driver-internal-only-3.26.0-df103d3a.zip/cassandra-driver-3.26.0-df103d3a/cassandra/cluster.py\", line 1125, in __init__\n File \"/Users/me/work/astra-cli/.cli_tests_temp/java/cqlsh-astra/bin/../zipfiles/cassandra-driver-internal-only-3.26.0-df103d3a.zip/cassandra-driver-3.26.0-df103d3a/cassandra/datastax/cloud/__init__.py\", line 92, in get_cloud_config\n File \"/Users/me/work/astra-cli/.cli_tests_temp/java/cqlsh-astra/bin/../zipfiles/cassandra-driver-internal-only-3.26.0-df103d3a.zip/cassandra-driver-3.26.0-df103d3a/cassandra/datastax/cloud/__init__.py\", line 141, in read_metadata_info\ncassandra.DriverException: Unable to connect to the metadata service at https://e6856687-40e4-4638-a942-946355c6d711-us-west-2.db.astra-dev.datastax.com:29080/metadata. Check the cluster status in the cloud console. "
16+
stdout: },
17+
stdout: "nextSteps" : null
18+
stdout: }
19+
---- end ----

0 commit comments

Comments
 (0)