@@ -215,7 +215,7 @@ def project_deploy_log(obj, remote_id, stage):
215215@click .pass_obj
216216def project_dashboard (obj , remote_id ):
217217 """Open project dashboard"""
218- click .launch (get_cp_url (obj .client , remote_id ))
218+ click .launch (get_cp_url (client = obj .client , project_id = remote_id ))
219219
220220
221221@project .command (name = 'up' )
@@ -310,15 +310,15 @@ def environment_variables(obj, remote_id, stage, show_all_vars,
310310@click .pass_obj
311311def project_open_test (obj , remote_id ):
312312 """Open project test site"""
313- open_project_cloud_site (obj .client , remote_id , 'test' )
313+ open_project_cloud_site (obj .client , project_id = remote_id , stage = 'test' )
314314
315315
316316@project .command (name = 'live' )
317317@allow_remote_id_override
318318@click .pass_obj
319319def project_open_live (obj , remote_id ):
320320 """Open project live site"""
321- open_project_cloud_site (obj .client , remote_id , 'live' )
321+ open_project_cloud_site (obj .client , project_id = remote_id , stage = 'live' )
322322
323323
324324@project .command (name = 'status' )
@@ -338,7 +338,11 @@ def project_stop():
338338@click .pass_obj
339339def project_cheatsheet (obj , remote_id ):
340340 """Show useful commands for your project"""
341- click .launch (get_cp_url (obj .client , remote_id , 'local-development/' ))
341+ click .launch (get_cp_url (
342+ obj .client ,
343+ project_id = remote_id ,
344+ section = 'local-development/' ),
345+ )
342346
343347
344348@project .command (name = 'setup' )
@@ -403,7 +407,7 @@ def pull_media(obj, remote_id, stage):
403407 Pull media files from your deployed website. Stage is either
404408 test (default) or live
405409 """
406- localdev .pull_media (obj .client , stage , remote_id )
410+ localdev .pull_media (obj .client , stage = stage , remote_id = remote_id )
407411
408412
409413@project .group (name = 'push' )
@@ -432,13 +436,18 @@ def push_db(obj, remote_id, stage, dumpfile, noinput):
432436 click .secho (messages .PUSH_DB_WARNING .format (stage = stage ), fg = 'red' )
433437 if not click .confirm ('\n Are you sure you want to continue?' ):
434438 return
435- localdev .push_db (obj .client , stage , remote_id )
439+ localdev .push_db (obj .client , stage = stage , remote_id = remote_id )
436440 else :
437441 if not noinput :
438442 click .secho (messages .PUSH_DB_WARNING .format (stage = stage ), fg = 'red' )
439443 if not click .confirm ('\n Are you sure you want to continue?' ):
440444 return
441- localdev .push_local_db (obj .client , stage , dumpfile , remote_id )
445+ localdev .push_local_db (
446+ obj .client ,
447+ stage = stage ,
448+ dump_filename = dumpfile ,
449+ website_id = remote_id ,
450+ )
442451
443452
444453@project_push .command (name = 'media' )
@@ -456,7 +465,7 @@ def push_media(obj, remote_id, stage, noinput):
456465 click .secho (messages .PUSH_MEDIA_WARNING .format (stage = stage ), fg = 'red' )
457466 if not click .confirm ('\n Are you sure you want to continue?' ):
458467 return
459- localdev .push_media (obj .client , stage , remote_id )
468+ localdev .push_media (obj .client , stage = stage , remote_id = remote_id )
460469
461470
462471@project .group (name = 'import' )
0 commit comments