Extensions
How to use the extension
command in the Scale CLI.
The extension
command is used to interact with Scale Extensions locally. ext
is an alias for extension
.
New
To create a new Scale Extension, run the following command:
This will create a new scale extension in the current directory in the Go programming language.
You can also specify the language of the extension you want to create by using the --language
flag:
The following languages are currently supported:
go
- Gorust
- Rustts
- TypeScript/JavaScript
We are actively working on adding support for more languages. If you would like to see a specific language supported, please let
us know by joining the #scale
channel in our Discord.
Generate
Generate a scale extension from a extension file
The --directory
flag can be used to specify the directory where the extension file exists:
This will generate the extension defined in the local directory, in your local/
organization.
List
The list
subcommand is used to list all the compiled Scale Extension available in the local Scale Extension cache.