diff --git a/src/writer/command_line.py b/src/writer/command_line.py index 6bf8962f6..1255f5240 100644 --- a/src/writer/command_line.py +++ b/src/writer/command_line.py @@ -7,7 +7,7 @@ import click import writer.serve -from writer.deploy import cloud +from writer.deploy import cloud, deploy CONTEXT_SETTINGS = {'help_option_names': ['-h', '--help']} @click.group( @@ -73,6 +73,7 @@ def hello(port: Optional[int], host: str, enable_remote_edit): enable_server_setup=False) +main.add_command(deploy, name="deploy") main.add_command(cloud) def create_app(app_path: str, template_name: Optional[str], overwrite=False): diff --git a/src/writer/deploy.py b/src/writer/deploy.py index be0f74ac8..c9b36a159 100644 --- a/src/writer/deploy.py +++ b/src/writer/deploy.py @@ -30,7 +30,7 @@ def cloud(): prompt="Enter your API key", hide_input=True, help="Writer API key" ) -@click.option('--env', '-e', multiple=True, default=[], help="Environment to deploy the app to") +@click.option('--env', '-e', multiple=True, default=[], help="Set environment variables for the app (e.g., --env KEY=VALUE)") @click.option('--force', '-f', default=False, is_flag=True, help="Ignores warnings and overwrites the app") @click.option('--verbose', '-v', default=False, is_flag=True, help="Enable verbose mode") @click.argument('path')