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.7.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.7-py3-none-any.whl (11.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: trailsnap_cli-0.3.7.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.7.tar.gz
Algorithm Hash digest
SHA256 8c67b135c200d72ff983e2b1ccdf6e9c3bf5bf08c66091937b9dd391c72588be
MD5 976f7ed3e595b8800cdfee3be430aa78
BLAKE2b-256 3738287c67deebdcb8c22cc7436d6a706b963c1628f944ac4a38ff26a3575d46

See more details on using hashes here.

File details

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

File metadata

  • Download URL: trailsnap_cli-0.3.7-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.7-py3-none-any.whl
Algorithm Hash digest
SHA256 e976597b5d66573b819356e7d8175581c1360ba4fe54a4f253e98c9e5fea7436
MD5 1195e3aa887ffd08b6abc9158799d337
BLAKE2b-256 4da1c45e6a7c18c3f0ac43c8868eba57f410d11a6a71092dccf45cdaa266c69f

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