Skip to content

Commit b7391fc

Browse files
committed
2 parents 122bc58 + 1237ba1 commit b7391fc

File tree

1 file changed

+42
-15
lines changed

1 file changed

+42
-15
lines changed

astra-shell/README.MD

Lines changed: 42 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -106,12 +106,19 @@ astra config create dev -t <token_of_org_2>
106106
astra config list
107107
```
108108

109-
- But nothing change your are still on default
109+
- But nothing changed, your organization is still selected as `default`
110110

111111
```
112112
astra user list
113113
```
114114

115+
- You can use any organization anytime with `--config <onfig_name>` or `-t <token>`
116+
117+
```
118+
astra user list --config dev
119+
```
120+
121+
115122
#### ✅ Step 2.3 - Change default configuration
116123

117124
You can change the default org at any time with the following command:
@@ -136,13 +143,13 @@ astra user list
136143
- Back to original org (change with your email)
137144

138145
```
139-
astra config default [email protected] && astra config list
146+
astra config default <your_email>
140147
```
141148

142-
- You can use any organization without switching default configuration with `--config` or `-t`
149+
- Check the modification
143150

144151
```
145-
astra user list --config dev
152+
astra config list
146153
```
147154

148155
#### ✅ Step 2.4 = Delete configuration
@@ -209,10 +216,18 @@ astra db list -o json
209216
astra db list -o csv
210217
```
211218

212-
#### ✅ Step 3.5 Error Code
219+
#### ✅ Step 3.5 Troubleshooting
213220

214221
The return type is also important to check the errors. O mean everything is OK
215222

223+
- Any command can be execute as `verbose` addin `-v`
224+
225+
```
226+
astra db list -v
227+
```
228+
229+
Return codes are carefully designed to ease their usage later:
230+
216231
- Execute command with error
217232
```
218233
astra db get i_do_not_exist -v
@@ -279,9 +294,15 @@ The first execution is expected to be slow we are downloading cqlsh if not prese
279294
astra db cqlsh demo -v
280295
```
281296

282-
- Quit the shell
297+
- Run a cql command
283298

299+
```sql
300+
describe keyspace demo;
284301
```
302+
303+
- Quit the `cqlshell` not forgetting the `;`
304+
305+
```sql
285306
quit;
286307
```
287308

@@ -307,12 +328,6 @@ astra
307328
db list
308329
```
309330

310-
- Show a db
311-
312-
```
313-
db get demo
314-
```
315-
316331
- Now what if we want some commands on this particular db ?
317332

318333
```
@@ -333,16 +348,28 @@ info
333348
create keyspace kso
334349
```
335350

336-
- Access the keyspace
351+
- See the created keyspace
352+
353+
```
354+
info
355+
```
356+
357+
- With Database back to active you can now access the keyspace:
337358

338359
```
339360
cqlsh -k kso
340361
```
341362

342-
- No Quit:
363+
- You can quit the db with
343364

344365
```
345-
quit;
366+
quit
367+
```
368+
369+
- You can exit the shell with
370+
371+
```
372+
exit
346373
```
347374

348375
## 4. Working with Users

0 commit comments

Comments
 (0)