• 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. Agent Docs

serverless agent docs

serverless agent docs prints the Serverless Framework documentation that ships with the installed CLI: the page index, or the pages you name, as markdown on standard output. The pages match the CLI version you run and are read from the installation, so an AI coding agent can look up a key or a command mid-task without a browser. Use it to read the docs; use serverless agent skills read to read a bundled Agent Skill, the task-focused instructions an agent loads for one feature.

serverless agent docs

The index lists every page with the path to pass back to the command. To print pages, name their paths:

serverless agent docs providers/aws/events/schedule

Options

serverless agent docs takes page paths as positional arguments and has no options of its own:

ArgumentValueDefaultRequiredDescription
[paths]one or more page pathsnone: the indexNoPages to print. Separate several with spaces or commas. Paths come from the index; the .md suffix is optional.

serverless agent docs also accepts --debug and --help (-h).

How serverless agent docs resolves a path

Paths are relative to the documentation root, with / separators, as the index prints them. For a path p, serverless agent docs prints the first file that exists of:

  1. p.md
  2. p/README.md, so a section path such as guides/mcp prints that section's overview page
  3. p itself, when it ends in .md

A trailing / is ignored, and \ counts as /.

Output of serverless agent docs

Without paths, serverless agent docs prints the index. It starts with a header line, then each section of the docs menu with its pages: the path, the menu title (nested menu groups joined with ›) and the page size rounded to kilobytes. Pages the menu leaves out come last, under Other pages. A trimmed index:

Serverless Framework documentation. Read a page: serverless agent docs <path> [<path> ...]

Intro
  README                        Intro            ~5 KB
Get Started
  getting-started               Setup            ~20 KB
  guides/upgrading-v4           Upgrading To V4  ~16 KB
  providers/aws/guide/intro     Concepts         ~5 KB

With one path, serverless agent docs prints the page's markdown without its metadata comment and the docs-site link block. With several paths, each page follows a ## <path> heading, and a --- line separates the pages.

Errors and exit codes

serverless agent docs exits 0 after printing. It checks every path before it prints anything, so a failed call prints nothing on standard output, exits 1 and writes one of these errors to standard error:

  • Page "<path>" not found. Pages under "<section>": followed by the pages in the nearest section that exists, then Run "serverless agent docs" for the full index.
  • Invalid path "<path>" — paths are relative to the documentation root. for an absolute path or one that contains ...

Side effects and non-interactive use

serverless agent docs writes no files and never prompts, so it runs the same in a terminal, in CI and under an AI agent. It needs no serverless.yml and no sign-in, and runs in any directory, also one whose serverless.yml doesn't parse. Reading the pages needs no network. When you are signed in, or SERVERLESS_ACCESS_KEY is set, the CLI signs in quietly after printing to count the run; nothing prompts, and a failure there doesn't change the result.

Examples

Print the page index

serverless agent docs

Print one page

serverless agent docs providers/aws/guide/functions

Print several pages in one call

serverless agent docs guides/compose providers/aws/guide/functions

Print a section's overview page

serverless agent docs guides/mcp

Related commands

  • serverless agent skills read: print a bundled Agent Skill without installing it.
  • serverless agent setup: install the Agent Skills and check the environment.
  • Agent Skills: what the skills are and how agents load them.
Edit this page
Prev OverviewNextagent inspect

Contents

  • serverless agent docs
  • Options
  • How serverless agent docs resolves a path
  • Output of serverless agent docs
  • Errors and exit codes
  • Side effects and non-interactive use
  • Examples
  • Print the page index
  • Print one page
  • Print several pages in one call
  • Print a section's overview page
  • Related commands

Related

GuidesPluginsExamplesSlack CommunitySupport