Skip to content

Commit af87ce9

Browse files
committed
Fix docs
1 parent 550ba56 commit af87ce9

File tree

2 files changed

+14
-46
lines changed

2 files changed

+14
-46
lines changed

docs/tools/flow-cli/flow.json/initialize-configuration.md

Lines changed: 11 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -81,24 +81,16 @@ Local configuration files will override global settings for overlapping properti
8181
If a `flow.json` file already exists, you'll see this error:
8282

8383
```shell
84-
❌ Command Error: configuration already exists at: flow.json, if you want to reset configuration use the reset flag
84+
❌ Command Error: configuration already exists at: flow.json
8585
```
8686

8787
**Solutions:**
88-
- Use `--reset` flag to overwrite existing configuration
8988
- Delete the existing `flow.json` file first
9089
- Initialize in a different directory
90+
- Use `--config-only` to create a new config in a different location
9191

9292
## Flags
9393

94-
### Reset Configuration
95-
96-
```shell
97-
flow init --reset
98-
```
99-
100-
Overwrites existing configuration with a fresh setup.
101-
10294
### Configuration Only
10395

10496
```shell
@@ -107,50 +99,24 @@ flow init --config-only
10799

108100
Creates only the `flow.json` file without project structure.
109101

110-
### Global Configuration
111-
112-
```shell
113-
flow init --global
114-
```
115-
116-
Creates a global configuration file in your home directory.
117-
118-
### Service Account Customization
119-
120-
#### Private Key
121102

122-
```shell
123-
flow init --service-private-key <hex-key>
124-
```
125-
126-
Specify a custom private key for the service account.
127-
128-
#### Signature Algorithm
129-
130-
```shell
131-
flow init --service-sig-algo ECDSA_P256
132-
```
133103

134-
**Options:** `ECDSA_P256`, `ECDSA_secp256k1`
135-
**Default:** `ECDSA_P256`
104+
### Global Flags
136105

137-
#### Hash Algorithm
106+
The following global flags are also available:
138107

139108
```shell
140-
flow init --service-hash-algo SHA3_256
141-
```
142-
143-
**Options:** `SHA2_256`, `SHA3_256`
144-
**Default:** `SHA3_256`
109+
# Log level
110+
flow init --log debug
145111

146-
### Log Level
112+
# Output format
113+
flow init --output json
147114

148-
```shell
149-
flow init --log debug
115+
# Approve prompts automatically
116+
flow init --yes
150117
```
151118

152-
**Options:** `none`, `error`, `debug`
153-
**Default:** `info`
119+
**Available log levels:** `debug`, `info`, `error`, `none`
154120

155121
## Next Steps
156122

docs/tools/flow-cli/flow.json/manage-configuration.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,9 +172,11 @@ flow config remove network custom-testnet
172172
### Remove a Deployment
173173

174174
```shell
175-
flow config remove deployment testnet my-testnet-account MyToken
175+
flow config remove deployment my-testnet-account testnet
176176
```
177177

178+
**Note:** This removes all deployments for the specified account on the specified network.
179+
178180
## Configuration File Management
179181

180182
### Using Custom Configuration Files

0 commit comments

Comments
 (0)