Commands

database

An overview of the APK Scanner "database" command.

Overview

Interact with the application database.

Subcommands

setup

This action destroys existing data.

Set up the database for usage, removing existing data.

The database will be cleaned and recreated, importing data specified in the data configuration.

If data already exists, the command will wait for 30 seconds before proceeding unless the force option is specified.

apk-scanner database setup [<options>]

Options

-f, --force
flag
Force database setup without waiting when data already exists.

export-all

Exports everything that can be exported to the specified export paths in the data configuration.

For more information about each action, see the other export-* commands below.

If an exported file already exists, it will be overwritten.

apk-scanner database export-all

export-library-definitions

Exports library data to the location of library_definition_export_path and library_information_export_path specified in the data configuration.

If an exported file already exists, it will be overwritten.

apk-scanner database export-library-definitions

Options

--output-definition
path
Write library definition export to the given path instead of using the path specified in the data config section.
--output-info
path
Write library information export to the given path instead of using the path specified in the data config section.

export-manifest-config

Exports manifest data to the location of manifest_config_export_path specified in the data configuration.

If an exported file already exists, it will be overwritten.

apk-scanner database export-manifest-config

Options

-o, --output
path
Write manifest config export to the given path instead of using the path specified in the data config section.

export-signing-certificate-data

Exports library data to the location of certificate_denylist_export_path specified in the data configuration.

If an exported file already exists, it will be overwritten.

apk-scanner database export-signing-certificate-data

Options

-o, --output
path
Write signing certificate data export to the given path instead of using the path specified in the data config section.