• Documentation
  • Pricing
© 2026 Serverless, Inc. All rights reserved.

Framework

  • Overview
  • Documentation
  • Plugins360
  • Pricing

Learn

  • Blog
  • GuidesUpdated
  • Examples240
  • Courses

Resources

  • Support
  • Security
  • Trust Center
  • Status

Community

  • Slack
  • GitHub47k
  • Forum
  • Meetups

Company

  • About
  • Careers
  • Contact
  • Partners

Legal

  • Terms of Service
  • Privacy Policy
  • Trademark
  • DMCA
Serverless Framework Logo

Serverless Framework

Intro
SetupUpgrading To V4ConceptsTutorialAWS CredentialsLicense Keys
DeployingPackagingBuildingTestingDev ModeServicesFunctions
OverviewHTTP (API Gateway v2)REST (API Gateway v1)ActiveMQApplication Load BalancerAlexa SkillAlexa Smart HomeCloudWatch EventCloudWatch LogCloudFrontCognito User PoolEventBridge EventIoTIoT Fleet ProvisioningKafkaKinesis & DynamoDBMSKRabbitMQS3ScheduleSNSSQSWebsocket
LayersManaged InstancesWeb Apps (Lambda Web Functions)Sandboxes (Lambda MicroVMs)MCP ServersAlertsVersion PruningDomainsIAM Function PermissionsParameters
OverviewSelf-reference serverless.ymlServerless CoreEnvironment VariablesCLI OptionsExternal YAML/JSON FilesJavascript propertiesGitDoppler
OverviewS3 ObjectsSSM Parameter Store & Secrets ManagerCloudFormation Stack Outputs
OverviewVaultTerraform State Output
ResourcesComposing ServicesDeployment BucketStateAgent SkillsPython support
OverviewRuntimeGatewayMemoryBrowserCode InterpreterDev Mode
API Gateway Proxy
OverviewGeneral ConfigurationAuthenticationAPI KeysData SourcesResolversPipeline FunctionsSubstitutionsCachingDelta SyncCustom DomainWAFCLI Commands
Deploying SAM/CFN TemplatesWorkflow Tips
OverviewCreating PluginsCLI OutputCustom CommandsCustom VariablesExtending the Configuration schemaExtending and overriding configuration
OverviewDashboardAxiom
Overviewagent docsagent inspectagent setupagent skills installagent skills list / readdeploydeploy functiondeploy listdevdiffinfoinvokeinvoke localloginlogin awslogin aws ssologsmetricspackageplugin installplugin uninstallprintprunereconcileremoverollbackrollback functionusage
OverviewConcepts
OverviewMetricsTracesTroubleshoot
OverviewNode.jsPython
OutputsProviders
OverviewBranch DeploymentsPreview DeploymentsCustom ScriptsTestingPrivate PackagesNotificationsMono ReposDeploy in your own CI/CDBest PracticesTroubleshootingFAQ
OverviewSetupToolsAWS Integration
Serverless.yml Reference
Examples and TutorialsConfiguration Validation
  1. CLI Reference
  2. Info

serverless info

serverless info prints what a deployed stage of a service exposes: its endpoints, functions, layers, API Gateway API keys and, on request, its CloudFormation stack outputs. It reads the stack and changes nothing. Use it to look up URLs after a deployment or from a script with --json; serverless deploy prints the same summary when it finishes.

serverless info

Options

serverless info accepts these options:

OptionAliasValueDefaultRequiredDescription
--stage-sstringprovider.stage, else devNoStage to describe.
--region-rstringprovider.region, else us-east-1NoAWS Region of that stage.
--aws-profilestringprovider.profileNoAWS profile whose credentials the command uses.
--config-cfile pathserverless.ymlNoService configuration file to use.
--verboseflagoffNoAdd a Stack Outputs: section with every CloudFormation output.
--jsonflagoffNoPrint the information as JSON on standard output.
--concealflagoffNoPrint API key names without their values in the text output.

serverless info also accepts the options every command takes: --param="key=value" (repeatable), --org, --app, --debug and --help (-h). For an AWS SAM or CloudFormation project, it takes --stack; see AWS SAM and CloudFormation.

--conceal applies to the text output only: the --json output always contains the API key values.

Output of serverless info

serverless info prints one line or section per item:

service: my-service
stage: dev
region: us-east-1
stack: my-service-dev
api keys:
  myKey: abc123exampleapikeyvalue
endpoint: GET - https://abc123example.execute-api.us-east-1.amazonaws.com/dev/users
functions:
  hello: my-service-dev-hello

The endpoint heading becomes endpoints when the service has several. Each endpoint line has one of these forms:

  • <METHOD> - <url>: a route of an http (REST API) or httpApi (HTTP API) event.
  • <url>: a WebSocket API.
  • CloudFront - <domain>: the CloudFront distribution of cloudFront events.
  • <name>: <url>: a function URL or a web app; just <url> when it is the service's only endpoint.

When the stack has 450 or more resources, the command also prints a warning about the CloudFormation limit of 500 resources per stack.

When the stage isn't deployed, the command stops with:

Service "my-service" is not deployed to stage "dev" in us-east-1. Deploy it with "serverless deploy --stage dev --region us-east-1".

serverless info is read-only and safe to re-run.

Web app endpoints in serverless info

serverless info lists each web app under endpoints by name with its endpoint URL, followed by each custom domain that serves it:

service: shop
stage: dev
region: us-east-1
stack: shop-dev
endpoints:
  web: https://abc123example.lambda-web.us-east-1.on.aws
  web: https://shop.example.com
  api: https://def456example.lambda-web.us-east-1.on.aws
  api: https://shop.example.com/api

A service whose only endpoint is one web app's prints it as endpoint: <url>. With a custom domain, --verbose also shows the CloudFront distribution's domain name and ID as stack outputs.

Stack outputs with serverless info --verbose

serverless info --verbose adds every output of the CloudFormation stack, including the ones you define under resources.Outputs:

service: my-service
stage: dev
region: us-east-1
stack: my-service-dev
endpoint: GET - https://abc123example.execute-api.us-east-1.amazonaws.com/dev/users
functions:
  hello: my-service-dev-hello
Stack Outputs:
  HelloLambdaFunctionQualifiedArn: arn:aws:lambda:us-east-1:123456789012:function:my-service-dev-hello:3
  ServiceEndpoint: https://abc123example.execute-api.us-east-1.amazonaws.com/dev
  ServerlessDeploymentBucketName: serverless-framework-deployments-us-east-1-d7b2bf38-2784

JSON output with serverless info --json

serverless info --json prints one JSON document on standard output, while progress and log lines go to standard error, so you can redirect it to a file or pipe it to jq:

serverless info --json > info.json

The document has the same information as the text output, plus the resource count and every stack output with its export name:

{
  "inputs": {
    "compose": {}
  },
  "info": {
    "functions": [
      {
        "name": "hello",
        "deployedName": "my-service-dev-hello"
      }
    ],
    "layers": [],
    "agents": [],
    "endpoints": ["https://abc123example.execute-api.us-east-1.amazonaws.com"],
    "service": "my-service",
    "stage": "dev",
    "region": "us-east-1",
    "stack": "my-service-dev",
    "resourceCount": 4,
    "apiKeys": []
  },
  "outputs": [
    {
      "OutputKey": "HelloLambdaFunctionQualifiedArn",
      "OutputValue": "arn:aws:lambda:us-east-1:123456789012:function:my-service-dev-hello:26",
      "Description": "Current Lambda function version",
      "ExportName": "sls-my-service-dev-HelloLambdaFunctionQualifiedArn"
    },
    {
      "OutputKey": "ServerlessDeploymentBucketName",
      "OutputValue": "serverless-framework-deployments-us-east-1-d7b2bf38-2784",
      "ExportName": "sls-my-service-dev-ServerlessDeploymentBucketName"
    },
    {
      "OutputKey": "HttpApiUrl",
      "OutputValue": "https://abc123example.execute-api.us-east-1.amazonaws.com",
      "Description": "URL of the HTTP API",
      "ExportName": "sls-my-service-dev-HttpApiUrl"
    }
  ]
}

In a service with web apps, info also has a webApps list of { "name", "url" } entries.

Run serverless info in CI

serverless info has no prompts of its own. In CI, sign in with SERVERLESS_ACCESS_KEY or SERVERLESS_LICENSE_KEY (see Non-interactive use) and read values from the JSON output:

serverless info --stage prod --json | jq -r '.info.endpoints[0]'

Provided lifecycle events

  • info:info

Examples

Show the stack outputs of a stage

serverless info --stage prod --region eu-central-1 --verbose

Print the service information without API key values

serverless info --conceal

Related commands

  • serverless deploy deploys the service and prints the same summary.
  • serverless agent inspect shows the deployed resources in more detail.
  • serverless remove deletes the deployed stage.
Edit this page
Prev diffNextinvoke

Contents

  • serverless info
  • Options
  • Output of serverless info
  • Web app endpoints in serverless info
  • Stack outputs with serverless info --verbose
  • JSON output with serverless info --json
  • Run serverless info in CI
  • Provided lifecycle events
  • Examples
  • Show the stack outputs of a stage
  • Print the service information without API key values
  • Related commands

Related

GuidesPluginsExamplesSlack CommunitySupport