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

Uploaded Python 3

File details

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

File metadata

  • Download URL: trailsnap_cli-0.1.0.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.1.0.tar.gz
Algorithm Hash digest
SHA256 e8bfe388a96141ed732764b3015e63a3dda9499227f6c9ac322923361585865f
MD5 e281dd31c703a1db30fc88f4128bc872
BLAKE2b-256 ee58948eb60a0be66bd7ca98d92f588aeeceea0345c40931c8a34a3cdda17d8c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: trailsnap_cli-0.1.0-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.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 bf36f75e59b9068eaa05e79cb5fc1c96e7f5dd521bfaf922dbcbbc3a8b8d128c
MD5 25a9514081c9029c6b8e10498ccc3c8a
BLAKE2b-256 736ed4fa2212723c65f30112615a695163dddd99dad3412fe0cc481ff2c3d766

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