Skip to content

Commit 0c3d3ae

Browse files
authored
Add support for providing args in a file (#1441) (#1442)
Cherry-picked from #1441
1 parent 9b14819 commit 0c3d3ae

File tree

2 files changed

+19
-2
lines changed

2 files changed

+19
-2
lines changed

modules/ROOT/pages/tools/neo4j-admin/index.adoc

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,11 @@
99
Both are installed as part of the product and can be executed with a number of commands.
1010
The `neo4j` commands are equivalent to the most important commands in the `neo4j-admin` server category.
1111

12-
`help` and `version` are special commands and can be invoked with both `neo4j-admin` and `neo4j`.
13-
They are described in more detail in the <<_version_command>> and <<_help_command>> sections.
12+
Both `neo4j-admin` and `neo4j` commands support the <<help_command, `--help`>> option, which prints the command's usage and options, and the <<version_command, `--version`>> option, which prints the version of the command.
13+
All admin command options can also be provided in a file and passed to the command using the `@` prefix.
14+
This is useful when the command line becomes too long to manage.
15+
For example, `neo4j-admin database import full @/path/to/your/<args-filename> mydb`.
16+
For more information, see link:https://picocli.info/#AtFiles[Picocli -> AtFiles] official documentation.
1417

1518
[NOTE]
1619
====

modules/ROOT/pages/tools/neo4j-admin/neo4j-admin-import.adoc

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -343,6 +343,20 @@ neo4j-admin database import full --format=high_limit
343343
The `high_limit` format is available for Enterprise Edition only.
344344
====
345345

346+
[NOTE]
347+
.Providing arguments in a file
348+
====
349+
All options can be provided in a file and passed to the command using the `@` prefix.
350+
This is useful when the command line becomes too long to manage.
351+
For example, the following command:
352+
353+
[source, shell]
354+
----
355+
neo4j-admin database import full @/path/to/your/<args-filename> mydb
356+
----
357+
For more information, see link:https://picocli.info/#AtFiles[Picocli -> AtFiles] official documentation.
358+
====
359+
346360
[[import-tool-examples]]
347361
=== Examples
348362

0 commit comments

Comments
 (0)