This repository contains the AsciiDoc source files for the DataStax Astra CLI documentation.
To learn how to update the documentation, see the Docs team Confluence site.
The Astra CLI command reference documentation is generated from the literal CLI help text in the Astra CLI code. The command reference documentation should be regenerated and committed to the docs whenever a new version of the Astra CLI is released.
-
If you haven’t done so yet, clone the Astra CLI code repository:
git clone https://github.com/datastax/astra-cli.git
-
Change directory to the cloned repository:
cd astra-cli -
Pull the latest changes:
git switch main && git pull -
Run the following command to regenerate the command reference docs:
source scripts/dev-alias.sh; astra docs && \ rsync -a --delete build/docs/commands/ ~/repos/astra-cli-docs/modules/commands/pages/ && \ cp -f build/docs/partial-nav.adoc ~/repos/astra-cli-docs/modules/commands/partials/
Replace
reposwith the appropriate path to your cloned repositories.