Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Suggestions
Contact support
Dedalus Cloud Services
PTY sessions on a Dedalus Machine, streamed over WebSocket
dedalus machines terminals create \ --machine-id <machine_id> \ --width 80 \ --height 24 \ --shell /bin/bash \ --cwd /root \ --env '{"FOO":"bar"}'
term = client.machines.terminals.create( machine_id="<machine_id>", width=80, height=24, shell="/bin/bash", # optional cwd="/root", # optional env={"FOO": "bar"}, # optional ) print(term.stream_url) # wss://...
const term = await client.machines.terminals.create({ machine_id: "<machine_id>", width: 80, height: 24, }); console.log(term.stream_url);
term, _ := client.Machines.Terminals.New(ctx, dedalus.MachineTerminalNewParams{ MachineID: machineID, TerminalCreateParams: dedalus.TerminalCreateParams{ Width: 80, Height: 24, Shell: dedalus.String("/bin/bash"), Cwd: dedalus.String("/root"), Env: map[string]string{"FOO": "bar"}, }, }) fmt.Println(term.StreamURL)
Parameters
{"cols": 100, "rows": 30}
dedalus machines terminals list --machine-id <machine_id> dedalus machines terminals retrieve --machine-id <machine_id> --terminal-id <terminal_id> dedalus machines terminals delete --machine-id <machine_id> --terminal-id <terminal_id>
client.machines.terminals.list(machine_id="<machine_id>") client.machines.terminals.retrieve(machine_id="<machine_id>", terminal_id="<terminal_id>") client.machines.terminals.delete(machine_id="<machine_id>", terminal_id="<terminal_id>")
await client.machines.terminals.list({ machine_id: "<machine_id>" }); await client.machines.terminals.retrieve({ machine_id: "<machine_id>", terminal_id: "<terminal_id>", }); await client.machines.terminals.delete({ machine_id: "<machine_id>", terminal_id: "<terminal_id>", });
client.Machines.Terminals.List(ctx, dedalus.MachineTerminalListParams{ MachineID: machineID, }) client.Machines.Terminals.Get(ctx, dedalus.MachineTerminalGetParams{ MachineID: machineID, TerminalID: "<terminal_id>", }) client.Machines.Terminals.Delete(ctx, dedalus.MachineTerminalDeleteParams{ MachineID: machineID, TerminalID: "<terminal_id>", })
Was this page helpful?