mirror of
https://github.com/moghtech/komodo.git
synced 2026-09-07 16:01:24 +00:00
* rust client improvements and docs * sync rust client * version 1.16.4 * UI support YAML / TOML utils, typed Deno namespace * add ResourcesToml to typeshare * add YAML and TOML convenience * make the types available globally * preload container with @std/yaml and @std/toml, clean up genned files * add deno setup to alpine dockerfile
34 lines
549 B
Markdown
34 lines
549 B
Markdown
# Komodo
|
|
|
|
_A system to build and deploy software across many servers_
|
|
|
|
```sh
|
|
npm install komodo_client
|
|
```
|
|
|
|
or
|
|
|
|
```sh
|
|
yarn add komodo_client
|
|
```
|
|
|
|
```ts
|
|
import { KomodoClient, Types } from "komodo_client";
|
|
|
|
const komodo = KomodoClient("https://demo.komo.do", {
|
|
type: "api-key",
|
|
params: {
|
|
api_key: "your_key",
|
|
secret: "your secret",
|
|
},
|
|
});
|
|
|
|
// Inferred as Types.StackListItem[]
|
|
const stacks = await komodo.read("ListStacks", {});
|
|
|
|
// Inferred as Types.Stack
|
|
const stack = await komodo.read("GetStack", {
|
|
stack: stacks[0].name,
|
|
});
|
|
```
|