Play TextLands from your terminal
Project description
TextLands CLI
Play TextLands from your terminal.
Installation
Quick Install (Recommended)
curl -fsSL https://textlands.com/install.sh | bash
Package Managers
# pip (Python 3.10+)
pip install textlands
# Homebrew (macOS/Linux)
brew tap MindFortressInc/textlands
brew install textlands
# npm (Node.js 16+)
npm install -g textlands
Download Binary
Pre-built binaries available on GitHub Releases:
| Platform | Download |
|---|---|
| macOS (Apple Silicon) | textlands-macos-arm64 |
| macOS (Intel) | textlands-macos-x64 |
| Linux (x64) | textlands-linux-x64 |
| Windows (x64) | textlands-windows-x64.exe |
Quick Start
# List available realms
textlands realms
# Start playing
textlands play
# Or jump straight into a realm
textlands play <realm-id>
Commands
| Command | Description |
|---|---|
textlands realms |
List available realms |
textlands play [REALM] |
Start or resume playing |
textlands status |
Show current session |
textlands login |
Authenticate with API key |
textlands logout |
Clear credentials |
textlands config |
Configure settings |
In-Game Commands
While playing:
/lookor/l- Look around/inventoryor/i- Check inventory/restor/r- Rest and recover/helpor/h- Show help/quitor/q- Exit game
Or just type what you want to do:
- "search the room"
- "talk to the bartender"
- "attack the goblin"
Configuration
The CLI stores config in ~/.textlands/:
config.json- Settings and session state- API keys are stored in system keyring when available
Environment variables:
TEXTLANDS_API_URL- Override API URLTEXTLANDS_API_KEY- Set API keyTEXTLANDS_INSTALL_DIR- Custom install directory (for install.sh)
Development
# Clone and install
git clone https://github.com/MindFortressInc/textlands-cli
cd cli
pip install -e ".[dev]"
# Run tests
pytest
# Local API testing
textlands config --api-url http://localhost:8002
# Build binary locally
pip install pyinstaller
pyinstaller --onefile textlands_cli/main.py
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file textlands-0.1.1.tar.gz.
File metadata
- Download URL: textlands-0.1.1.tar.gz
- Upload date:
- Size: 9.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
833ef200ca68296a64b0ed089fc7d9876280f67b737e1e5c00c6131fdd0be5b5
|
|
| MD5 |
c622cc1d4ad4b22679ec1df978802fe5
|
|
| BLAKE2b-256 |
7ac29ee482f6895af2cecbeeedd4c5ac52cfc098c39d5cc240cfb62fa96636b6
|
Provenance
The following attestation bundles were made for textlands-0.1.1.tar.gz:
Publisher:
publish.yml on MindFortressInc/textlands-cli
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
textlands-0.1.1.tar.gz -
Subject digest:
833ef200ca68296a64b0ed089fc7d9876280f67b737e1e5c00c6131fdd0be5b5 - Sigstore transparency entry: 780848838
- Sigstore integration time:
-
Permalink:
MindFortressInc/textlands-cli@eb8183af5652486043850be4f0dea94d26760185 -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/MindFortressInc
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@eb8183af5652486043850be4f0dea94d26760185 -
Trigger Event:
release
-
Statement type:
File details
Details for the file textlands-0.1.1-py3-none-any.whl.
File metadata
- Download URL: textlands-0.1.1-py3-none-any.whl
- Upload date:
- Size: 10.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9eddb0e0c6996a39e5f408fbbd01824f8fea8498f2c787fcd9fca594f7c2b77d
|
|
| MD5 |
35d66d1e19e1fabad88c3c1c23b0ad80
|
|
| BLAKE2b-256 |
071a05c43c0c8c295863b241017ddb568171cb631476c456305a166252fd5120
|
Provenance
The following attestation bundles were made for textlands-0.1.1-py3-none-any.whl:
Publisher:
publish.yml on MindFortressInc/textlands-cli
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
textlands-0.1.1-py3-none-any.whl -
Subject digest:
9eddb0e0c6996a39e5f408fbbd01824f8fea8498f2c787fcd9fca594f7c2b77d - Sigstore transparency entry: 780848840
- Sigstore integration time:
-
Permalink:
MindFortressInc/textlands-cli@eb8183af5652486043850be4f0dea94d26760185 -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/MindFortressInc
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@eb8183af5652486043850be4f0dea94d26760185 -
Trigger Event:
release
-
Statement type: