Start, stop, pause and manage an SVM
Usage
si svm [OPTIONS] <COMMAND>Flags
| Name | Value | Description | Default | Env |
|---|---|---|---|---|
--json | Print the result as JSON | false | ||
--project | PROJECT | The project of the command: an id or a name; SI_PROJECT when the flag is absent | SI_PROJECT | |
--help | Print help |
Scroll horizontally to see all columns.
si svm start
Wake an SVM
si svm start [OPTIONS] [SVM]| Name | Value | Description | Default | Env |
|---|---|---|---|---|
svm | SVM | The SVM to use; defaults to the one set with si use |
Scroll horizontally to see all columns.
| Name | Value | Description | Default | Env |
|---|---|---|---|---|
--json | Print the result as JSON | false | ||
--project | PROJECT | The project of the command: an id or a name; SI_PROJECT when the flag is absent | SI_PROJECT | |
--help | Print help |
Scroll horizontally to see all columns.
si svm stop
Stop an SVM; retain its disk
si svm stop [OPTIONS] [SVM]| Name | Value | Description | Default | Env |
|---|---|---|---|---|
svm | SVM | The SVM to use; defaults to the one set with si use |
Scroll horizontally to see all columns.
| Name | Value | Description | Default | Env |
|---|---|---|---|---|
--json | Print the result as JSON | false | ||
--project | PROJECT | The project of the command: an id or a name; SI_PROJECT when the flag is absent | SI_PROJECT | |
--help | Print help |
Scroll horizontally to see all columns.
si svm pause
Pause an SVM; retain its processes
si svm pause [OPTIONS] [SVM]| Name | Value | Description | Default | Env |
|---|---|---|---|---|
svm | SVM | The SVM to use; defaults to the one set with si use |
Scroll horizontally to see all columns.
| Name | Value | Description | Default | Env |
|---|---|---|---|---|
--json | Print the result as JSON | false | ||
--project | PROJECT | The project of the command: an id or a name; SI_PROJECT when the flag is absent | SI_PROJECT | |
--help | Print help |
Scroll horizontally to see all columns.
si svm wait
Wait until the node of an SVM reports a state for its generation
si svm wait [OPTIONS] --state <STATE> --generation <GENERATION> [SVM]| Name | Value | Description | Default | Env |
|---|---|---|---|---|
svm | SVM | The SVM whose observed state to wait for; omit it for the default SVM |
Scroll horizontally to see all columns.
| Name | Value | Description | Default | Env |
|---|---|---|---|---|
--staterequired | STATE | The observed state to wait for | ||
--generationrequired | GENERATION | The generation whose state to observe: the generation of the last answer | ||
--timeout | TIMEOUT | The deadline in seconds, 1 to 60; 30 by default | ||
--json | Print the result as JSON | false | ||
--project | PROJECT | The project of the command: an id or a name; SI_PROJECT when the flag is absent | SI_PROJECT | |
--help | Print help |
Scroll horizontally to see all columns.
si svm sleep
Print the sleep policy of an SVM; set it to auto, on or timer with a duration after the mode
si svm sleep [OPTIONS] <SVM> [MODE] [DURATION]| Name | Value | Description | Default | Env |
|---|---|---|---|---|
svmrequired | SVM | The SVM whose sleep policy to show or change | ||
mode | MODE | auto sleeps when the workload is idle; timer ignores background work; on never sleeps | ||
duration | DURATION | The inactivity of timer mode, as 30m, 2h or seconds |
Scroll horizontally to see all columns.
| Name | Value | Description | Default | Env |
|---|---|---|---|---|
--json | Print the result as JSON | false | ||
--project | PROJECT | The project of the command: an id or a name; SI_PROJECT when the flag is absent | SI_PROJECT | |
--help | Print help |
Scroll horizontally to see all columns.
Examples: si svm sleep build-1 si svm sleep build-1 auto si svm sleep build-1 on si svm sleep build-1 timer 30msi svm github
Print the GitHub connection of an SVM; attach one by id or account, or remove it with off
si svm github [OPTIONS] <SVM> [CONNECTION]| Name | Value | Description | Default | Env |
|---|---|---|---|---|
svmrequired | SVM | The SVM whose GitHub connection to show or change | ||
connection | CONNECTION | A connection id or GitHub account to attach, or off to remove it |
Scroll horizontally to see all columns.
| Name | Value | Description | Default | Env |
|---|---|---|---|---|
--json | Print the result as JSON | false | ||
--project | PROJECT | The project of the command: an id or a name; SI_PROJECT when the flag is absent | SI_PROJECT | |
--help | Print help |
Scroll horizontally to see all columns.
Examples: si svm github build-1 si svm github build-1 octo-org si svm github build-1 offsi svm desktop
Print the address of the remote desktop of an SVM; the first visit starts the desktop
si svm desktop [OPTIONS] [SVM]| Name | Value | Description | Default | Env |
|---|---|---|---|---|
svm | SVM | The SVM to use; defaults to the one set with si use |
Scroll horizontally to see all columns.
| Name | Value | Description | Default | Env |
|---|---|---|---|---|
--json | Print the result as JSON | false | ||
--project | PROJECT | The project of the command: an id or a name; SI_PROJECT when the flag is absent | SI_PROJECT | |
--help | Print help |
Scroll horizontally to see all columns.
The page is noVNC on port 6080 of the SVM; members of its organization sign in once in the browser.si svm svc
Add, list, start, stop and read the services of an SVM
si svm svc [OPTIONS] [SVM] <COMMAND>| Name | Value | Description | Default | Env |
|---|---|---|---|---|
svm | SVM | The SVM whose services to manage; omit it for the default SVM |
Scroll horizontally to see all columns.
| Name | Value | Description | Default | Env |
|---|---|---|---|---|
--json | Print the result as JSON | false | ||
--project | PROJECT | The project of the command: an id or a name; SI_PROJECT when the flag is absent | SI_PROJECT | |
--help | Print help |
Scroll horizontally to see all columns.
si svm svc add
Add a service and start it; the command starts after --
si svm svc add [OPTIONS] <NAME> -- <PROGRAM>...| Name | Value | Description | Default | Env |
|---|---|---|---|---|
namerequired | NAME | The name of the service: letters, digits, - and _ | ||
programrequired | PROGRAM | The program and its arguments |
Scroll horizontally to see all columns.
| Name | Value | Description | Default | Env |
|---|---|---|---|---|
--port | PORT | The TCP port the service listens on; a preview waits while it is starting | ||
--needs | NEEDS | Start after these services are running, as A,B | ||
--dir | DIR | The working directory of the program; the user's home by default | ||
--env | KEY=VALUE | A variable of the service, as KEY=VALUE; repeat it | ||
--json | Print the result as JSON | false | ||
--project | PROJECT | The project of the command: an id or a name; SI_PROJECT when the flag is absent | SI_PROJECT | |
--help | Print help |
Scroll horizontally to see all columns.
Examples: si svm svc add web --port 3000 -- npm start si svm svc add api --needs db --env DEBUG=1 -- python3 server.pysi svm svc ls
List the services: name, state, pid, restarts and port
si svm svc ls [OPTIONS]| Name | Value | Description | Default | Env |
|---|---|---|---|---|
--json | Print the result as JSON | false | ||
--project | PROJECT | The project of the command: an id or a name; SI_PROJECT when the flag is absent | SI_PROJECT | |
--help | Print help |
Scroll horizontally to see all columns.
si svm svc start
Start a service now and after every wake
si svm svc start [OPTIONS] <NAME>| Name | Value | Description | Default | Env |
|---|---|---|---|---|
namerequired | NAME | The service name |
Scroll horizontally to see all columns.
| Name | Value | Description | Default | Env |
|---|---|---|---|---|
--json | Print the result as JSON | false | ||
--project | PROJECT | The project of the command: an id or a name; SI_PROJECT when the flag is absent | SI_PROJECT | |
--help | Print help |
Scroll horizontally to see all columns.
si svm svc stop
Stop a service; it stays stopped across a sleep
si svm svc stop [OPTIONS] <NAME>| Name | Value | Description | Default | Env |
|---|---|---|---|---|
namerequired | NAME | The service name |
Scroll horizontally to see all columns.
| Name | Value | Description | Default | Env |
|---|---|---|---|---|
--json | Print the result as JSON | false | ||
--project | PROJECT | The project of the command: an id or a name; SI_PROJECT when the flag is absent | SI_PROJECT | |
--help | Print help |
Scroll horizontally to see all columns.
si svm svc restart
Stop a service and start it again
si svm svc restart [OPTIONS] <NAME>| Name | Value | Description | Default | Env |
|---|---|---|---|---|
namerequired | NAME | The service name |
Scroll horizontally to see all columns.
| Name | Value | Description | Default | Env |
|---|---|---|---|---|
--json | Print the result as JSON | false | ||
--project | PROJECT | The project of the command: an id or a name; SI_PROJECT when the flag is absent | SI_PROJECT | |
--help | Print help |
Scroll horizontally to see all columns.
si svm svc rm
Delete a service and stop it
si svm svc rm [OPTIONS] <NAME>| Name | Value | Description | Default | Env |
|---|---|---|---|---|
namerequired | NAME | The service name |
Scroll horizontally to see all columns.
| Name | Value | Description | Default | Env |
|---|---|---|---|---|
--json | Print the result as JSON | false | ||
--project | PROJECT | The project of the command: an id or a name; SI_PROJECT when the flag is absent | SI_PROJECT | |
--help | Print help |
Scroll horizontally to see all columns.
si svm svc logs
Print the log of a service
si svm svc logs [OPTIONS] <NAME>| Name | Value | Description | Default | Env |
|---|---|---|---|---|
namerequired | NAME | The service name |
Scroll horizontally to see all columns.
| Name | Value | Description | Default | Env |
|---|---|---|---|---|
--follow | Follow the log as it grows | false | ||
--json | Print the result as JSON | false | ||
--project | PROJECT | The project of the command: an id or a name; SI_PROJECT when the flag is absent | SI_PROJECT | |
--help | Print help |
Scroll horizontally to see all columns.
si svm schedule
Add, list, run and delete cron schedules of an SVM
si svm schedule [OPTIONS] <COMMAND>| Name | Value | Description | Default | Env |
|---|---|---|---|---|
--json | Print the result as JSON | false | ||
--project | PROJECT | The project of the command: an id or a name; SI_PROJECT when the flag is absent | SI_PROJECT | |
--help | Print help |
Scroll horizontally to see all columns.
si svm schedule add
Add a schedule that runs a command or puts a message into the inbox
si svm schedule add [OPTIONS] --name <NAME> --cron <CRON> [SVM] [-- <COMMAND>...]| Name | Value | Description | Default | Env |
|---|---|---|---|---|
svm | SVM | The SVM to schedule; omit it for the default SVM | ||
command | COMMAND | The command to run, after -- |
Scroll horizontally to see all columns.
| Name | Value | Description | Default | Env |
|---|---|---|---|---|
--namerequired | NAME | The name of the schedule: lowercase letters, digits and -, unique per SVM | ||
--cronrequired | CRON | A five-field cron; its two next fires must be at least the plan minimum apart | ||
--tz | TZ | An IANA timezone; UTC by default | ||
--timeout | TIMEOUT | The time limit of the command, in seconds | ||
--inbox-subject | SUBJECT | The subject of an inbox message; use with --inbox-text instead of a command | ||
--inbox-text | TEXT | The text of an inbox message | ||
--concurrency | CONCURRENCY | skip refuses a fire while the previous run still runs; allow starts both | skip | |
--json | Print the result as JSON | false | ||
--project | PROJECT | The project of the command: an id or a name; SI_PROJECT when the flag is absent | SI_PROJECT | |
--help | Print help |
Scroll horizontally to see all columns.
Examples: si svm schedule add build-1 --name nightly --cron '0 3 * * *' --tz Europe/Berlin -- make backup si svm schedule add --name digest --cron '0 9 * * 1' --inbox-subject Digest --inbox-text 'The week starts'si svm schedule ls
List the schedules of an SVM with their next fire
si svm schedule ls [OPTIONS] [SVM]| Name | Value | Description | Default | Env |
|---|---|---|---|---|
svm | SVM | The SVM whose schedules to list; omit it for the default SVM |
Scroll horizontally to see all columns.
| Name | Value | Description | Default | Env |
|---|---|---|---|---|
--json | Print the result as JSON | false | ||
--project | PROJECT | The project of the command: an id or a name; SI_PROJECT when the flag is absent | SI_PROJECT | |
--help | Print help |
Scroll horizontally to see all columns.
si svm schedule rm
Delete a schedule and its run history
si svm schedule rm [OPTIONS] [SVM] [SCHEDULE]| Name | Value | Description | Default | Env |
|---|---|---|---|---|
svm | SVM | The SVM to use; defaults to the one set with si use | ||
schedule | SCHEDULE | The schedule id, from si svm schedule ls |
Scroll horizontally to see all columns.
| Name | Value | Description | Default | Env |
|---|---|---|---|---|
--json | Print the result as JSON | false | ||
--project | PROJECT | The project of the command: an id or a name; SI_PROJECT when the flag is absent | SI_PROJECT | |
--help | Print help |
Scroll horizontally to see all columns.
si svm schedule run
Run a schedule now without moving its next fire
si svm schedule run [OPTIONS] [SVM] [SCHEDULE]| Name | Value | Description | Default | Env |
|---|---|---|---|---|
svm | SVM | The SVM to use; defaults to the one set with si use | ||
schedule | SCHEDULE | The schedule id, from si svm schedule ls |
Scroll horizontally to see all columns.
| Name | Value | Description | Default | Env |
|---|---|---|---|---|
--json | Print the result as JSON | false | ||
--project | PROJECT | The project of the command: an id or a name; SI_PROJECT when the flag is absent | SI_PROJECT | |
--help | Print help |
Scroll horizontally to see all columns.
si svm schedule runs
List the last runs of a schedule, newest first
si svm schedule runs [OPTIONS] [SVM] [SCHEDULE]| Name | Value | Description | Default | Env |
|---|---|---|---|---|
svm | SVM | The SVM to use; defaults to the one set with si use | ||
schedule | SCHEDULE | The schedule id, from si svm schedule ls |
Scroll horizontally to see all columns.
| Name | Value | Description | Default | Env |
|---|---|---|---|---|
--json | Print the result as JSON | false | ||
--project | PROJECT | The project of the command: an id or a name; SI_PROJECT when the flag is absent | SI_PROJECT | |
--help | Print help |
Scroll horizontally to see all columns.
si svm schedule enable
Turn the minute tick on for a schedule
si svm schedule enable [OPTIONS] [SVM] [SCHEDULE]| Name | Value | Description | Default | Env |
|---|---|---|---|---|
svm | SVM | The SVM to use; defaults to the one set with si use | ||
schedule | SCHEDULE | The schedule id, from si svm schedule ls |
Scroll horizontally to see all columns.
| Name | Value | Description | Default | Env |
|---|---|---|---|---|
--json | Print the result as JSON | false | ||
--project | PROJECT | The project of the command: an id or a name; SI_PROJECT when the flag is absent | SI_PROJECT | |
--help | Print help |
Scroll horizontally to see all columns.
si svm schedule disable
Turn the minute tick off for a schedule; its next fire stays stored
si svm schedule disable [OPTIONS] [SVM] [SCHEDULE]| Name | Value | Description | Default | Env |
|---|---|---|---|---|
svm | SVM | The SVM to use; defaults to the one set with si use | ||
schedule | SCHEDULE | The schedule id, from si svm schedule ls |
Scroll horizontally to see all columns.
| Name | Value | Description | Default | Env |
|---|---|---|---|---|
--json | Print the result as JSON | false | ||
--project | PROJECT | The project of the command: an id or a name; SI_PROJECT when the flag is absent | SI_PROJECT | |
--help | Print help |
Scroll horizontally to see all columns.
si svm inbox
Show or change the email inbox of an SVM
si svm inbox [OPTIONS] [SVM] si svm inbox <COMMAND>| Name | Value | Description | Default | Env |
|---|---|---|---|---|
svm | SVM | The SVM whose inbox to show; omit it when a subcommand follows |
Scroll horizontally to see all columns.
| Name | Value | Description | Default | Env |
|---|---|---|---|---|
--json | Print the result as JSON | false | ||
--project | PROJECT | The project of the command: an id or a name; SI_PROJECT when the flag is absent | SI_PROJECT | |
--help | Print help |
Scroll horizontally to see all columns.
si svm inbox enable
Turn the inbox on; the senders of its rule may then mail the SVM
si svm inbox enable [OPTIONS] [SVM]| Name | Value | Description | Default | Env |
|---|---|---|---|---|
svm | SVM | The SVM to use; defaults to the one set with si use |
Scroll horizontally to see all columns.
| Name | Value | Description | Default | Env |
|---|---|---|---|---|
--json | Print the result as JSON | false | ||
--project | PROJECT | The project of the command: an id or a name; SI_PROJECT when the flag is absent | SI_PROJECT | |
--help | Print help |
Scroll horizontally to see all columns.
si svm inbox disable
Turn the inbox off; mail to it is rejected at SMTP
si svm inbox disable [OPTIONS] [SVM]| Name | Value | Description | Default | Env |
|---|---|---|---|---|
svm | SVM | The SVM to use; defaults to the one set with si use |
Scroll horizontally to see all columns.
| Name | Value | Description | Default | Env |
|---|---|---|---|---|
--json | Print the result as JSON | false | ||
--project | PROJECT | The project of the command: an id or a name; SI_PROJECT when the flag is absent | SI_PROJECT | |
--help | Print help |
Scroll horizontally to see all columns.
si svm inbox senders
Set the senders that may mail the SVM: any by default, or the exact addresses that are allowed
si svm inbox senders [OPTIONS] [SVM]| Name | Value | Description | Default | Env |
|---|---|---|---|---|
svm | SVM | The SVM to use; defaults to the one set with si use |
Scroll horizontally to see all columns.
| Name | Value | Description | Default | Env |
|---|---|---|---|---|
--none | Refuse every sender | false | ||
--allow | ADDRESS | An exact sender address that may mail the SVM; repeat it | ||
--json | Print the result as JSON | false | ||
--project | PROJECT | The project of the command: an id or a name; SI_PROJECT when the flag is absent | SI_PROJECT | |
--help | Print help |
Scroll horizontally to see all columns.
si svm inbox webhook
Set or remove the webhook that receives each message
si svm inbox webhook [OPTIONS] [SVM] [URL]| Name | Value | Description | Default | Env |
|---|---|---|---|---|
svm | SVM | The SVM to use; defaults to the one set with si use | ||
url | URL | The HTTPS URL that receives each message as a POST |
Scroll horizontally to see all columns.
| Name | Value | Description | Default | Env |
|---|---|---|---|---|
--remove | Remove the webhook instead of setting one | false | ||
--json | Print the result as JSON | false | ||
--project | PROJECT | The project of the command: an id or a name; SI_PROJECT when the flag is absent | SI_PROJECT | |
--help | Print help |
Scroll horizontally to see all columns.
si svm inbox telegram
Connect a Telegram bot to the inbox, pair a user or set the allowed users
si svm inbox telegram [OPTIONS] [SVM] <COMMAND>| Name | Value | Description | Default | Env |
|---|---|---|---|---|
svm | SVM | The SVM whose bot to manage; omit it for the default SVM |
Scroll horizontally to see all columns.
| Name | Value | Description | Default | Env |
|---|---|---|---|---|
--json | Print the result as JSON | false | ||
--project | PROJECT | The project of the command: an id or a name; SI_PROJECT when the flag is absent | SI_PROJECT | |
--help | Print help |
Scroll horizontally to see all columns.
si svm inbox telegram connect
Connect a bot; the token comes from a file or standard input, never from a command-line argument
si svm inbox telegram connect [OPTIONS]| Name | Value | Description | Default | Env |
|---|---|---|---|---|
--token-file | FILE | The file that holds the bot token; without it the token is read from standard input | ||
--json | Print the result as JSON | false | ||
--project | PROJECT | The project of the command: an id or a name; SI_PROJECT when the flag is absent | SI_PROJECT | |
--help | Print help |
Scroll horizontally to see all columns.
si svm inbox telegram disconnect
Remove the bot, its webhook and its token
si svm inbox telegram disconnect [OPTIONS]| Name | Value | Description | Default | Env |
|---|---|---|---|---|
--json | Print the result as JSON | false | ||
--project | PROJECT | The project of the command: an id or a name; SI_PROJECT when the flag is absent | SI_PROJECT | |
--help | Print help |
Scroll horizontally to see all columns.
si svm inbox telegram pair
Make a new pairing code: the user sends `/start <code>` to the bot
si svm inbox telegram pair [OPTIONS]| Name | Value | Description | Default | Env |
|---|---|---|---|---|
--json | Print the result as JSON | false | ||
--project | PROJECT | The project of the command: an id or a name; SI_PROJECT when the flag is absent | SI_PROJECT | |
--help | Print help |
Scroll horizontally to see all columns.
si svm inbox telegram users
Replace the numeric Telegram user ids that may send to the inbox
si svm inbox telegram users [OPTIONS] [ID]...| Name | Value | Description | Default | Env |
|---|---|---|---|---|
ids | ID | A numeric Telegram user id; repeat it. Omit all ids to clear the list |
Scroll horizontally to see all columns.
| Name | Value | Description | Default | Env |
|---|---|---|---|---|
--json | Print the result as JSON | false | ||
--project | PROJECT | The project of the command: an id or a name; SI_PROJECT when the flag is absent | SI_PROJECT | |
--help | Print help |
Scroll horizontally to see all columns.
si svm grant
Mint a scoped SVM API grant to share, or end every grant of an SVM
si svm grant [OPTIONS] <COMMAND>| Name | Value | Description | Default | Env |
|---|---|---|---|---|
--json | Print the result as JSON | false | ||
--project | PROJECT | The project of the command: an id or a name; SI_PROJECT when the flag is absent | SI_PROJECT | |
--help | Print help |
Scroll horizontally to see all columns.
si svm grant create
Mint a grant that admits these methods and paths; print its link
si svm grant create [OPTIONS] --method <METHOD> --path <GLOB> [SVM]| Name | Value | Description | Default | Env |
|---|---|---|---|---|
svm | SVM | The SVM that the grant reaches; omit it for the default SVM |
Scroll horizontally to see all columns.
| Name | Value | Description | Default | Env |
|---|---|---|---|---|
--methodrequired | METHOD | An HTTP method that the grant admits; repeat it | ||
--pathrequired | GLOB | A path glob in the SVM: * stays in one segment, ** crosses them; repeat it | ||
--arg | VALUE | An exact arg value that a run must carry, in order; repeat it | ||
--ttl | DURATION | The life of the grant, as 1h, 7d or seconds. The default is one hour; the plan caps it | ||
--json | Print the result as JSON | false | ||
--project | PROJECT | The project of the command: an id or a name; SI_PROJECT when the flag is absent | SI_PROJECT | |
--help | Print help |
Scroll horizontally to see all columns.
Examples: si svm grant create build-1 --method GET --path '/home/user/out/**' si svm grant create --method GET --method HEAD --path '/home/user/site/**' --ttl 7d si svm grant create build-1 --method POST --path /bin/bash --arg -c --arg 'make test'si svm grant rotate
End every SVM API grant of the SVM: their links answer 401
si svm grant rotate [OPTIONS] [SVM]| Name | Value | Description | Default | Env |
|---|---|---|---|---|
svm | SVM | The SVM whose grants to end; omit it for the default SVM |
Scroll horizontally to see all columns.
| Name | Value | Description | Default | Env |
|---|---|---|---|---|
--json | Print the result as JSON | false | ||
--project | PROJECT | The project of the command: an id or a name; SI_PROJECT when the flag is absent | SI_PROJECT | |
--help | Print help |
Scroll horizontally to see all columns.