Skip to content

Commit eb51a2a

Browse files
authored
Merge pull request #1641 from onflow/cf/extract-keys-docs
Add CLI docs on `extract-key`
2 parents e10e2f8 + 2f0b6eb commit eb51a2a

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

docs/build/tools/flow-cli/flow.json/security.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -281,6 +281,18 @@ secrets.json
281281
}
282282
```
283283

284+
:::info Extracting Existing Inline Keys
285+
286+
If you already have inline keys in your `flow.json`, you can easily extract them to separate files:
287+
288+
```bash
289+
flow config extract-key --all
290+
```
291+
292+
This command creates `.pkey` files with restricted permissions, updates your `flow.json` to reference them, and adds the key files to `.gitignore`.
293+
294+
:::
295+
284296
## Troubleshooting
285297

286298
### Environment Variables Not Loading

0 commit comments

Comments
 (0)