Skip to main content
Version: Next

Commands

This page lists all commands provided by the Backstage CLI. Each command belongs to a CLI module — follow the links below for detailed documentation including options and examples.

help​

This command displays a help summary or detailed help screens for each command. Below is a cleaned up output of yarn backstage-cli --help:

new [options] Open up an interactive guide to creating new things in
your app
auth [command] Authentication commands
actions [command] Backstage action commands
config:docs [options] Browse the configuration reference documentation
config:print [options] Print the app configuration for the current package
config:check [options] Validate that the given configuration loads and matches
schema
config:schema [options] Print configuration schema
repo [command] Commands that run across an entire Backstage project
package [command] Lifecycle scripts for individual packages
migrate [command] Migration utilities
versions:bump [options] Bump Backstage packages to the latest versions
versions:migrate [options] Migrate plugins to the @backstage-community namespace
translations [command] Translation message management
build-workspace <workspace-dir> [packages...] Builds a temporary dist workspace from the provided
packages
create-github-app <github-org> Create new GitHub App in your organization.
info Show helpful information for debugging and reporting bugs
help [command] display help for command

Commands by Module​

Auth Module​

CommandDescription
auth loginLog in the CLI to a Backstage instance
auth logoutLog out and clear stored credentials
auth showShow details of an authenticated instance
auth listList authenticated instances
auth print-tokenPrint an access token to stdout
auth selectSelect the default instance

Actions Module​

CommandDescription
actions listList available actions from configured plugin sources
actions executeExecute an action
actions sources addAdd a plugin source for action discovery
actions sources listList configured plugin sources
actions sources removeRemove a plugin source

Catalog Module​

CommandDescription
catalog listList catalog entities with optional kind/type filter
catalog getGet a specific catalog entity by reference
catalog validateValidate entity YAML against the catalog schema
catalog registerRegister a catalog entity from a location URL
catalog unregisterUnregister a catalog entity by location

Scaffolder Module​

CommandDescription
template listList available software templates
template executeExecute a software template by reference
template dry-runValidate a software template without making changes

Search Module​

CommandDescription
searchSearch across all content types
docs searchSearch TechDocs content

Build Module​

CommandDescription
repo startStart packages for local development
repo buildBuild packages in the project
repo cleanDelete cache and output directories across the project
package startStart a package for local development
package buildBuild a package for production deployment or publishing
package bundleBundle a plugin for dynamic loading (experimental)
package cleanDelete cache directories
package prepackPrepare a package for packaging before publishing
package postpackRestore changes made by prepack
build-workspaceBuild a temporary dist workspace from provided packages

Config Module​

CommandDescription
config:docsBrowse the configuration reference documentation
config:printPrint the app configuration
config:checkValidate that configuration loads and matches schema
config:schemaPrint the configuration schema

GitHub Module​

CommandDescription
create-github-appCreate a new GitHub App in your organization

Info Module​

CommandDescription
infoShow helpful information for debugging and reporting bugs

Lint Module​

CommandDescription
package lintLint a package
repo lintLint all packages in the project

Maintenance Module​

CommandDescription
repo fixAutomatically fix packages in the project
repo list-deprecationsList deprecations

Migrate Module​

CommandDescription
versions:bumpBump Backstage packages to the latest versions
versions:migrateMigrate plugins to the @backstage-community namespace
migrate package-rolesAdd package role field to packages
migrate package-scriptsSet package scripts according to each package role
migrate package-exportsSynchronize package subpath export definitions
migrate package-lint-configsMigrate to @backstage/cli/config/eslint-factory
migrate react-router-depsMigrate react-router dependencies to peer dependencies

New Module​

CommandDescription
newOpen an interactive guide to creating new things in your app

Test Module​

CommandDescription
repo testRun tests across the project
package testRun tests for a single package

Translations Module​

CommandDescription
translations exportExport translation messages to JSON files
translations importGenerate translation resource wiring code

Yarn Package Manager Module​

CommandDescription
pm verify-patchesVerify Yarn patch references and health