### Start Service Source: https://github.com/ermak-dev/cloudpub/blob/master/docs/en/docs/cli.md Starts the CloudPub application service. ```bash clo service start ``` -------------------------------- ### Start Local Development Server Source: https://github.com/ermak-dev/cloudpub/blob/master/docs/en/README.md Starts a local development server for live previewing changes. Changes are reflected live without server restarts. ```bash $ yarn start ``` -------------------------------- ### Install Service Source: https://github.com/ermak-dev/cloudpub/blob/master/docs/en/docs/cli.md Installs the CloudPub application as a system service for automatic startup on boot. ```bash clo service install ``` -------------------------------- ### Start All Saved Resources Source: https://github.com/ermak-dev/cloudpub/blob/master/docs/en/docs/cli.md Starts all resources that have been previously saved in the configuration. ```bash clo run ``` -------------------------------- ### Install Project Dependencies Source: https://github.com/ermak-dev/cloudpub/blob/master/docs/en/README.md Run this command to install all necessary project dependencies using Yarn. ```bash $ yarn ``` -------------------------------- ### Example Minecraft Server Publication Output Source: https://github.com/ermak-dev/cloudpub/blob/master/docs/en/docs/minecraft.md This example shows the output after successfully publishing a Minecraft server. The URL provided after the arrow is the address players should use to connect to the game. ```bash Service published: minecraft://C:\Minecraft -> minecraft://minecraft.cloudpub.online:32123 ``` -------------------------------- ### Run CloudPub Docker Container with Persistent Volume Source: https://github.com/ermak-dev/cloudpub/blob/master/docs/en/docs/docker.md Start a CloudPub Docker container, mounting a persistent volume to preserve agent settings and cache. This command ensures your configuration is available on subsequent starts. ```bash docker run -v cloudpub-config:/home/cloudpub --net=host -it -e TOKEN=xyz \ cloudpub/cloudpub:latest publish http 8080 ``` -------------------------------- ### Get Configuration Value Source: https://github.com/ermak-dev/cloudpub/blob/master/docs/en/docs/cli.md Retrieves the value of a specific configuration key. ```bash clo get ``` -------------------------------- ### Configure Access Control with Multiple ACL Rules Source: https://github.com/ermak-dev/cloudpub/blob/master/docs/en/docs/auth.md Use the --acl parameter to specify multiple access control rules for different users and roles when publishing a resource. This example grants read-only access to 'user@example.com' and full access to 'admin@example.com'. ```bash clo publish --acl user@example.com:reader --acl admin@example.com:admin http 8080 ``` -------------------------------- ### Unpublish Resource Source: https://github.com/ermak-dev/cloudpub/blob/master/docs/en/docs/cli.md Unpublishes a resource using its service GUID. Use the --remove flag to also remove it from the configuration file. ```bash clo unpublish [--remove] ``` -------------------------------- ### Clo CLI Usage Source: https://github.com/ermak-dev/cloudpub/blob/master/docs/en/docs/cli.md This shows the general usage of the clo CLI, including available commands and options. Use this to understand the basic structure and available actions. ```bash Usage: clo [Options] Commands: login Authenticate on server logout End session publish Publish resource register Publish resource without starting application unpublish Unpublish resource ls List published resources clean Remove all published resources run Start all published resources purge Clear cache (downloads and installed third-party applications) set Set configuration parameter value get Get configuration parameter value ping Check ping to server service Work with service upgrade Check and upgrade to the latest version help Help Options: -v, --verbose Output log to console -l, --log-level Logging level, default: "error". Possible values: "error", "warn", "info", "debug" -c, --conf Path to configuration file -h, --help Show help -V, --version Show version number ``` -------------------------------- ### Download MacOS Archive (Intel) Source: https://github.com/ermak-dev/cloudpub/blob/master/docs/en/docs/intro.md Download the CloudPub client archive for MacOS with Intel architecture using curl and specify the output filename using -o. ```bash curl {getUrl('macos', 'x86_64')} -o {getFile('macos', 'x86_64')} ``` -------------------------------- ### Build Static Website Content Source: https://github.com/ermak-dev/cloudpub/blob/master/docs/en/README.md Generates the static content for the website into the 'build' directory, ready for hosting. ```bash $ yarn build ``` -------------------------------- ### Publish Minecraft Server via Command Line Source: https://github.com/ermak-dev/cloudpub/blob/master/docs/en/docs/minecraft.md Use this command to publish a Minecraft server. Replace '[path to server folder]' with the actual path to your Minecraft server directory. CloudPub automatically configures necessary parameters for non-modded servers. ```bash clo publish minecraft [path to server folder] ``` -------------------------------- ### Download MacOS Archive (Apple Silicon) Source: https://github.com/ermak-dev/cloudpub/blob/master/docs/en/docs/intro.md Download the CloudPub client archive for MacOS with Apple Silicon architecture using curl and specify the output filename using -o. ```bash curl {getUrl('macos', 'aarch64')} -o {getFile('macos', 'aarch64')} ``` -------------------------------- ### Set CloudPub Token Source: https://github.com/ermak-dev/cloudpub/blob/master/docs/en/docs/intro.md Link your CloudPub account to the client by setting your authentication token. Replace with your actual token. ```bash clo set token ``` -------------------------------- ### Download Linux Archive Source: https://github.com/ermak-dev/cloudpub/blob/master/docs/en/docs/intro.md Use wget to download the CloudPub client archive for Linux. Ensure you use the correct URL provided by getUrl. ```bash wget {getUrl('linux', 'x86_64')} ``` -------------------------------- ### Authenticate on Server Source: https://github.com/ermak-dev/cloudpub/blob/master/docs/en/docs/cli.md Authenticates on the server using email and password, saving the API token. Prompts for password if not provided. ```bash clo login [--password password] ``` -------------------------------- ### Deploy Website using SSH Source: https://github.com/ermak-dev/cloudpub/blob/master/docs/en/README.md Deploys the website using SSH. This command builds the static content and pushes it to the 'gh-pages' branch. ```bash $ USE_SSH=true yarn deploy ``` -------------------------------- ### List Published Resources Source: https://github.com/ermak-dev/cloudpub/blob/master/docs/en/docs/cli.md Retrieves and displays a list of all published resources. ```bash clo ls ``` -------------------------------- ### Create Docker Volume for CloudPub Configuration Source: https://github.com/ermak-dev/cloudpub/blob/master/docs/en/docs/docker.md Create a named Docker volume to persist CloudPub agent settings and cache across container restarts. This ensures your configuration is saved. ```bash docker volume create cloudpub-config ``` -------------------------------- ### Publish a WebDAV File Folder Source: https://github.com/ermak-dev/cloudpub/blob/master/docs/en/docs/webdav.md Use this command to publish a local folder via WebDAV. Specify the local folder path as an argument. The service will then provide a URL for accessing the published files. ```bash clo publish webdav "[folder path]" ``` -------------------------------- ### Publish Multiple Resources with CloudPub Docker Source: https://github.com/ermak-dev/cloudpub/blob/master/docs/en/docs/docker.md Configure the CloudPub Docker container to publish multiple resources simultaneously by specifying protocols and ports in environment variables. This allows for concurrent access to different services. ```bash docker run -v cloudpub-config:/home/cloudpub --net=host -it\ -e TOKEN=xyz \ -e HTTP=8080,8081 \ -e HTTPS=192.168.1.1:80 \ cloudpub/cloudpub:latest run ``` -------------------------------- ### Publish a UDP Service Source: https://github.com/ermak-dev/cloudpub/blob/master/docs/en/docs/tcp.md Use this command to publish a service running on the UDP protocol. Specify the port number for the service. ```bash clo publish udp 53 ``` -------------------------------- ### Extract MacOS Archive (Apple Silicon) Source: https://github.com/ermak-dev/cloudpub/blob/master/docs/en/docs/intro.md Extract the downloaded CloudPub client archive for MacOS with Apple Silicon architecture using tar. ```bash tar -xvf {getFile('macos', 'aarch64')} ``` -------------------------------- ### Extract MacOS Archive (Intel) Source: https://github.com/ermak-dev/cloudpub/blob/master/docs/en/docs/intro.md Extract the downloaded CloudPub client archive for MacOS with Intel architecture using tar. ```bash tar -xvf {getFile('macos', 'x86_64')} ``` -------------------------------- ### Publish a TCP Service Source: https://github.com/ermak-dev/cloudpub/blob/master/docs/en/docs/tcp.md Use this command to publish a service running on the TCP protocol. Specify the port number for the service. Unlike HTTP services, TCP services do not receive a unique domain name and are accessible at `tcp.cloudpub.online` with a specific port. ```bash clo publish tcp 22 ``` -------------------------------- ### Publish Local HTTP Service Source: https://github.com/ermak-dev/cloudpub/blob/master/docs/en/docs/http.md Use this command to publish a local HTTP server running on a specific port. The service will be accessible via HTTPS. ```bash clo publish http 8080 ``` -------------------------------- ### Publish Service with Custom Headers Source: https://github.com/ermak-dev/cloudpub/blob/master/docs/en/docs/http.md Publish an HTTP or HTTPS service and specify custom headers to be added to requests sent to your local server. This is useful for servers that require specific headers like 'Host'. ```bash clo publish -H Host:localhost https 443 ``` -------------------------------- ### Set Configuration Value Source: https://github.com/ermak-dev/cloudpub/blob/master/docs/en/docs/cli.md Sets a specific configuration key-value pair for CloudPub. Supports various keys like token, server, 1c_platform, etc. ```bash clo set ``` -------------------------------- ### Publish Resource Source: https://github.com/ermak-dev/cloudpub/blob/master/docs/en/docs/cli.md Publishes a resource to the CloudPub server. Specify protocol, port/host, and optional parameters like service name, authentication, ACLs, and headers. ```bash clo publish [--name service_name] [--auth auth_type] [--acl email:role] [--header name:value] ``` -------------------------------- ### Run CloudPub Docker Tunnel with host.docker.internal Source: https://github.com/ermak-dev/cloudpub/blob/master/docs/en/docs/docker.md For macOS or Windows users, use 'host.docker.internal' to access host services when running a CloudPub Docker tunnel. This is a workaround for the limitations of the '--net=host' option on these platforms. ```bash docker run --net=host -it -e TOKEN=xyz cloudpub/cloudpub:latest \ publish http host.docker.internal:8080 ``` -------------------------------- ### Publish RTSP Stream via Command Line Source: https://github.com/ermak-dev/cloudpub/blob/master/docs/en/docs/rtsp.md Use the 'clo publish rtsp' command to publish an RTSP stream. Provide the RTSP stream URL as an argument. The command will output a public URL for accessing the stream. ```bash clo publish rtsp "[RTSP stream URL]" ``` ```bash Service published: rtsp://192.168.0.100:554/stream0 -> rtsp://rtsp.cloudpub.online:51243/stream0 ``` -------------------------------- ### Publish Local HTTPS Service Source: https://github.com/ermak-dev/cloudpub/blob/master/docs/en/docs/http.md Publish a local HTTPS service. This command is similar to publishing HTTP services but specifies the HTTPS protocol. ```bash clo publish https 443 ``` -------------------------------- ### Extract Linux Archive Source: https://github.com/ermak-dev/cloudpub/blob/master/docs/en/docs/intro.md Use the tar command to extract the downloaded CloudPub client archive for Linux. ```bash tar -xvf {getFile('linux', 'x86_64')} ``` -------------------------------- ### Service Status Source: https://github.com/ermak-dev/cloudpub/blob/master/docs/en/docs/cli.md Displays the current status of the CloudPub application service. ```bash clo service status ``` -------------------------------- ### Authenticate with CloudPub Source: https://github.com/ermak-dev/cloudpub/blob/master/docs/en/docs/intro.md Authenticate with the CloudPub client using the 'clo login' command. On Linux and MacOS, you may need to specify the path to the 'clo' executable. ```bash clo login ``` ```bash ./clo login ``` -------------------------------- ### Uninstall Service Source: https://github.com/ermak-dev/cloudpub/blob/master/docs/en/docs/cli.md Removes the CloudPub application from the system services. ```bash clo service uninstall ``` -------------------------------- ### Deploy Website without SSH Source: https://github.com/ermak-dev/cloudpub/blob/master/docs/en/README.md Deploys the website without using SSH. Specify your GitHub username for deployment to GitHub Pages. ```bash $ GIT_USER= yarn deploy ``` -------------------------------- ### Publish a TCP Service on a Specific Host Source: https://github.com/ermak-dev/cloudpub/blob/master/docs/en/docs/tcp.md Publish a TCP service running on a specific host within your local network. This command allows you to target a particular server and port for the TCP service. ```bash clo publish tcp myserver:3389 ``` -------------------------------- ### Publish HTTP Service on Specific Host Source: https://github.com/ermak-dev/cloudpub/blob/master/docs/en/docs/http.md Publish an HTTP service running on a different host within your local network by specifying the IP address and port. ```bash clo publish http 192.168.1.1:80 ``` -------------------------------- ### Check Server Ping Source: https://github.com/ermak-dev/cloudpub/blob/master/docs/en/docs/cli.md Checks the network connectivity and responsiveness of the CloudPub server. ```bash clo ping ``` -------------------------------- ### Run CloudPub Docker Tunnel to Port 8080 Source: https://github.com/ermak-dev/cloudpub/blob/master/docs/en/docs/docker.md Use this command to run a CloudPub Docker tunnel to port 8080 on the host machine. Ensure you have the necessary token. ```bash docker run --net=host -it -e TOKEN=xyz cloudpub/cloudpub:latest publish http 8080 ``` -------------------------------- ### WebDAV Service Publication Confirmation Source: https://github.com/ermak-dev/cloudpub/blob/master/docs/en/docs/webdav.md This output confirms that the WebDAV service has been successfully published. It shows the local folder path and the public URL where the files can be accessed. ```bash Service published: webdav://C:\Users\Administrator -> https://indelibly-fearless-jackdaw.cloudpub.local ``` -------------------------------- ### End Session Source: https://github.com/ermak-dev/cloudpub/blob/master/docs/en/docs/cli.md Logs out by removing the saved API token from the configuration file. ```bash clo logout ``` -------------------------------- ### Stop Service Source: https://github.com/ermak-dev/cloudpub/blob/master/docs/en/docs/cli.md Stops the CloudPub application service. ```bash clo service stop ``` -------------------------------- ### Clear Cache Source: https://github.com/ermak-dev/cloudpub/blob/master/docs/en/docs/cli.md Removes all temporary files generated by CloudPub during its operation. ```bash clo purge ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.