code: def cli(ctx, location, runtime, dependency_manager, output_dir, name, no_input):
      
      # All logic must be implemented in the `do_cli` method. This helps ease unit tests
      do_cli(ctx, location, runtime, dependency_manager, output_dir,
             name, no_input)
docs: \b
          Initialize a serverless application with a SAM template, folder
          structure for your Lambda functions, connected to an event source such as APIs,
          S3 Buckets or DynamoDB Tables. This application includes everything you need to
          get started with serverless and eventually grow into a production scale application.
          \b
          This command can initialize a boilerplate serverless app. If you want to create your own
          template as well as use a custom location please take a look at our official documentation.
  
      \b
      Common usage:
  
          \b
          Initializes a new SAM project using Python 3.6 default template runtime
          \b
          $ sam init --runtime python3.6
          \b
          Initializes a new SAM project using Java 8 and Gradle dependency manager
          \b
          $ sam init --runtime java8 --dependency-manager gradle
          \b
          Initializes a new SAM project using custom template in a Git/Mercurial repository
          \b
          # gh being expanded to github url
          $ sam init --location gh:aws-samples/cookiecutter-aws-sam-python
          \b
          $ sam init --location git+ssh://git@github.com/aws-samples/cookiecutter-aws-sam-python.git
          \b
          $ sam init --location hg+ssh://hg@bitbucket.org/repo/template-name
  
          \b
          Initializes a new SAM project using custom template in a Zipfile
          \b
          $ sam init --location /path/to/template.zip
          \b
          $ sam init --location https://example.com/path/to/template.zip
  
          \b
          Initializes a new SAM project using custom template in a local path
          \b
          $ sam init --location /path/to/template/folder