@@ -81,24 +81,16 @@ Local configuration files will override global settings for overlapping properti
81
81
If a ` flow.json ` file already exists, you'll see this error:
82
82
83
83
``` 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
85
85
```
86
86
87
87
** Solutions:**
88
- - Use ` --reset` flag to overwrite existing configuration
89
88
- Delete the existing ` flow.json ` file first
90
89
- Initialize in a different directory
90
+ - Use ` --config-only ` to create a new config in a different location
91
91
92
92
## Flags
93
93
94
- # ## Reset Configuration
95
-
96
- ` ` ` shell
97
- flow init --reset
98
- ` ` `
99
-
100
- Overwrites existing configuration with a fresh setup.
101
-
102
94
### Configuration Only
103
95
104
96
``` shell
@@ -107,50 +99,24 @@ flow init --config-only
107
99
108
100
Creates only the ` flow.json ` file without project structure.
109
101
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
121
102
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
- ` ` `
133
103
134
- ** Options:** ` ECDSA_P256` , ` ECDSA_secp256k1`
135
- ** Default:** ` ECDSA_P256`
104
+ ### Global Flags
136
105
137
- # ### Hash Algorithm
106
+ The following global flags are also available:
138
107
139
108
``` 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
145
111
146
- # ## Log Level
112
+ # Output format
113
+ flow init --output json
147
114
148
- ` ` ` shell
149
- flow init --log debug
115
+ # Approve prompts automatically
116
+ flow init --yes
150
117
```
151
118
152
- ** Options:** ` none` , ` error` , ` debug`
153
- ** Default:** ` info`
119
+ ** Available log levels:** ` debug ` , ` info ` , ` error ` , ` none `
154
120
155
121
## Next Steps
156
122
0 commit comments