You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -544,29 +544,250 @@ The {product} stores installation and configuration files in the following locat
544
544
545
545
[cols="1h,2"]
546
546
|===
547
-
|File / Directory |Description
547
+
|File / Folder |Description
548
548
549
549
|`.astra`
550
-
a|The `ASTRA_HOME` directory.
550
+
a|The {product} home folder (`ASTRA_HOME`).
551
551
552
-
_Default location_: `~/.astra` (macOS and Linux), `%USERPROFILE%\.astra` (Windows)
552
+
_Default location_:
553
553
554
-
The {product} stores the following items in this directory:
554
+
* macOS and Linux: `~/.astra`
555
+
* Windows: `%USERPROFILE%\.astra`
556
+
* All platforms: If the `XDG_DATA_HOME` environment variable is set, then the default location is `$XDG_DATA_HOME/astra`.
555
557
556
-
* The {product} executable (scripted installations only)
557
-
* Accessory executables downloaded by certain commands, such as `xref:commands:astra-db-cqlsh.adoc[]` and `xref:commands:astra-db-dsbulk.adoc[]`
558
-
* {scb-brief}s
558
+
The {product} home folder contains the following items:
559
+
560
+
* The `astra` executable (scripted installations only)
561
+
* Accessory executables that are downloaded by certain commands, such as `xref:commands:astra-db-cqlsh.adoc[]` and `xref:commands:astra-db-dsbulk.adoc[]`
* Cache files for <<command-auto-completion,command auto-completion>>
560
564
* Logs
561
565
562
-
For more information about the `ASTRA_HOME` directory, see the {product} https://github.com/datastax/astra-cli?tab=readme-ov-file#home-folder-location[README].
566
+
For more information about `ASTRA_HOME`, see the https://github.com/datastax/astra-cli?tab=readme-ov-file#home-folder-location[{product} README].
563
567
564
568
|`.astrarc`
565
-
|The {product} configuration file.
569
+
a|The {product} configuration file.
570
+
571
+
_Default location_:
566
572
567
-
_Default location_: `~/.astrarc` (macOS and Linux), `%USERPROFILE%\.astrarc` (Windows)
573
+
* macOS and Linux: `~/.astrarc`
574
+
* Windows: `%USERPROFILE%\.astrarc`
575
+
* All platforms: If the `XDG_CONFIG_HOME` environment variable is set, then the default location is `$XDG_CONFIG_HOME/astra/.astrarc`.
568
576
569
-
This file stores your <<manage-configuration-profiles,configuration profiles>> and their associated application tokens.
577
+
The {product} uses this file to store your <<manage-configuration-profiles,configuration profiles>> and their associated application tokens.
570
578
571
-
For more information about the {product} configuration file, see the {product} https://github.com/datastax/astra-cli?tab=readme-ov-file#astrarc-location[README].
579
+
For more information about the {product} configuration file, see the https://github.com/datastax/astra-cli?tab=readme-ov-file#astrarc-location[{product} README].
572
580
|===
581
+
582
+
=== Override the default home folder location
583
+
584
+
You can override the default location of the {product} home folder (`.astra`) by setting the `ASTRA_HOME` environment variable.
If no rows are returned, you should assume an implicit `OK` code.
771
+
772
+
|`message`
773
+
|`string`
774
+
|Optional.
775
+
A human-friendly message describing the result or error of the command.
776
+
777
+
Not all commands include a message, and this field will be empty if there is nothing to report.
778
+
779
+
|Additional data fields
780
+
|Any (type varies by command)
781
+
a|Command-specific fields representing the actual data returned.
782
+
783
+
Fields may be empty if there is nothing to report.
784
+
785
+
Column order is consistent per command.
786
+
|===
787
+
--
788
+
======
789
+
790
+
[NOTE]
791
+
====
792
+
For commands that issue GET requests, the `json` response generally contains the raw response from the server, whereas the `human` and `csv` formats contain a simplified version of the data.
Copy file name to clipboardExpand all lines: modules/ROOT/pages/uninstall.adoc
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -99,7 +99,7 @@ Manual removal::
99
99
rm $(astra config path -p)
100
100
----
101
101
102
-
. Delete the xref:ROOT:manage-cli.adoc#file-locations[{product} home directory]:
102
+
. Delete the xref:ROOT:manage-cli.adoc#file-locations[{product} home folder]:
103
103
+
104
104
[source,shell]
105
105
----
@@ -229,7 +229,7 @@ Manual removal::
229
229
rm -f $(astra config path -p)
230
230
----
231
231
232
-
. Delete the xref:ROOT:manage-cli.adoc#file-locations[{product} home directory]:
232
+
. Delete the xref:ROOT:manage-cli.adoc#file-locations[{product} home folder]:
233
233
+
234
234
[source,powershell]
235
235
----
@@ -251,7 +251,7 @@ For more information, see the https://learn.microsoft.com/en-us/powershell/modul
251
251
Homebrew::
252
252
+
253
253
--
254
-
. Delete the {product} home directory (`xref:ROOT:manage-cli.adoc#file-locations[~/.astra]`) and optionally its configuration file (`xref:ROOT:manage-cli.adoc#file-locations[~/.astrarc]`):
254
+
. Delete the {product} home folder (`xref:ROOT:manage-cli.adoc#file-locations[~/.astra]`) and optionally its configuration file (`xref:ROOT:manage-cli.adoc#file-locations[~/.astrarc]`):
255
255
+
256
256
.. Run the `xref:commands:astra-nuke.adoc[]` command:
// Author's note: Once we get further away from the 1.0 release, we can probably move the content of this page into a section of on the main upgrade.adoc page.
5
+
6
+
{product} 1.0 and later do not support xref:ROOT:upgrade.adoc[in-place upgrades] from versions earlier than 1.0.
7
+
8
+
If you have an earlier version installed, you must delete the `astra` executable before you can install the latest version:
9
+
10
+
[tabs,sync-group-id=platforms]
11
+
======
12
+
macOS and Linux::
13
+
+
14
+
--
15
+
[source,shell]
16
+
----
17
+
rm ~/.astra/cli/astra
18
+
----
19
+
20
+
.Delete custom installation
21
+
[%collapsible]
22
+
====
23
+
If you installed the {product} to a custom location, you can use the following command to delete the `astra` executable if it exists in your PATH:
24
+
25
+
[source,shell]
26
+
----
27
+
rm $(which astra)
28
+
----
29
+
====
30
+
31
+
This command does not delete your xref:ROOT:manage-cli.adoc#file-locations[{product} home folder and configuration file] (`.astra` and `.astrarc`).
32
+
Leave these files in place so that the new version of the {product} can continue to connect using your existing configuration.
33
+
--
34
+
35
+
Homebrew::
36
+
+
37
+
--
38
+
[source,shell]
39
+
----
40
+
brew uninstall datastax/astra-cli/astra-cli
41
+
----
42
+
43
+
Uninstalling with Homebrew does not delete your xref:ROOT:manage-cli.adoc#file-locations[{product} home folder and configuration file] (`.astra` and `.astrarc`).
44
+
Leave these files in place so that the new version of the {product} can continue to connect using your existing configuration.
45
+
--
46
+
======
47
+
48
+
After you delete the old `astra` executable, follow the instructions in xref:ROOT:install.adoc[] to install the latest version.
49
+
50
+
.Breaking changes in version 1.0
51
+
[IMPORTANT]
52
+
====
53
+
{product} version 1.0 is largely backwards-compatible with pre-1.0 versions.
54
+
However, there are some changes that might break certain scripted usage, such as:
55
+
56
+
* New standardized xref:ROOT:manage-cli.adoc#output-formats[JSON and CSV output formats and exit codes].
57
+
58
+
* Minor command and flag name changes.
59
+
For a full list of name changes, see the https://github.com/datastax/astra-cli?tab=readme-ov-file#whats-changed[release notes].
0 commit comments