# Export Keys

{% code fullWidth="true" %}

```
NAME:
   singularity wallet export-keys - Migrate private keys from database (legacy Actor.PrivateKey) to the filesystem keystore

USAGE:
   singularity wallet export-keys [command options]

DESCRIPTION:
   Reads private keys stored in the legacy actors table and saves them to
   the filesystem keystore (~/.singularity/keystore or SINGULARITY_KEYSTORE).
   Creates Wallet records for each exported key and links them to the
   corresponding Actor.

   This command is idempotent — actors whose address already has a Wallet
   record are skipped. Keys that fail to parse are reported but do not
   abort the migration.

   After exporting, prompts to drop the orphaned private_key column from
   the actors table. This is irreversible — verify keys are in the keystore
   before confirming. For scripted use, pass --drop-db-keys --i-am-really-sure
   to skip the prompt.

OPTIONS:
   --drop-db-keys      drop the private_key column from the actors table after export (default: false)
   --i-am-really-sure  confirm column drop (required with --drop-db-keys) (default: false)
   --help, -h          show help
```

{% endcode %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://data-programs.gitbook.io/singularity/cli-reference/wallet/export-keys.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
