- 
Copy .env.example to .env and update the credentials to a valid aura instance. 
- 
Run npm run apocto get a list of currently valid APOC functions/procedures and load them intomodules/ROOT/partials/apoc-procedures.adoc.
NOTE: Remember to destroy Aura instances when no longer in use!
| Note | The script requires Python 3. | 
- 
Copy aura_api.env.exampletoaura_api.envand update it to use actual API access credentials (client ID and client secret).
- 
Create a Python virtual environment: python -m venv venv.
- 
Activate the virtual environment: source venv/bin/activate(venv\Scripts\activateon Windows).
- 
Install the requirements: pip install -r scripts/requirements.txt.
- 
Activate the virtual environment (if not already active): source venv/bin/activate(venv\Scripts\activateon Windows).
- 
Run python scripts/manage_instances.py --create INSTANCE_NAMEto create an Aura instance with name INSTANCE_NAME, orpython scripts/manage_instances.py --destroy INSTANCE_NAMEto destroy it.- 
You can use the optional parameter --instance-typetogether with--createto select the instance type to create (the default isenterprise-ds).
- 
You can use different projects using the optional parameter --tenanttogether with--create(the default isgcp). Every project is used with a default region.
- 
Run python scripts/manage_instances.py --helpfor more details on the usage.
 
- 
The script creates an INSTANCE_NAME.env file containing the Aura instance credentials.
This script can be used to extract runnable code (Python or Cypher statements) from a doc HTML page. This means that the docset has to be built first, for example by running npm run build.
| Note | The script requires Python 3. | 
| Note | AuraDS credentials must be available in an aura.envfile. | 
- 
Create a Python virtual environment: python -m venv venv.
- 
Activate the virtual environment: source venv/bin/activate(venv\Scripts\activateon Windows).
- 
Install the requirements: pip install -r scripts/requirements.txt.
- 
Activate the virtual environment (if not already active): source venv/bin/activate(venv\Scripts\activateon Windows).
- 
Run python scripts/extract_code.py <source-html-file>to extract the content of (GDS client, by default) code blocks from the <source-html-file> doc.- 
The --code-typeparameter can be used to select the type of code blocks to extract.
- 
Run python scripts/extract_code.py --helpfor more details on the usage.
 
- 
Some applications cannot use Asciidoc files that use partials. The replace_partials.py script can be used to preprocess an Asciidoc file and replace the include::partial lines with the actual content of the referenced partials.
| Note | The script requires Python 3. | 
- 
Create a Python virtual environment: python -m venv venv.
- 
Activate the virtual environment: source venv/bin/activate(venv\Scripts\activateon Windows).
- 
Install the requirements: pip install -r scripts/requirements.txt.
- 
Activate the virtual environment (if not already active): source venv/bin/activate(venv\Scripts\activateon Windows).
- 
Run scripts/replace_partials.py <source-asciidoc> <partials-dir>, where<source-asciidoc>is the source file to be processed and<partials-dir>is the location where the partials are. The "enriched" file will be created in the directory where the command is run from, unless the--outdiroption is specified.- 
Run scripts/replace_partials.py --helpfor more details on the usage.
 
-