@strapi/strapi
Version:
An open source headless CMS solution to create and manage your own API. It provides a powerful dashboard and features to make your life easier. Databases supported: MySQL, MariaDB, PostgreSQL, SQLite
18 lines • 981 B
TypeScript
import type { Command } from 'commander';
export declare const EXPORT_DIR_REQUIRES_NO_ENCRYPT = "Unpacked directory exports (--format dir) require --no-encrypt.";
export declare const EXPORT_DIR_ENCRYPTION_NOT_SUPPORTED = "Unpacked directory exports (--format dir) do not support encryption. Use --format tar, or omit --encrypt.";
/**
* Directory exports require an explicit `--no-encrypt` (security). Compression is tar-only and is
* turned off automatically for `--format dir` (no `--no-compress` needed). Runs before
* `promptEncryptionKey` so missing `--no-encrypt` fails with a clear message instead of a key prompt.
*/
export declare function prepareExportDirFormatCli(command: Command): void;
/**
* Same rules for programmatic `exportAction(opts)` (no Commander hooks).
*/
export declare function normalizeExportDirFormatOpts(opts: {
format?: 'tar' | 'dir';
encrypt?: boolean;
compress?: boolean;
}): void;
//# sourceMappingURL=validate-dir-format.d.ts.map