@@ -57,10 +57,10 @@ def fair_node_info(format):
5757
5858
5959@node .command ('init' , help = 'Initialize regular Fair node' )
60- @click .argument ('env_filepath ' )
60+ @click .argument ('config_file ' )
6161@streamed_cmd
62- def init_node (env_filepath : str ):
63- init_fair (node_mode = NodeMode .ACTIVE , env_filepath = env_filepath )
62+ def init_node (config_file : str ):
63+ init_fair (node_mode = NodeMode .ACTIVE , config_file = config_file )
6464
6565
6666@node .command ('register' , help = TEXTS ['fair' ]['node' ]['register' ]['help' ])
@@ -70,7 +70,7 @@ def register(ip: str) -> None:
7070
7171
7272@node .command ('update' , help = 'Update Fair node' )
73- @click .argument ('env_filepath ' )
73+ @click .argument ('config_file ' )
7474@click .option (
7575 '--yes' ,
7676 is_flag = True ,
@@ -88,10 +88,10 @@ def register(ip: str) -> None:
8888 is_flag = True ,
8989)
9090@streamed_cmd
91- def update_node (env_filepath : str , pull_config_for_schain , force_skaled_start : bool ):
91+ def update_node (config_file : str , pull_config_for_schain , force_skaled_start : bool ):
9292 update_fair (
9393 node_mode = NodeMode .ACTIVE ,
94- env_filepath = env_filepath ,
94+ config_file = config_file ,
9595 pull_config_for_schain = pull_config_for_schain ,
9696 force_skaled_start = force_skaled_start ,
9797 )
@@ -106,20 +106,20 @@ def backup_node(backup_folder_path):
106106
107107@node .command ('restore' , help = 'Restore Fair node from a backup file.' )
108108@click .argument ('backup_path' )
109- @click .argument ('env_file ' )
109+ @click .argument ('config_file ' )
110110@click .option (
111111 '--config-only' ,
112112 help = 'Only restore configuration files in .skale and artifacts' ,
113113 is_flag = True ,
114114 hidden = True ,
115115)
116116@streamed_cmd
117- def restore_node (backup_path , env_file , config_only ):
118- restore_fair (backup_path , env_file , config_only )
117+ def restore_node (backup_path , config_file , config_only ):
118+ restore_fair (backup_path , config_file , config_only )
119119
120120
121121@node .command ('migrate' , help = 'Switch from boot to regular Fair node.' )
122- @click .argument ('env_filepath ' )
122+ @click .argument ('config_file ' )
123123@click .option (
124124 '--yes' ,
125125 is_flag = True ,
@@ -128,8 +128,8 @@ def restore_node(backup_path, env_file, config_only):
128128 prompt = 'Are you sure you want to migrate to regular Fair node? The action cannot be undone' ,
129129)
130130@streamed_cmd
131- def migrate_node (env_filepath : str ) -> None :
132- migrate_from_boot (env_filepath = env_filepath )
131+ def migrate_node (config_file : str ) -> None :
132+ migrate_from_boot (config_file = config_file )
133133
134134
135135@node .command ('repair' , help = 'Toggle fair chain repair mode' )
@@ -221,7 +221,7 @@ def turn_off_node() -> None:
221221 expose_value = False ,
222222 prompt = 'Are you sure you want to turn on the node?' ,
223223)
224- @click .argument ('env_filepath ' )
224+ @click .argument ('config_file ' )
225225@streamed_cmd
226- def turn_on_node (env_filepath : str ) -> None :
227- turn_on_fair (env_file = env_filepath , node_type = TYPE )
226+ def turn_on_node (config_file : str ) -> None :
227+ turn_on_fair (env_file = config_file , node_type = TYPE )
0 commit comments