code: def _register(self):
      super()._register()
  
      self._parser.add_argument(
          "--host",
          type=str,
          help="Bind socket to this host. Defaults to 127.0.0.1",
          default=os.getenv("DSTACK_SERVER_HOST", "127.0.0.1"),
      )
      self._parser.add_argument(
          "-p",
          "--port",
          type=int,
          help="Bind socket to this port. Defaults to 3000.",
          default=os.getenv("DSTACK_SERVER_PORT", 3000),
      )
      self._parser.add_argument(
          "-l",
          "--log-level",
          type=str,
          help="Server logging level. Defaults to WARNING.",
          default=os.getenv("DSTACK_SERVER_LOG_LEVEL", "WARNING"),
      )
      self._parser.add_argument(
          "--default",
          help="Update the default project configuration",
          action="store_true",
      )
      self._parser.add_argument(
          "--no-default",
          help="Do not update the default project configuration",
          action="store_true",
      )
      self._parser.add_argument(
          "--token", type=str, help="The admin user token"
      )
  
file_path: dstack/src/dstack/_internal/cli/commands/server.py
imports: import os
  from argparse import Namespace
  import uvicorn
  from dstack import version
  from dstack._internal.cli.commands import BaseCommand
label_desc: Use image node_id 1 for calling the ServerCommand obj's underlying member method code with example usage: obj._register() without return types