# neo4j-admin Reference `neo4j-admin` is installed automatically with Neo4j in the `bin/` directory. ```bash neo4j-admin --version ``` ## Basic Syntax ```bash neo4j-admin [OPTIONS] [COMMAND] ``` **Global Options**: - `--help`, `-h` - Show help message - `--version`, `-V` - Print version information - `--verbose` - Print additional information - `--expand-commands` - Allow command expansion in config value evaluation ## Command Categories ### dbms #### set-default-admin ```bash neo4j-admin dbms set-default-admin ``` #### set-initial-password ```bash neo4j-admin dbms set-initial-password ``` ```bash neo4j-admin dbms set-initial-password MySecureP@ssw0rd ``` #### unbind-system-db Removes cluster state to enable rebinding to a different cluster. ```bash neo4j-admin dbms unbind-system-db ``` ### server #### memory-recommendation ```bash neo4j-admin server memory-recommendation ``` ``` # Recommended memory settings: server.memory.heap.initial_size=4g server.memory.heap.max_size=4g server.memory.pagecache.size=8g ``` #### report Generates a diagnostic archive for Neo4j support team. ```bash neo4j-admin server report ``` **Options**: - `--to=` - Output directory for the report archive - `--list` - List available classifiers - `--filter=` - Filter specific data to include #### license ```bash neo4j-admin server license --accept-commercial neo4j-admin server license --accept-evaluation ``` ### database #### backup ```bash neo4j-admin database backup --to-path= ``` ```bash neo4j-admin database backup neo4j --to-path=/backups/$(date +%Y%m%d) ``` **Options**: - `--to-path=` - Destination directory (required) - `--type=` - Backup type: `full` or `differential` - `--keep-failed` - Keep failed backup attempts - `--verbose` - Print detailed progress - `--split-archive-part-size=` - Split the backup artifact into multiple parts of this size [2026.09]; config default `server.split_archive.part_size` - `--skip-empty-diffs[=true|false]` - Differential backup with no new transactions produces no artifact [2026.08]; requires `--include-metadata=none`; default `false` #### restore **Important**: Database must be stopped before restore. ```bash neo4j-admin database restore --from-path= ``` ```bash neo4j-admin database restore neo4j --from-path=/backups/20260216 ``` #### dump ```bash neo4j-admin database dump --to-path= ``` ```bash neo4j-admin database dump mydb --to-path=/exports/mydb.dump # Split a large dump into 5 GB parts [2026.09] neo4j-admin database dump mydb --to-path=/exports --split-archive-part-size=5G ``` **Options**: - `--to-path=` - Destination file or directory (required) - `--split-archive-part-size=` - Split the dump into multiple parts of this size [2026.09]; config default `server.split_archive.part_size` #### load ```bash neo4j-admin database load --from-path= ``` ```bash neo4j-admin database load newdb --from-path=/exports/mydb.dump --overwrite-destination=true ``` **Options**: - `--from-path=` - Source dump file (required) - `--overwrite-destination` - Allow overwriting existing database #### import ```bash neo4j-admin database import \ --nodes= \ --relationships= \ --database= ``` ```bash neo4j-admin database import \ --nodes=Person=persons.csv \ --relationships=KNOWS=knows.csv \ --database=socialnetwork \ --delimiter="," ``` **Options**: - `--nodes=