on macOS
This document uses the command line from client terminal.
Installation
Execute the following command to install.
Startup
Startup command
Execute the following command with the required options specified below.
Required Options
Description
Example
-f, --forward string
set hostname (or IP) and port of the connection destination on the client side
locathost:8080
👆 When connecting as in the above Example, use the following command.
Saving connection history
Executing the start command will display the selection of the connection history save setting.
Enter y
to save or n
to not save and execute, when the following message is displayed.
(If you enter n
, the connection will be made without saving.)
If saving
Save connection history to config file. If you enter y
the following message is displayed. Enter the name of the profile to save and execute.
💡A file named <YourProfileName>.yaml
is created in the directory where is ~ / .mole /
on the client side. Running without any input creates a file named mole.yaml
with default settings.
💡If the connection history is saved, you can connect to the saved connection simply by specifying the saved profile name in the option -c
when the next time you connect.
Display when connected
When connected, it will be displayed as follows.
Using the URL displayed in https url
, you can browse the specified connection destination from your browser.
Connection in fileserver mode
You can connect in fileserver mode by executing the startup command with the local directory specified in the fileserver mode option. The connection history can be saved in the configuration file in the same way as Saving connection history in the previous section.
Required Options
Description
Example
--fileserver string
set a specific directory on the client side
/Users/moletaro/test
👆 When connecting as in the above Example, use the following command.
Other options
The following are details other than the required options.
Options
Description
-v, --version
display version
-c, --profile string
set profile
-a, --append
append the configuration file of profile
--help
display help
Stop
Enter ctl+c or esc to disconnect.
最終更新