kite workspace¶
Manage development workspaces. Workspaces are persistent environments with code-server, terminal access, and port exposure.
Aliases: ws, w
create¶
Create a new workspace.
| Flag | Description | Default |
|---|---|---|
--language, -l |
Programming language | python |
--cpu |
CPU limit | 1 |
--memory |
Memory limit | 2Gi |
--disk |
Disk size | 10Gi |
--timeout |
Execution timeout in seconds | 30 |
--github-repo |
GitHub repository to clone | |
--github-branch |
Branch to clone | main |
--internet |
Enable internet access | true |
--require-gpu |
Require GPU | false |
# Basic workspace
kite workspace create my-app -l python
# With custom resources
kite workspace create api -l node --cpu 2 --memory 4Gi
# Clone a repo on creation
kite workspace create backend -l go --github-repo github.com/user/repo
list¶
List workspaces in the current project.
| Flag | Description |
|---|---|
--all, -a |
Show all workspaces (including stopped) |
get¶
Get workspace details.
start / stop¶
Start or stop a workspace.
| Flag | Description | Default |
|---|---|---|
--timeout |
Graceful shutdown timeout in seconds (stop only) | 30 |
exec¶
Execute code in a workspace.
| Flag | Description | Default |
|---|---|---|
--file, -f |
File to execute | |
--timeout, -t |
Execution timeout in seconds | 30 |
--stream, -s |
Stream output in real-time | false |
kite workspace exec my-app "print('hello')"
kite workspace exec my-app -f script.py
kite workspace exec my-app -f app.py --stream
ssh¶
Open an interactive shell in a workspace.
status¶
Get workspace status.
Port Management¶
expose-port¶
Expose a port from the workspace.
| Flag | Description |
|---|---|
--public |
Make port publicly accessible without auth |
unexpose-port¶
Remove an exposed port.
list-ports¶
List all exposed ports.
delete¶
Delete a workspace.
| Flag | Description |
|---|---|
--yes, -y |
Skip confirmation |
--force, -f |
Force delete |
Danger
Deleting a workspace is irreversible. All files and data inside will be lost.