Skip to main content

HeadSpin platform command-line interface

Project description

# headspin-cli
CLI for the HeadSpin platform API.

Installation/Upgrade:
--
```
pip install --upgrade headspin-cli
```

Usage:
--
```
hs (-h | --help)
hs auth init <token>
hs auth info
hs auth set-default <credentials_number>
hs session ls [<num_sessions>] [-a] [--json]
hs session inspect <session_uuid> [--writefiles] [--json]
hs session start network_container <device_id> [--json]
hs session stop <session_uuid> [--json]
hs session mar <session_uuid>
hs session har <session_uuid>
hs companion ls [--json]
hs companion inspect <companion_uuid> [--json]
hs device ls [--json]
```

Detailed Description:
--
```
hs auth init <token>

Authorizes this device given a one-time token <token>. Contact
support@headspin.io to request an authorization token.

hs auth info

Prints the current credentials.

has auth set-default <credentials_number>

Sets the credentials number <credentials_number> as the default.
The numbering can be seen via the `hs auth info` command.

hs session ls [<num_sessions>] [-a]

Outputs a list of session metadata in reverse-chronological
order. <num_sessions> is the number of sessions output, 5 by
default. By default only active sessions are output. The `-a`
flag will cause inactive sessions to be inclued in the result.

hs session inspect <session_uuid> [--writefiles]

Outputs details for a session given the session's UUID. If
`--writefiles` is given, data associated with session endpoints
is written to files.

hs session start network_container <device_id>

Starts a HeadSpin network container session on a device
specified by <device_id>. The container's default network
interface (eth0) is on the device's mobile network. The container
can be accessed via SSH login. In addition, a device can access
the remote mobile network by connecting to a VPN.

hs session stop <session_uuid>

Stops a session in progress.

hs session mar <session_id>

Downloads the captured network traffic from a HeadSpin session
in HeadSpin's MAR format. MAR is a HAR-like JSON format that
contains the data in a network capture at a high level.

hs session har <session_id>

Downloads the captured network traffic from a HeadSpin session
in HAR format.

hs device ls

Lists all the devices.
```

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

headspin-cli-0.0.3.tar.gz (5.8 kB view details)

Uploaded Source

File details

Details for the file headspin-cli-0.0.3.tar.gz.

File metadata

  • Download URL: headspin-cli-0.0.3.tar.gz
  • Upload date:
  • Size: 5.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for headspin-cli-0.0.3.tar.gz
Algorithm Hash digest
SHA256 8486bc3e5c08bddf01af09e5f47f8dbe1e924c228aca247f20740a2eec2c34d5
MD5 e3766933c4416a41d855bb3a2706dff9
BLAKE2b-256 b8b9d91a6fb39d607cf24756d34c95b5009eda59a12187a57cada119d430db6e

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