Files
crosslang-website/docs/cli.md
2026-06-14 21:25:53 -05:00

47 lines
1.2 KiB
Markdown

---
weight: 3
---
# The CLI
I refer to it as the shell
## Creating new project
To determine all new templates use
```bash
crosslang new --list
```
And then create a project (in this example, its a console application)
```bash
mkdir mynewproject
cd mynewproject
crosslang new console
```
## Running code from source
```bash
crosslang run
```
## Pushing code to CPKG
You need [CPKG](../cpkg/) as I have registration disabled as of right now
```bash
crosslang login cpkg https://example.com/ #replace with your server
crosslang upload-package
```
## Installing stuff from CPKG
```bash
crosslang install-tool Tesses.YouTubeDownloader.MusicSync # not available yet
crosslang install-webapp Tesses.YouTubeDownloader.Server # or whatever
crosslang install-console MyConsoleApp
crosslang install-template Tesses.YouTubeDownloader.PluginTemplate # for making plugins for my Youtube Downloader
crosslang add-dependency Tesses.CrossLang.Std #in project folder
```
## Updating the CLI
If this is the first time you are using CrossLang it will ask you if you want to download the CLI (type y) and press enter, or define environment variable CROSSLANG_CONTAINER=y
If you have an out of date cli use
```bash
crosslang update-shell
```