manage storage for your app
1 2Usage: forge storage [options] [command]
1 2 3 4--verbose enable verbose mode --non-interactive run the command without input prompts -h, --help display help for command
1 2 3local [options] manage Docker-backed local storage for this app entities [options] manage indexes for custom entities present in your app
Local storage mocks are an Early Access Program (EAP) feature. They are experimental and intended for development, testing, and feedback.
EAP features are unsupported, not recommended for production use, and subject to change without notice.
For more details, see Forge release phases: EAP, Preview, and GA.
Run forge storage local --help from your Forge app directory to list these commands. Your manifest selects the services: the storage:app scope enables KVS, Secret Store, and Custom Entity Store, and a modules.sql entry enables Forge SQL.
| Command | CLI description |
|---|---|
forge storage local start | start manifest-configured local-storage services |
forge storage local status | show local-storage configuration and runtime health |
forge storage local seed | seed one or more configured local-storage capabilities |
forge storage local reset | reset selected capabilities, or every configured capability when no flag is supplied |
forge storage local stop | stop local-storage containers while preserving data |
Seed fixtures. Each seed flag takes a file path. Use either flag on its own, or supply both to load both files. Running forge storage local seed without flags prints the accepted formats.
1 2forge storage local seed --kvs ./kvs-seed.json --sql ./sql-seed.sql
Reset data. Reset clears data for the current app without prompting. Use forge storage local reset --kvs or forge storage local reset --sql to clear one service. Use both flags when both services are declared, or omit the flags to reset all declared services.
To route SDK calls to local storage, run forge tunnel --local-storage. Exiting the tunnel or running forge storage local stop stops the shared containers and preserves their data. See Develop with local storage for setup and example fixtures.
Rate this page: