Skip to main content

TrailSnap Command Line Interface

Project description

TrailSnap CLI

Command Line Interface for TrailSnap.

Installation

Via pip

pip install trailsnap-cli

Via npm

npm install -g trailsnap-cli

Local Development / Testing

If you want to test or develop the CLI locally before publishing:

1. Test via Python (Recommended for Development)

Use pip's editable mode to install the package so your code changes take effect immediately without reinstalling:

cd package/trailsnap-cli
pip install -e .

# Test if the command works
trailsnap --help

2. Test via npm (Testing the Node.js Wrapper)

Since the npm package relies on downloading pre-built binaries from GitHub Releases (which don't exist locally), you must build the binary manually and skip the download script.

cd package/trailsnap-cli

# Install pyinstaller
pip install pyinstaller

# Build the standalone executable
pyinstaller --onefile --name trailsnap --paths trailsnap trailsnap/cli.py

# Create bin directory and move the executable (Windows example)
mkdir bin
cp dist/trailsnap.exe bin/
# For Mac/Linux: cp dist/trailsnap bin/

# Install globally via npm, skipping the postinstall download script
npm install -g . --ignore-scripts

# Test if the wrapper works
trailsnap --help

To uninstall local versions:

  • pip uninstall trailsnap-cli
  • npm uninstall -g trailsnap-cli

Usage

trailsnap --help

获取TrailSnap的API URL和Token

trailsnap config set --url <url> --token <token>

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

trailsnap_cli-0.3.8.tar.gz (7.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

trailsnap_cli-0.3.8-py3-none-any.whl (11.7 kB view details)

Uploaded Python 3

File details

Details for the file trailsnap_cli-0.3.8.tar.gz.

File metadata

  • Download URL: trailsnap_cli-0.3.8.tar.gz
  • Upload date:
  • Size: 7.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for trailsnap_cli-0.3.8.tar.gz
Algorithm Hash digest
SHA256 061494c91967e04c04bcd9c4e70ebb02a238021f27a7eecec4cd2e9d697d5a61
MD5 a6bd83c84949e7e7673b186b15677c38
BLAKE2b-256 e3fd239cd690e89ca35b51316cf07d489695f92cf6346e0f2f93b235bba325aa

See more details on using hashes here.

File details

Details for the file trailsnap_cli-0.3.8-py3-none-any.whl.

File metadata

  • Download URL: trailsnap_cli-0.3.8-py3-none-any.whl
  • Upload date:
  • Size: 11.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for trailsnap_cli-0.3.8-py3-none-any.whl
Algorithm Hash digest
SHA256 88d96fa5d5bf39a04f734074cb093ec74b047886b040d038f8a89a7ab473e52f
MD5 41950bbe313d2e75acec83645da52706
BLAKE2b-256 a0d3cb71704e45df9ba206952e2711f7ffe2f742fbf32ab59e03abcb08261c95

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page