/
), used to perform specific actions or access certain features within Wave. These commands can be executed with or without the leading slash.
The basic structure of a slash command is as follows:
Using Meta-Commands
[]
), whether you’re using a single meta-command or multiple ones.When using a single meta-command, simply enclose it in square brackets before the main command:aiapitoken
- Set your OpenAI API token to use the OpenAI API directly instead of the Wave cloud servers.aibaseurl
- Set the base URL for the OpenAI API if you want to use a different endpoint or a third-party API compatible with the OpenAI API.aimaxchoices
- Specify the maximum number of choices to generate when using the OpenAI API. Note that this option only applies when using your own API token. If you’re using Wave’s proxy, this value is predetermined.aimaxtokens
- Set the maximum number of tokens to use when generating a response from the OpenAI API. Note that this option is only effective when using your own API token. If you’re using Wave’s proxy, the maxtokens value is preconfigured.aimodel
- Choose the OpenAI language model to use for generating responses. Default is gpt-3.5-turbo.aitimeout
- Specify the maximum time to wait (in seconds) for a response from the AI service before timing out. Default value is 10.termfontfamily
- Update the font family used in the terminal. Wave supports JetBrains Mono, Hack, and Fira Code out of the box. You can also use any fixed-width font installed on your local machine by specifying its exact name. Be cautious when setting a custom font, as mistyping the font name or using a non-fixed-width font may result in visual inconsistencies.termfontsize
- Update the font size used in the terminal. You can set the font size from 8 to 15 pixels (px).aimaxtokens
and aimaxchoices
options are only applicable when using your own OpenAI API token. If you’re using Wave’s built-in proxy for API requests, these values are predetermined to ensure optimal performance and compatibility.
arch
- The architecture of your host system.client-version
- The version number of your Wave client.clientid
- The identifier for your specific Wave client instance.db-version
- The version of the client’s database.aiapitoken
- Your OpenAI API token.aibaseurl
- The URL used for sending OpenAI queries.aimaxchoices
- The maximum number of choices returned when querying OpenAI.aimaxtokens
- The maximum number of tokens currently set for OpenAI queries.aimodel
- OpenAI model name.releasecheck
- Shows if automatic release checks are active (on/off).server-version
- The version of the Wave server you’re connected to.telemetry
- Indicates whether telemetry is enabled (on/off).termfontfamily
- The font family currently used for your terminal text.termfontsize
- The current size of the terminal font.userid
- Your unique user identifier.filename
- Name of the file you’d like to edit. Filename resolves against the current remote and current working directory.lang
- Sets the syntax highlighting language.minimap
- Controls the visibility of the minimap in the scrollbar. Set to 0
to disable.Cmd-S
- Saves current fileCmd-D
- Closes the editor. Note, this will prevent future saves (and shrink the editor to fit the current size of the content).Cmd-F
- Search the current file for a string using whole word, regex and match case options. Cmd-F
also supports find and replace by simply clicking the green dropdown arrow in the find box.show preview
button located in the top right corner. This feature enables simultaneous editing and rendering, offering a side-by-side view of your Markdown source and its live output for efficient and immediate feedback.
filename
- Name of the file you’d like to edit. Filename resolves against the current remote and current working directory.lang
- Sets the syntax highlighting language.minimap
- Controls the visibility of the minimap in the scrollbar. Set to 0
to disable./comment
is not processed and will be posted as-is.
/connect
with no arguments will provide a list of available connections.
/cr
with no arguments will provide a list of activate connections.
ls
and cd
from the results.
0
as the 2nd argument).
/line:delete
it will still show up in history.
[line-arg]
can be a line number or line id. One argument, sets the renderer for the given line. If renderer
is empty, it will default to terminal
.
[line-arg]
can be a line number or line id.
/remote
commands can also be accessed using /connection
.
force=1
is passed it will force the remote to be disconnected even if there are running commands. The commands will be passed SIGHUP.
visual=1
is passed it will
open the create remote info window.
host
- Specifies the remote username and hostname or IP address to connect to.visual
- Determines whether or not a remote info window is displayed (bool)sudo
- Allows the command to be executed with superuser privileges on the remote system. (bool)port
- Specifies the port number to use for the SSH connection.alias
- Sets a short name or alias for the remote connection, for easier reference.connectmode
- Determines whether Waveterm will autoconnect for a new connection. Supported options are startup
, auto
, and manual.
autoinstall
- Determines whether of not the WaveShell helper is installed on the remote host (bool)key
- Specifies the path to the SSH key file to use for authentication.password
- Provides the SSH password for authentication (use with caution, as this may be insecure).~/.ssh/config
) and system (/etc/ssh/config
) ssh configs.
shell
argument which supports common shells like bash, zsh, etc. Useful for troubleshooting transient issues with current shell states.
visual=1
to edit in the UI.
alias
- Sets a short name or alias for the remote connection, for easier reference.key
- Specifies the path to the SSH key file to use for authentication.password
- Provides the SSH password for authentication (use with caution, as this may be insecure).autoinstall
- Determines whether of not the WaveShell helper is installed on the remote host (bool)bashrc
or bash_profile
) and reset the remote state (CWD, environment, functions, etc.) to match the initial login state. This can be useful to run if you make changes to your bash initialization files and want those changes to be picked up.
[screen-arg]
can be a screen number, name, id, or relative number.
0
means the screen should be unarchived.
[screen-id].
name
- set the name of the screen in the tab bartabcolor
- set the color of the tabtabicon
- set the icon of the tab. See fontawesome for a full list of supported icons. Note that we use the “Sharp” and “Solid” set of icons.anchor
- sets the current scroll anchor position (used by client)focus
- sets the focus type for the screen (used by client) (options: input
or cmd
)line
- sets the currently selected line[session-arg]
can be a session number, name, id, or relative number.
0
means the session should be unarchived.
[session-id].
name
.
/sidebar:open
). The option line
is required (can be a line number or a line id).
[line-arg]
can be a line number or line id.
The option [signame]
is the name of a signal. e.g. KILL, INT, HUP, TERM, etc. Can also prefix with SIG (e.g. SIGKILL).
You can also specify a signal by number like this: