Install
npm install -g @xenkloud/cliIt needs Node.js 20 or newer and gives you two commands: xk and xk-mcp.
Sign in
- In the Console, open Security credentials and create an access key. Copy the key ID and secret.
- Run
xk loginand paste them asID:SECRET.
The key is saved in ~/.config/xenkloud/config.json, readable by you only. If you're in more than one team, choose one:
xk teams
xk teams use "Spa Co"Deploy
xk sites create spa # spa.xksites.ca
npm run build
xk deploy ./dist --site spa # upload the folder and make it live
xk deploy --site spa # or build the connected GitHub branch againA folder deploy needs index.html at its top. Links, .git, node_modules and .env files are never uploaded.
Commands
| Command | What it does |
|---|---|
xk sites |
The team's sites |
xk sites create <name> |
A new site at <name>.xksites.ca |
xk deploy [folder] --site <name> |
Upload a folder, or build from GitHub |
xk deploys <site> |
Recent deploys |
xk logs <site> |
A server app's or functions' recent log lines |
xk logs <site> --deploy <number> |
A deploy's build log |
xk rollback <site> <number> |
Make an earlier deploy live again |
xk env <site> |
Settings and secrets |
xk env <site> set NAME=value [--secret] |
Add or change one |
xk env <site> unset NAME |
Remove one |
xk app <site> |
A server app's status and settings |
xk app <site> --instances 2 --health /health |
Change how it runs |
Add --json to any command for output a script can read, and --team to use another team once.
CI: GitHub Actions and others
Set XK_ACCESS_KEY (as ID:SECRET) and XK_TEAM as secrets of the pipeline. Nothing is saved to disk.
- run: npm ci && npm run build
- run: npx @xenkloud/cli deploy ./dist --site spa --message "${{ github.sha }}"
env:
XK_ACCESS_KEY: ${{ secrets.XK_ACCESS_KEY }}
XK_TEAM: Spa CoTip
Create a separate access key for each pipeline, so you can turn one off without touching the others.
AI agents (MCP)
The Xenkloud MCP server lets an AI agent list your sites, deploy, read build logs, roll back and change settings. It runs on your computer with your access key.
Add it to your agent's MCP settings. For Claude Desktop (claude_desktop_config.json), Cursor (.cursor/mcp.json) and others:
{
"mcpServers": {
"xenkloud": {
"command": "npx",
"args": ["-y", "--package", "@xenkloud/cli", "xk-mcp"]
}
}
}It uses the key saved by xk login. To give it another key, add "env": { "XK_ACCESS_KEY": "ID:SECRET" }.
| Tool | What it does |
|---|---|
whoami, list_sites, get_site |
Your account, teams and sites |
create_site |
A new static site |
deploy_folder, deploy_from_github |
Deploy, and report whether it went live |
list_deploys, get_deploy_log |
History, and why a deploy failed |
rollback |
Make an earlier deploy live again |
list_env, set_env, remove_env |
Settings and secrets (secret values are never shown) |
get_logs, get_app, update_app |
A server app's logs, health and settings |
Important
Tools that change a live site (rollback, settings and app settings) are marked as such, so agents ask before using them. Give an agent a key from an account with only the role it needs, such as Contributor on one site.