Skip to content

Customize Forest data directory via env variable #6008

Closed

Description

@LesnyRumcajs

Summary

Forest data directory is customizable exclusively with a configuration file. We could make it easier by allowing to pass an environmental variable like FOREST_PATH (in Lotus, there's a LOTUS_PATH so it'd make easier for folks switching between implementations).

Precedence:

  1. Env variable
  2. Config
  3. Defaults

Other binaries might also need to be updated, e.g., forest-wallet.

Completion Criteria

  • Introduce FOREST_PATH environmental variable and ensure it's consistent with other forest* binaries
  • Look into current configuration files in Forest test scripts - perhaps some logic could be simplified thanks to this.
  • Add entry in docs

Additional Links & Resources

Activity

  1. added
    Type: Task
    on Aug 28, 2025
  2. hanabi1224 commented on Aug 28, 2025

    @hanabi1224
    Contributor

    I think it'd also be helpful to log the actual data dir on startup.

  3. moved this from New to Ready in Forest Backlog 🌲on Sep 11, 2025
  4. 0xDevNinja commented on May 19, 2026

    @0xDevNinja
    Contributor

    Taking this. Plan: add FOREST_PATH env var honored by forest, forest-cli, forest-wallet and forest-tool with precedence env > config > defaults, plus a startup log of the resolved data dir. Docs + CHANGELOG entry to follow. PR shortly.

  5. moved this from Ready to In review in Forest Backlog 🌲on Jun 18, 2026
  6. added a commit that references this issue on Jun 22, 2026
    897303c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type: Task

Type

No type

Fields

Priority

None yet

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions