microsoft/typespec

Public

mirrored fromhttps://github.com/microsoft/typespecAvailable

CodeCommitsIssuesPull requestsActionsInsightsSecurity
064161d8277a88b3facccca58df87aa332bf9187

Branches

Tags

  • No tags available.
0Branches0Tags
Go to file
Add file
Code

Clone

HTTPS

Download ZIP

docs/introduction/usage.md

31lines · modepreview

---
id: usage
title: Usage
---

# Usage

See full usage documentation by typing `tsp --help`:

```bash
>tsp --help
TypeSpec compiler v0.36.1

typespec <command>

Commands:
  tsp compile <path>       Compile TypeSpec source.
  tsp code                 Manage VS Code Extension.
  tsp vs                   Manage Visual Studio Extension.
  tsp format <include...>  Format given list of TypeSpec files.
  tsp init [templatesUrl]  Create a new TypeSpec project.
  tsp install              Install typespec dependencies
  tsp info                 Show information about current TypeSpec compiler.

Options:
  --help     Show help                                                 [boolean]
  --debug    Output debug log messages.               [boolean] [default: false]
  --pretty   Enable color and formatting in TypeSpec's output to make compiler error
             s easier to read.                         [boolean] [default: true]
  --version  Show version number                                       [boolean]
```