Installation Guide
This guide provides detailed instructions for installing and setting up the CCLS Games CLI Tool.
Table of Contents
- Prerequisites
- Downloading the CLI Tool
- PowerShell Security Configuration
- First Run Setup
- Installing Dependencies
- Directory Configuration
- Verification
- Troubleshooting Installation
Prerequisites
Before installing the CCLS Games CLI Tool, ensure you have:
System Requirements
- Operating System: Windows 10 (build 1903 or later) or Windows 11
- PowerShell: Version 5.1 or later (included with Windows)
- Administrator Access: Required for initial setup and dependency installation
- Internet Connection: Required for downloads and updates
- Disk Space: At least 1GB free space (more recommended for games)
Account Requirements
- CCLS Games Account: Required for downloading games
- Create account at: https://games.ccls.icu/login.php?signup
- Existing users can log in with their credentials
Downloading the CLI Tool
Method 1: Direct Download (Recommended)
- Visit the download page: https://games.ccls.icu/CLI_Tool.php
- Click "Download CLI Tool" to get the latest version
- Save the
CLI.ps1
file to a dedicated folder
Method 2: Direct Link
https://games.ccls.icu/CLI/api/2.0/latest/CLI.ps1
Creating a Dedicated Folder
- Create a new folder for the CLI Tool (recommended locations):
C:\Users\[YourUsername]\Documents\CCLS-CLI\
C:\CCLS-CLI\
- Desktop folder (for easy access)
- Place the downloaded
CLI.ps1
file in this folder
- This folder will also store settings, logs, and cache files
PowerShell Security Configuration
Windows PowerShell has security features that prevent unauthorized scripts from running. You need to configure the execution policy:
Step 1: Open PowerShell as Administrator
- Click the Start menu
- Type "PowerShell"
- Right-click "Windows PowerShell"
- Select "Run as administrator"
- Click "Yes" when prompted by User Account Control
Step 2: Set Execution Policy
In the administrator PowerShell window, run:
Set-ExecutionPolicy RemoteSigned -Scope CurrentUser
When prompted, type
A
(Yes to All) and press Enter.
What This Does
RemoteSigned
: Allows local scripts to run while requiring downloaded scripts to be signed
-Scope CurrentUser
: Only affects your user account, not system-wide
- This is a secure setting that balances safety with functionality
First Run Setup
Step 1: Handle Security Warning
- Navigate to your CLI Tool folder
- Right-click
CLI.ps1
- Select "Run with PowerShell"
- Windows will show a security warning dialog
- Important: Uncheck "Always ask before opening this file"
- Click "Open"
Step 2: Login Process
The script will prompt you to log in:
For existing users:
Username: [your_username]
Password: [your_password]
For new users:
- The script will display a registration link
- Visit the link to create an account
- Return to the script and log in
Step 3: Save Login Information
After successful login, you'll be asked:
Do you want to remember your login info for next time? (Y/N)
- Type
Y
for automatic login on future runs (recommended)
- Type
N
to manually log in each time
Installing Dependencies
The CLI Tool requires several components for full functionality. Use the built-in installer commands:
Step 1: Check Current Status
CCLS>check
This command shows which components are installed and which are missing.
Step 2: Install Required Components
7-Zip (Required)
CCLS>install 7zip
- Purpose: Extracts downloaded game archives
- Installation: Downloads and installs 7-Zip locally
- Required: Games cannot be installed without 7-Zip
Python (Required)
CCLS>install python
- Purpose: Enables high-speed downloading with resume capability
- Installation: Downloads Python installer and guides you through setup
- Important: When installing Python, check "Add Python to PATH"
- Restart Required: Restart the CLI Tool after Python installation
Python Requests Library (Required)
CCLS>install requests
- Purpose: HTTP library for download functionality
- Installation: Automatically installs via pip
- Prerequisite: Python must be installed first
Installation Order
- Install 7-Zip first
- Install Python second
- Restart CLI Tool
- Install requests library
- Run
check
command to verify all components
Directory Configuration
Before downloading games, you must configure the CLI Tool directories:
Run Setup Command
CCLS>setup
Configure Directories
Games Installation Directory
- Purpose: Where downloaded games are permanently stored
- Recommendations:
- Choose a location with plenty of free space
- Use a fast drive (SSD preferred) for better performance
- Example:
C:\Games\CCLS-Games\
Temporary Download Directory
- Purpose: Temporary storage during download and extraction
- Recommendations:
- Can be on a different drive from installation directory
- Should have space for the largest game you plan to download
- Example:
C:\Temp\CCLS-Downloads\
Directory Structure Created
After setup, the CLI Tool creates several folders:
[Installation Directory]/
├── [Game Folders]/
│ ├── [Game Files]
│ └── [Game ID].json (metadata)
└── ...
[CLI Tool Directory]/
├── CLI.ps1
├── settings/
│ ├── credentials.dat
│ ├── settings.json
│ └── lib.json (cache)
├── logs/
│ └── [session logs]
└── 7zip/ (if installed locally)
Verification
Verify Installation
- Run the check command:
CCLS>check
- All components should show as "Installed"
Test Basic Functionality
- List available games:
CCLS>search library
- View help:
CCLS>help
Test Download (Optional)
- Search for a small game:
CCLS>search library
- Download a test game:
CCLS>get [small_game_id]
Troubleshooting Installation
Common Issues
"Execution Policy" Error
Problem: PowerShell refuses to run the script
Solution:
- Run PowerShell as Administrator
- Execute:
Set-ExecutionPolicy RemoteSigned -Scope CurrentUser
"Python not found" After Installation
Problem: CLI Tool can't find Python after installation
Solutions:
- Restart the CLI Tool completely
- Verify Python is in PATH:
python --version
in Command Prompt
- Reinstall Python with "Add Python to PATH" checked
"7-Zip not found" Error
Problem: Extraction fails during game installation
Solutions:
- Run:
install 7zip
again
- Check if 7-Zip installed correctly
- Manually install 7-Zip from https://www.7-zip.org/
"Setup command required" Error
Problem: Cannot download games
Solution: Run the
setup
command to configure directories
Windows Security Warning Keeps Appearing
Problem: Security dialog shows every time
Solution: Uncheck "Always ask before opening this file" in the security dialog
"Missing critical dependencies" Error
Problem: CLI Tool reports broken state
Solution:
- Run
check
to see what's missing
- Install missing components using
install [component]
- Restart CLI Tool if needed
Advanced Troubleshooting
Reset CLI Tool Configuration
If you encounter persistent issues:
- Close the CLI Tool
- Delete the
settings
folder in your CLI Tool directory
- Restart the CLI Tool and run through setup again
Manual Python Installation
If automatic Python installation fails:
- Visit https://www.python.org/downloads/
- Download Python 3.x for Windows
- During installation, check "Add Python to PATH"
- After installation, restart CLI Tool
- Run:
install requests
Check System Logs
For advanced troubleshooting:
- Use the log system:
log list
- View recent logs:
log view [filename]
- Check Windows Event Viewer for system-level errors
Getting Help
If you continue to experience issues:
- Check the Troubleshooting Guide
- Review the User Guide for usage questions
- Create an issue on the project repository
- Visit the CCLS Games website for account-related issues
Next Steps
After successful installation:
- Read the User Guide for comprehensive usage instructions
- Review the Commands Reference for all available commands
- Explore the Configuration Guide for advanced settings