• 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 KeysVerifying Downloads
DeployingPackagingBuildingTestingDev ModeServicesFunctions
OverviewHTTP (API Gateway v2)REST (API Gateway v1)ActiveMQApplication Load BalancerAlexa SkillAlexa Smart HomeCloudWatch EventCloudWatch LogCloudFrontCognito User PoolEventBridge EventIoTIoT Fleet ProvisioningKafkaKinesis & DynamoDBMSKRabbitMQS3ScheduleSNSSQSWebsocket
Layers
OverviewTroubleshooting
Managed 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. Usage

serverless usage

serverless usage shows how many Instance Credits your org has used this month, that is, how many billable Service Instances it has, and saves the list of those instances to <org>-instances.csv in the current directory. It reads the usage from the Serverless Framework Dashboard and changes nothing in AWS or in the Dashboard. To remove instances whose CloudFormation stacks no longer exist from the list, run serverless reconcile.

serverless usage

The command works inside or outside a service directory. It needs a Dashboard sign-in or key (serverless login) and AWS credentials: it resolves them as serverless deploy does before it reads the usage.

Options

serverless usage accepts these options:

OptionAliasValueDefaultRequiredDescription
--orgorg nameorg in serverless.yml, else SERVERLESS_ORG_NAME, else your default orgNoOrg whose usage to show.
--aws-profilestringprovider.profile, else the AWS credential chainNoAWS profile whose credentials the command resolves.

The command also accepts --verbose, --debug and --help (-h). With SERVERLESS_ACCESS_KEY or a License Key, the command shows the usage of the key's org.

Billable instances file

When the org has at least one billable instance, serverless usage writes <org>-instances.csv to the current directory, replacing a file of that name from an earlier run. With no billable instances it writes no file. The file has this header and one row per instance:

Instance ID,Age (Days),Type,User
  • Instance ID: the CloudFormation stack ID for an instance deployed with Serverless Framework v4; for an instance the Dashboard manages only, the Dashboard's instance ID, built from the service, region and stage names.
  • Age (Days): the number of days the instance has existed. An instance counts toward a month only after it has existed for more than 10 days that month (pricing).
  • Type: CLI (deployed with Serverless Framework v4), Dashboard (managed by the Dashboard), or CLI + Dashboard.
  • User: the user or License Key that deployed the instance, as user:<name> or license:<label>; empty when that isn't known.

Run serverless usage without a terminal

Without a sign-in, serverless usage in a terminal shows the sign-in menu of serverless login; without a terminal (CI, a script, an AI agent) it stops with an error that names SERVERLESS_ACCESS_KEY and SERVERLESS_LICENSE_KEY. Set one of them, or sign in first. The command never prompts otherwise, and re-running it only rewrites the CSV file.

Output of serverless usage

The command prints the count and the file name:

The acme org used 18 Instance Credits this month.

A list of billable instances has been saved to acme-instances.csv in the current directory.

If you have any questions about your usage, please contact support@serverless.com.

Examples

Show the usage of your default org

serverless usage

Show the usage of another org

serverless usage --org my-org

Related commands

  • serverless reconcile removes instances whose stacks were deleted outside the Framework.
  • serverless remove removes a service instance.
  • serverless login signs in to the Dashboard.
Edit this page
Prev rollback functionNextOverview

Contents

  • serverless usage
  • Options
  • Billable instances file
  • Run serverless usage without a terminal
  • Output of serverless usage
  • Examples
  • Show the usage of your default org
  • Show the usage of another org
  • Related commands

Related

GuidesPluginsExamplesSlack CommunitySupport