{ "title": "Or use sftp", "content": "fly sftp shell\n> put /local/path/config.json /data/openclaw.json\nbash theme={null}\nfly ssh console --command \"rm /data/openclaw.json\"\nbash theme={null}", "code_samples": [ { "code": "**Note:** `fly sftp` may fail if the file already exists. Delete first:", "language": "unknown" }, { "code": "### State Not Persisting\n\nIf you lose credentials or sessions after a restart, the state dir is writing to the container filesystem.\n\n**Fix:** Ensure `OPENCLAW_STATE_DIR=/data` is set in `fly.toml` and redeploy.\n\n## Updates", "language": "unknown" } ], "headings": [ { "level": "h3", "text": "State Not Persisting", "id": "state-not-persisting" }, { "level": "h2", "text": "Updates", "id": "updates" } ], "url": "llms-txt#or-use-sftp", "links": [] }