id = "sam" name = "AWS SAM CLI" description = "AWS Serverless Application Model CLI." homepage = "https://aws.amazon.com/serverless/sam/" executables = ["sam"] [commands] format = 1 label = "AWS SAM" description = "Initialize, build and deploy serverless apps. local, sync, logs, pipeline and publish are not covered." quality = "ai-draft" base = "fig:sam" parser = { end_of_options = "--", interleave = "permute", long_equals = true, short_attached = true, short_bundles = false } [[commands.source]] id = "src" kind = "completion" url = "https://github.com/withfig/autocomplete/blob/master/src/sam.ts" license = "MIT" [[commands.subcommand]] path = ["init"] label = "Initialize an app" [[commands.subcommand.source]] id = "src" kind = "completion" url = "https://github.com/withfig/autocomplete/blob/master/src/sam.ts" license = "MIT" [[commands.subcommand.field]] id = "name" label = "Project name" type = "string" option = ["--name", "-n"] sources = ["src"] [[commands.subcommand.field]] id = "runtime" label = "Runtime" type = "string" option = ["--runtime", "-r"] sources = ["src"] [[commands.subcommand.field]] id = "package_type" label = "Package type" type = "enum" option = ["--package-type", "-p"] choices = [{ value = "zip", label = "zip" }, { value = "image", label = "image" }] sources = ["src"] [[commands.subcommand.field]] id = "architecture" label = "Architecture" type = "enum" option = ["--architecture", "-a"] choices = [{ value = "arm64", label = "arm64" }, { value = "x86_64", label = "x86_64" }] sources = ["src"] [[commands.subcommand.field]] id = "app_template" label = "Managed template" type = "string" option = ["--app-template"] sources = ["src"] [[commands.subcommand.field]] id = "location" label = "Template location" type = "string" option = ["--location", "-l"] sources = ["src"] [[commands.subcommand.field]] id = "output_dir" label = "Output directory" type = "path" option = ["--output-dir", "-o"] path = { kind = "directory", role = "output" } sources = ["src"] [[commands.subcommand.field]] id = "no_interactive" label = "Non-interactive" type = "boolean" option = ["--no-interactive"] sources = ["src"] [[commands.subcommand.task]] id = "init" label = "Create app" fields = ["name", "runtime", "package_type", "architecture"] required = [] [[commands.subcommand.task]] id = "auto" label = "Non-interactive" fields = ["name", "runtime", "package_type", "app_template", "no_interactive"] required = ["name", "runtime", "app_template"] set = { no_interactive = [true] } [[commands.subcommand.group]] id = "basic" label = "Basic" fields = ["name", "runtime", "package_type", "architecture", "no_interactive"] [[commands.subcommand.group]] id = "advanced" label = "Advanced" fields = ["app_template", "location", "output_dir"] [[commands.subcommand]] path = ["build"] label = "Build Lambda functions" [[commands.subcommand.source]] id = "src" kind = "completion" url = "https://github.com/withfig/autocomplete/blob/master/src/sam.ts" license = "MIT" [[commands.subcommand.field]] id = "template" label = "Template file" type = "path" option = ["--template", "-t"] path = { kind = "file", role = "input" } sources = ["src"] [[commands.subcommand.field]] id = "profile" label = "AWS profile" type = "string" option = ["--profile"] sources = ["src"] [[commands.subcommand.field]] id = "region" label = "AWS region" type = "string" option = ["--region"] sources = ["src"] [[commands.subcommand.field]] id = "debug" label = "Debug logging" type = "boolean" option = ["--debug"] sources = ["src"] [[commands.subcommand.field]] id = "use_container" label = "Build inside a container" type = "boolean" option = ["--use-container", "-u"] sources = ["src"] [[commands.subcommand.field]] id = "parallel" label = "Parallel builds" type = "boolean" option = ["--parallel", "-p"] sources = ["src"] [[commands.subcommand.field]] id = "cached" label = "Cached builds" type = "boolean" option = ["--cached", "-c"] sources = ["src"] [[commands.subcommand.field]] id = "build_dir" label = "Build directory" type = "path" option = ["--build-dir", "-b"] path = { kind = "directory", role = "output" } sources = ["src"] [[commands.subcommand.task]] id = "build" label = "Build" fields = ["template"] required = [] [[commands.subcommand.task]] id = "container" label = "Build in container" fields = ["template", "use_container"] required = [] set = { use_container = [true] } [[commands.subcommand.group]] id = "basic" label = "Basic" fields = ["template", "use_container"] [[commands.subcommand.group]] id = "advanced" label = "Advanced" fields = ["profile", "region", "debug", "parallel", "cached", "build_dir"] [[commands.subcommand]] path = ["deploy"] label = "Deploy an app" [[commands.subcommand.source]] id = "src" kind = "completion" url = "https://github.com/withfig/autocomplete/blob/master/src/sam.ts" license = "MIT" [[commands.subcommand.field]] id = "template" label = "Template file" type = "path" option = ["--template", "-t"] path = { kind = "file", role = "input" } sources = ["src"] [[commands.subcommand.field]] id = "profile" label = "AWS profile" type = "string" option = ["--profile"] sources = ["src"] [[commands.subcommand.field]] id = "region" label = "AWS region" type = "string" option = ["--region"] sources = ["src"] [[commands.subcommand.field]] id = "debug" label = "Debug logging" type = "boolean" option = ["--debug"] sources = ["src"] [[commands.subcommand.field]] id = "guided" label = "Guided prompts" type = "boolean" option = ["--guided", "-g"] sources = ["src"] [[commands.subcommand.field]] id = "stack_name" label = "Stack name" type = "string" option = ["--stack-name"] sources = ["src"] [[commands.subcommand.field]] id = "s3_bucket" label = "S3 bucket" type = "string" option = ["--s3-bucket"] sources = ["src"] [[commands.subcommand.field]] id = "s3_prefix" label = "S3 prefix" type = "string" option = ["--s3-prefix"] sources = ["src"] [[commands.subcommand.field]] id = "resolve_s3" label = "Auto-create managed S3 bucket" type = "boolean" option = ["--resolve-s3"] sources = ["src"] [[commands.subcommand.field]] id = "parameter_overrides" label = "Parameter overrides (key=value)" type = "string" option = ["--parameter-overrides"] sources = ["src"] [[commands.subcommand.field]] id = "config_file" label = "Config file" type = "path" option = ["--config-file"] path = { kind = "file", role = "input" } sources = ["src"] [[commands.subcommand.field]] id = "config_env" label = "Config environment" type = "string" option = ["--config-env"] sources = ["src"] [[commands.subcommand.task]] id = "guided" label = "Guided deploy" fields = ["guided"] required = [] set = { guided = [true] } [[commands.subcommand.task]] id = "deploy" label = "Deploy to stack" fields = ["template", "stack_name", "s3_bucket", "resolve_s3"] required = ["stack_name"] [[commands.subcommand.group]] id = "basic" label = "Basic" fields = ["template", "guided", "stack_name", "s3_bucket", "resolve_s3"] [[commands.subcommand.group]] id = "advanced" label = "Advanced" fields = ["s3_prefix", "parameter_overrides", "config_file", "config_env", "profile", "region", "debug"]