The CLI can be used to manage workspaces.
You can list all the workspaces you have access to using:
The currently selected workspace will be .
Adding a workspace
The wmill CLI is capable of handling working with many remotes & workspaces. Each combination of remote & workspace is registered with together with a name locally using:
wmill workspace add [workspace_name] [workspace_id] [remote]
The new workspace will automatically be switched to.
|The name of the workspace.|
|The ID of the workspace.remote.|
|The remote URL.|
|None||Create the workspace if it does not exist.|
|Specify the workspace name. Ignored if |
|Specify your own username in the newly created workspace. Ignored if |
- Prompts for the workspace name, ID, and remote URL.
wmill workspace add
- Adds a workspace with the name "MyWorkspace", ID "workspace123", and remote URL "https://example.com/myworkspace".
wmill workspace add MyWorkspace workspace123 https://example.com/myworkspace
- This command creates a workspace with the name "MyWorkspace2," using the provided username "john.doe."
wmill workspace add --create --create-workspace-name MyWorkspace2 --create-username john.doe
The wmill workspace switch command allows you to switch to another workspace. It requires specifying the target workspace as a positional argument and performs the necessary operations to switch to that workspace. Here is the documentation for the wmill workspace switch command:
wmill workspace switch <workspace_name>
|The name of the workspace to switch to.|
- Switch to the workspace named "MyWorkspace".
wmill workspace switch MyWorkspace
The currently selected workspace will be used for all operations. This workspace is in the list of workspaces.
Removing a workspace
wmill workspace remove command allows you to remove a workspace from the CLI.
wmill workspace remove <workspace_name>
|The name of the workspace to remove.|
- Remove the workspace named "MyWorkspace".
wmill workspace remove MyWorkspace
At any point you can ask help with the command
-h after a given instruction to see the list of options & commands.
Example here just using
The wmill workspace whoami command allows you to display the currently active user and the active workspace.
wmill workspace whoami