โก Quickstart
Install the CLI, log in, deploy. That's it.
1Install the CLInpm i -g tunisiacloud-cli
2Log in & create a projecttc login
tc init my-first-app
3Deploy to tunis-1tc deploy --region tunis-1
# โ Live at https://my-first-app.tncloud.site
๐ง The SDK
One package for models, files, storage and agents.
import { TunisiaCloud } from "tunisiacloud";
const tc = new TunisiaCloud({ apiKey: process.env.TC_KEY });
// chat
const res = await tc.ai.chat({
model: "tc-falcon-ar",
messages: [{ role: "user", content: "ุดูููุฉ ุนุงุตู
ุฉ ุชููุณุ" }]
});
console.log(res.text); // "ุชููุณ ุงูุนุงุตู
ุฉ!"
๐ Deploy a site
Point the CLI at a folder โ static sites, Node servers and functions are all detected automatically.
tc deploy ./dist --domain www.my-shop.tn
# TLS issued ยท DNS verified ยท rollback ready
๐๏ธ Storage
Provision NoSQL, SQL or object storage from the dashboard or CLI. All share one quota, all backed up daily.
tc storage create --type nosql --label orders
tc storage query orders --find '{"status": "paid"}'
๐ Workflows
Compose steps โ model calls, web search, HTTP, human approval, mail โ into a graph and trigger it on a schedule.
{
"name": "morning-brief",
"trigger": { "type": "schedule", "cron": "0 8 * * *" },
"steps": [
{ "id": "search", "type": "web.search" },
{ "id": "summar", "type": "model.generate" },
{ "id": "send", "type": "mail.send" }
]
}