hackforge
v0.1.1
Published
CLI tool for Hackforge project management
Maintainers
Readme
Hackforge CLI
A command-line interface tool for Hackforge that allows users to login and download their project details.
Installation
# Install globally
npm install -g hackforge
# Or install locally
npm install hackforgeAlternatively, you can clone this repository and link it locally:
git clone <repository-url>
cd hackforge-cli
npm install
npm linkUsage
Authentication
Before using the CLI tool, you need to authenticate:
# Start the login process (opens browser)
hackforge login
# Or directly provide a token
hackforge token <your-token>Managing Projects
List your projects:
hackforge projectsDownload a specific project:
# Download a project by ID
hackforge projects --download <project-id>
# Specify an output file
hackforge projects --download <project-id> --output ./my-project-data.json
# Get output in markdown format
hackforge projects --download <project-id> --format markdownDownload all your projects:
# Download all projects
hackforge projects --all
# Specify an output file
hackforge projects --all --output ./all-projects.json
# Get output in markdown format
hackforge projects --all --format markdownAvailable Commands
hackforge login- Authenticate with the Hackforge serverhackforge token <token>- Save an authentication token directlyhackforge projects- List and download your projects
Options
Login options
-t, --token <token>- Provide an authentication token directly-w, --web- Open web browser to get a token (default method)
Projects options
-d, --download <id>- Download a specific project by ID-o, --output <path>- Specify output directory/file for downloaded project-a, --all- Download all your projects-f, --format <format>- Output format (json or markdown)
Troubleshooting
If you encounter any issues with the CLI tool, try the following:
- Ensure you are logged in (run
hackforge loginagain) - Check your internet connection
- Make sure you have the correct permissions for writing to the output directory
License
MIT
