@@ -106,12 +106,19 @@ astra config create dev -t <token_of_org_2>
106
106
astra config list
107
107
```
108
108
109
- - But nothing change your are still on default
109
+ - But nothing changed, your organization is still selected as ` default `
110
110
111
111
```
112
112
astra user list
113
113
```
114
114
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
+
115
122
#### ✅ Step 2.3 - Change default configuration
116
123
117
124
You can change the default org at any time with the following command:
@@ -136,13 +143,13 @@ astra user list
136
143
- Back to original org (change with your email)
137
144
138
145
```
139
- astra config default [email protected] && astra config list
146
+ astra config default <your_email>
140
147
```
141
148
142
- - You can use any organization without switching default configuration with ` --config ` or ` -t `
149
+ - Check the modification
143
150
144
151
```
145
- astra user list -- config dev
152
+ astra config list
146
153
```
147
154
148
155
#### ✅ Step 2.4 = Delete configuration
@@ -209,10 +216,18 @@ astra db list -o json
209
216
astra db list -o csv
210
217
```
211
218
212
- #### ✅ Step 3.5 Error Code
219
+ #### ✅ Step 3.5 Troubleshooting
213
220
214
221
The return type is also important to check the errors. O mean everything is OK
215
222
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
+
216
231
- Execute command with error
217
232
```
218
233
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
279
294
astra db cqlsh demo -v
280
295
```
281
296
282
- - Quit the shell
297
+ - Run a cql command
283
298
299
+ ``` sql
300
+ describe keyspace demo;
284
301
```
302
+
303
+ - Quit the ` cqlshell ` not forgetting the ` ; `
304
+
305
+ ``` sql
285
306
quit;
286
307
```
287
308
@@ -307,12 +328,6 @@ astra
307
328
db list
308
329
```
309
330
310
- - Show a db
311
-
312
- ```
313
- db get demo
314
- ```
315
-
316
331
- Now what if we want some commands on this particular db ?
317
332
318
333
```
@@ -333,16 +348,28 @@ info
333
348
create keyspace kso
334
349
```
335
350
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:
337
358
338
359
```
339
360
cqlsh -k kso
340
361
```
341
362
342
- - No Quit:
363
+ - You can quit the db with
343
364
344
365
```
345
- quit;
366
+ quit
367
+ ```
368
+
369
+ - You can exit the shell with
370
+
371
+ ```
372
+ exit
346
373
```
347
374
348
375
## 4. Working with Users
0 commit comments