Costa WiFi CLI is a command-line interface tool for managing your Costa Cruise WiFi connection.
- Login with your Costa card info
- Connect to WiFi
- Disconnect from WiFi
- View active WiFi sessions
- Get version information
There are two ways to install Costa WiFi CLI:
If you have Go installed on your system, you can use the go install
command to quickly install Costa WiFi CLI:
go install github.com/publi0/costa-wifi@latest
This will install the latest version of Costa WiFi CLI. After installation, make sure your Go bin directory is in your system's PATH.
To build from source, you need to have Go installed on your system. Then, you can clone the repository and build the project:
git clone https://github.com/publi0/costa-wifi.git
cd costa-wifi
go build
After building, you can run the CLI tool using:
./costa-wifi [command]
If you want to install it system-wide after building from source, you can use:
go install
This will install the costa-wifi
binary in your Go bin directory.
After building the project, you can run the CLI tool using:
./costa-wifi [command]
Available commands:
login
: Authenticate with your Costa card infoconnect
: Connect to WiFidisconnect
: List and disconnect a WiFi sessionsessions
: Get all active sessionsversion
: Print the version numberhelp
: Display help information for all commands
For more details on each command, use:
./costa-wifi [command] --help
-
Login:
./costa-wifi login
-
Connect to WiFi:
./costa-wifi connect
Or with a specific IP:
./costa-wifi connect --ip 192.168.1.100
-
View active sessions:
./costa-wifi sessions
-
Disconnect from WiFi:
./costa-wifi disconnect
The CLI tool stores configuration data in a JSON file located in your home directory. The file is named .costa-wifi
.
This project uses the following main dependencies:
- github.com/spf13/cobra: For creating powerful modern CLI applications
- github.com/pterm/pterm: For beautiful console output
- github.com/golang-jwt/jwt/v4: For JWT token handling
This tool is not officially associated with Costa Cruises. Use at your own risk.