Sandbox — LSD is in active testing. All systems operational·payments are test-mode (no real charges).
Overview Use Cases News Docs Tool Store Support Community Get LSD
All docs
Docs/ API Reference/ CLI commands
API Reference

CLI commands

The lsd CLI scaffolds and lints packages, runs your tool commands, and describes the API for an AI editor. Reference for every command with usage blocks.

The lsd command-line tool scaffolds and lints packages, runs the commands your tools define, and describes the API for editors and AI. It ships with the installed product (LSDCli.exe; see Runtime).

Usage#

bash
lsd package new mypkg # scaffold a package
lsd package lint # check it stays on lsdtools
lsd mypkg count --path a.csv # run a @tool.command

Where to start#

Package commands#

lsd package new#

Scaffold a new package folder — an lsd_package.json, a starter tool.py, and dev config.

bash
lsd package new mypkg

lsd package lint#

Check a package stays on the supported surface (imports only lsdtools, valid manifest, node signatures). Run it in CI.

bash
lsd package lint

Tool commands#

lsd <tool> <cmd>#

Run a command defined with @tool.command. The function's typed parameters become CLI options.

bash
# @tool.command("count") def count(ctx, path: str): ...
lsd mypkg count --path data.csv

API introspection#

lsd api describe#

Print the machine-readable JSON from describe_api() — every registered step and the public surface.

bash
lsd api describe > api.json

lsd api context#

Print the API as markdown (describe_markdown()) — paste it into an AI editor as context.

bash
lsd api context

Profiles#

LSD_PROFILE selects a backend from ~/.lsd/profiles.json (e.g. a dev profile pointing at localhost).

bash
LSD_PROFILE=local lsd api describe

LearnDevelop a package

APIdescribe_api · Runtime · PackageManager

ExamplesA CLI command

By LSD Team · Last updated Jul 17, 2026 Ask on Discord View as Markdown