Skip to content

Commit a35f608

Browse files
Minor DocOps optimizations
1 parent 88bea61 commit a35f608

File tree

4 files changed

+56
-48
lines changed

4 files changed

+56
-48
lines changed

docs-src/astra-cli-core/antora.yml

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,7 @@
1-
name: astra-cli
2-
title: Astra CLI
1+
name: 'astra-cli'
2+
title: 'Astra CLI'
33
version: '0.2'
4-
start_page: index.adoc
4+
start_page: 'index.adoc'
55

66
nav:
77
- modules/ROOT/nav.adoc
8-
9-
asciidoc:
10-
attributes:
11-
astra_cli: 'Astra CLI'

docs-src/astra-cli-core/modules/ROOT/pages/index.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Any user with the **Organization Administrator** role may use {astra_cli} comman
2020
2121
Get started with the links below.
2222

23-
[subs="macros,attributes"]
23+
[subs="macros,attributes+"]
2424
++++
2525
2626
<div class="grid lg:grid-rows-1 lg:grid-cols-3 gap-6 mt-6">

docs-src/astra-cli-core/modules/ROOT/pages/managing.adoc

Lines changed: 40 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
= Managing {astra_db} databases with {astra_cli}
22

3-
Use the following {astra_cli} commands to manage your {astra_db} databases.
3+
Use the following {astra_cli} commands to manage your {astra_db} databases.
44
From the command line in a Terminal, the supported tasks are:
55

66
* <<List databases>>
@@ -19,7 +19,7 @@ From the command line in a Terminal, the supported tasks are:
1919
2020
== List databases
2121

22-
To get the list of active databases in your {astra_db} organization, use the command `astra db list`.
22+
To get the list of active databases in your {astra_db} organization, use the command `astra db list`.
2323

2424
[TIP]
2525
====
@@ -90,7 +90,7 @@ Sample result::
9090
test,7677a789-bd57-455d-ab2c-999999999999,eu-central-1,ACTIVE
9191
demo,071d7059-d55b-4cdb-90c6-999999999999,us-east-1,ACTIVE
9292
ac201,48c7178c-58cb-4657-b3d2-999999999999,us-east-1,ACTIVE
93-
----
93+
----
9494
--
9595
====
9696

@@ -147,7 +147,7 @@ Sample result::
147147
"Name" : "ac201"
148148
} ]
149149
}
150-
----
150+
----
151151
--
152152
====
153153

@@ -257,7 +257,7 @@ Sample result::
257257
| aws | us-east-2 | US East (Ohio) |
258258
| aws | us-west-2 | US West (Oregon) |
259259
+----------------+---------------------+-------------------------------+
260-
----
260+
----
261261
--
262262
====
263263

@@ -307,7 +307,7 @@ Sample result::
307307
| aws | us-east-2 | US East (Ohio) |
308308
| aws | us-west-2 | US West (Oregon) |
309309
+----------------+---------------------+-------------------------------+
310-
----
310+
----
311311
--
312312
====
313313

@@ -350,7 +350,7 @@ Sample result::
350350
+--------------------------------------+-----------------------------+---------------------+
351351
| b665658a-ae6a-4f30-a740-999999999999 | [email protected] | active |
352352
+--------------------------------------+-----------------------------+---------------------+
353-
----
353+
----
354354
--
355355
====
356356

@@ -379,7 +379,7 @@ Sample result::
379379
| 825bd3d3-82ae-404b-9aad-999999999999 | [email protected] | invited |
380380
| b665658a-ae6a-4f30-a740-999999999999 | [email protected] | active |
381381
+--------------------------------------+-----------------------------+---------------------+
382-
----
382+
----
383383
--
384384
====
385385

@@ -408,7 +408,7 @@ astra role get "Database Administrator"
408408

409409
== Get database details
410410

411-
To get general information or details on an entity, use the command `astra db get <db-name>`.
411+
To get general information or details on an entity, use the command `astra db get <db-name>`.
412412
The output includes specific information about the list of keyspaces available and the different regions.
413413

414414
[TIP]
@@ -455,7 +455,7 @@ Sample result::
455455
| | |
456456
| Regions | [0] us-east-1 |
457457
+------------------------+-----------------------------------------+
458-
----
458+
----
459459
--
460460
====
461461

@@ -464,10 +464,10 @@ To get a special property, add the option `--key` and its type.
464464

465465
Multiple key types are available: `id`, `status`, `cloud`, `keyspace`, `keyspaces`, `region`, `regions`.
466466

467-
Notice that the output is raw.
467+
Notice that the output is raw.
468468

469-
This command is expected to be used in scripts.
470-
Example:
469+
This command is expected to be used in scripts.
470+
Example:
471471

472472
[tabs]
473473
====
@@ -486,11 +486,11 @@ Sample result::
486486
[source,csv]
487487
----
488488
dde308f5-a8b0-474d-afd6-999999999999
489-
----
489+
----
490490
--
491491
====
492492

493-
To get the database status in a human readable result, use the `astra db status` command.
493+
To get the database status in a human readable result, use the `astra db status` command.
494494
Example:
495495

496496
[tabs]
@@ -510,14 +510,14 @@ Sample result::
510510
[source,csv]
511511
----
512512
[ INFO ] - Database 'demo' has status 'ACTIVE'
513-
----
513+
----
514514
--
515515
====
516516

517517

518518
== Delete a database
519519

520-
To delete an {astra_db} database, use the command `astra db delete <db-name>`.
520+
To delete an {astra_db} database, use the command `astra db delete <db-name>`.
521521
Example:
522522

523523
[source,bash]
@@ -550,7 +550,7 @@ astra help db list-keyspaces
550550
=== Create a new keyspace
551551

552552
To add a keyspace named `ks2` to an existing database named `demo`, use the following command.
553-
The option `--if-not-exist` is optional but could help you provide idempotent scripts.
553+
The option `--if-not-exist` is optional but could help you provide idempotent scripts.
554554
Example:
555555

556556
[source,bash]
@@ -577,7 +577,7 @@ The purpose of {astra_cli} is to integrate with `cqlsh` and to perform the integ
577577

578578
=== Interactive mode
579579

580-
If no options are provided, by default you'll enter `cqlsh` interactive mode.
580+
If no options are provided, by default you'll enter `cqlsh` interactive mode.
581581
Example:
582582

583583
[tabs]
@@ -602,14 +602,14 @@ Sample result::
602602
Use HELP for help.
603603
token@cqlsh>
604604
605-
----
605+
----
606606
--
607607
====
608608

609609

610610
=== Execute CQL
611611

612-
To execute a CQL statement with `cqlsh` use the flag `-e`.
612+
To execute a CQL statement with `cqlsh` use the flag `-e`.
613613
Example:
614614

615615
[source,bash]
@@ -620,7 +620,7 @@ astra db cqlsh demo -e "describe keyspaces;"
620620
=== Execute CQL files
621621

622622
To execute CQL files with `cqlsh` use the flag `-f`.
623-
You could also use the CQL syntax SOURCE.
623+
You could also use the CQL syntax SOURCE.
624624
Example:
625625

626626
[source,bash]
@@ -667,7 +667,7 @@ astra db cqlsh demo -k demo
667667

668668
Create the table in cqlsh:
669669

670-
[source,cqlsh]
670+
[source,cql]
671671
----
672672
CREATE TABLE cities_by_country ( country_name text, name text, id int, state_id text, state_code text, state_name text, country_id text, country_code text, latitude double, longitude double, wikiDataId text, PRIMARY KEY ((country_name), name) );
673673
@@ -719,14 +719,14 @@ Sample result::
719719
148,266 | 0 | 8,361 | 663.86 | 767.56 | 817.89 | 30.91
720720
Operation LOAD_20221123-182343-074618 completed successfully in 17 seconds.
721721
Last processed positions can be found in positions.txt
722-
----
722+
----
723723
--
724724
====
725725

726726

727727
=== Count table row data
728728

729-
Check than the data has been imported with cqlsh.
729+
Check than the data has been imported with cqlsh.
730730
Example:
731731

732732
[tabs]
@@ -769,7 +769,7 @@ country_name | name | country_code | country_id | id | latitude
769769
Bangladesh | Bājitpur | BD | 19 | 8472 | 24.21623 | 90.95002 | 13 | 771 | Dhaka District | null
770770
Bangladesh | Chandpur | BD | 19 | 8474 | 23.25 | 90.83333 | B | 803 | Chittagong Division | null
771771
Bangladesh | Chapai Nababganj | BD | 19 | 8475 | 24.68333 | 88.25 | 54 | 813 | Rajshahi District | null
772-
----
772+
----
773773
--
774774
====
775775

@@ -799,14 +799,14 @@ Sample result::
799799
Operation directory: /Users/awesome.user/Downloads/logs/COUNT_20221123-182833-197954
800800
total | failed | rows/s | p50ms | p99ms | p999ms
801801
134,574 | 0 | 43,307 | 315.71 | 457.18 | 457.18
802-
----
802+
----
803803
--
804804
====
805805

806806

807807
=== Unload data
808808

809-
You can also unload data.
809+
You can also unload data.
810810
Example:
811811

812812
[tabs]
@@ -832,7 +832,7 @@ Sample result::
832832
total | failed | rows/s | p50ms | p99ms | p999ms
833833
134,574 | 0 | 14,103 | 927.51 | 1,853.88 | 1,853.88
834834
Operation UNLOAD_20221123-183054-208353 completed successfully in 9 seconds.
835-
----
835+
----
836836
--
837837
====
838838

@@ -845,9 +845,9 @@ Use the `astra db download-scb` command to download the different secure connect
845845

846846
[source,bash]
847847
----
848-
mkdir db-demo
849-
cd db-demo
850-
astra db download-scb demo
848+
mkdir db-demo
849+
cd db-demo
850+
astra db download-scb demo
851851
ls
852852
----
853853

@@ -874,7 +874,7 @@ astra db download-scb demo -f /tmp/demo.zip
874874

875875
When working with Astra DB, it's handy to generate a set of relevant environment variables such as database name, database region, API call URLs, and so on.
876876

877-
This {astra_cli} command creates an `.env` file based on your environment.
877+
This {astra_cli} command creates an `.env` file based on your environment.
878878
Example:
879879

880880
[tabs]
@@ -908,19 +908,19 @@ Sample result::
908908
ASTRA_ORG_ID="f9460f14-9879-...."
909909
ASTRA_ORG_NAME="awe..."
910910
ASTRA_ORG_TOKEN="AstraCS:QeUmROPLeNbd..."
911-
----
911+
----
912912
--
913913
====
914914

915915

916916
== Resume a hibernated database
917917

918-
If you are using the {astra_db} Free plan, your database will be hibernated (made inactive) after 23 hours of inactivity.
918+
If you are using the {astra_db} Free plan, your database will be hibernated (made inactive) after 23 hours of inactivity.
919919
(This behavior does not occur when you upgrade to a paid {astra_db} plan.)
920920

921921
To wake up the database, you can use the `astra db resume` command.
922922

923-
Assume you have a hibernating database.
923+
Assume you have a hibernating database.
924924
Example:
925925

926926
[tabs]
@@ -944,7 +944,7 @@ Sample result::
944944
+---------------------+--------------------------------------+---------------------+----------------+
945945
| mydatabase | 643c6bb8-2336-4649-97d5-999999999999 | eu-central-1 | HIBERNATED |
946946
+---------------------+--------------------------------------+---------------------+----------------+
947-
----
947+
----
948948
--
949949
====
950950

@@ -971,7 +971,7 @@ Sample result::
971971
+---------------------+--------------------------------------+---------------------+----------------+
972972
| mydatabase | 643c6bb8-2336-4649-97d5-999999999999 | eu-central-1 | RESUMING |
973973
+---------------------+--------------------------------------+---------------------+----------------+
974-
----
974+
----
975975
976976
After some time:
977977
@@ -982,7 +982,7 @@ After some time:
982982
+---------------------+--------------------------------------+---------------------+----------------+
983983
| mydatabase | 643c6bb8-2336-4649-97d5-999999999999 | eu-central-1 | ACTIVE |
984984
+---------------------+--------------------------------------+---------------------+----------------+
985-
----
985+
----
986986
--
987987
====
988988

@@ -1011,7 +1011,7 @@ astra config create dev --token <token_of_org_2>
10111011

10121012
=== Use your section configuration
10131013

1014-
You can use an organization configuration anytime by qualifying the `astra` command with the `--config <config_name>` option.
1014+
You can use an organization configuration anytime by qualifying the `astra` command with the `--config <config_name>` option.
10151015
Example:
10161016

10171017
[source,bash]

local-preview-playbook.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,20 @@ asciidoc:
5656
astra_db: 'Astra DB'
5757
astra_stream: 'Astra Streaming'
5858
astra_ui: 'Astra Portal'
59+
astra_cli: 'Astra CLI'
60+
astra-streaming-examples-repo: 'https://raw.githubusercontent.com/datastax/astra-streaming-examples/master'
61+
luna-streaming-examples-repo: 'https://raw.githubusercontent.com/datastaxdevs/luna-streaming-examples/main'
5962
support_url: 'https://support.datastax.com'
6063
glossary-url: 'https://docs.datastax.com/en/glossary/docs/index.html#'
64+
emoji-tada: "&#127881;"
65+
emoji-rocket: "&#128640;"
66+
emoji-smile: "&#128512"
67+
dse: 'DataStax Enterprise (DSE)'
68+
cassandra: 'Apache Cassandra®'
69+
classic: 'classic'
70+
classic_cap: 'Classic'
71+
serverless: 'serverless'
72+
serverless_cap: 'Serverless'
6173
# Antora Atlas
6274
primary-site-url: https://docs.datastax.com/en
6375
primary-site-manifest-url: https://docs.datastax.com/en/site-manifest.json

0 commit comments

Comments
 (0)