Skip to main content

Unofficial CLI for the Ninebot (九号) scooter Passport + business APIs

Project description

ninecli

Unofficial CLI for the Ninebot (九号) scooter app — read vehicle info, view ride history, and run vehicle controls (engine start/stop, seat trunk, find-me bell) from the terminal.

Not affiliated with Ninebot / Segway.

Install

# one-off, no install
uvx ninecli

# or install into current env
pip install ninecli

Multi-platform wheels are published for Linux (amd64, arm64) and macOS (amd64, arm64); pip / uv picks the right one automatically.

Quick start

ninecli login -u <phone> -p <password>   # password login, saves tokens.json
ninecli whoami                           # verify the saved token
ninecli vehicles                         # list owned + shared vehicles
ninecli status                           # show one vehicle's status (asks which one)
ninecli travel                           # ride history for the current month

Vehicle controls (bell, engine-start, engine-stop, buck) print a y/N safety prompt — pass -y to skip.

Usage

$ ninecli --help
ninecli — Ninebot scooter Passport + vehicle info + control

Usage:
  ninecli [command]

Available Commands:
  bell         Ring the find-my-vehicle bell
  buck         ⚠️  Open the seat trunk
  completion   Generate the autocompletion script for the specified shell
  engine-start ⚠️  Power on / unlock the vehicle
  engine-stop  ⚠️  Power off / lock the vehicle
  help         Help about any command
  login        Password login (Passport) — saves tokens.json
  login-code   SMS-code login (Passport) — sends code, then consumes it
  status       Show vehicle status (location, battery, lock, acc, perms)
  travel       Ride history (default: list current month); --detail <id> shows one ride
  vehicles     List owned + shared vehicles
  whoami       Verify the saved token (calls POST /v5/user)

Flags:
      --config string          config directory (default: $NINEBOT_CONFIG_DIR or ~/.config/ninebot)
  -h, --help                   help for ninecli
      --json                   emit raw decrypted JSON instead of human-readable output
  -y, --yes                    bypass the y/N safety prompt on control commands (engine-start/engine-stop/buck)

Use "ninecli [command] --help" for more information about a command.

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

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

ninecli-0.1.2-py3-none-manylinux_2_17_x86_64.whl (3.0 MB view details)

Uploaded Python 3manylinux: glibc 2.17+ x86-64

ninecli-0.1.2-py3-none-manylinux_2_17_aarch64.whl (2.7 MB view details)

Uploaded Python 3manylinux: glibc 2.17+ ARM64

ninecli-0.1.2-py3-none-macosx_11_0_arm64.whl (2.8 MB view details)

Uploaded Python 3macOS 11.0+ ARM64

ninecli-0.1.2-py3-none-macosx_10_9_x86_64.whl (3.0 MB view details)

Uploaded Python 3macOS 10.9+ x86-64

File details

Details for the file ninecli-0.1.2-py3-none-manylinux_2_17_x86_64.whl.

File metadata

File hashes

Hashes for ninecli-0.1.2-py3-none-manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 0b6f859608805d060d4743510ab9383201c380bda3ff402fa4ba1c6730b3f701
MD5 64504756b6dd3896e57faaa2b42724e0
BLAKE2b-256 d77ab730dd94ab93faffb2c6e4ba48ae129ae8613af60cf7b1d1dcf33c2ddb22

See more details on using hashes here.

File details

Details for the file ninecli-0.1.2-py3-none-manylinux_2_17_aarch64.whl.

File metadata

File hashes

Hashes for ninecli-0.1.2-py3-none-manylinux_2_17_aarch64.whl
Algorithm Hash digest
SHA256 3198fc6d33af786ace985d4279cde7b13f743baa0d08d7f3126cc87ab6b0b0fd
MD5 cce765d455595da112853a9e0aad9fc4
BLAKE2b-256 56a1b625697877c49fb36b67a318a2fa1ad55a9afd826b66f33074543369cc87

See more details on using hashes here.

File details

Details for the file ninecli-0.1.2-py3-none-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for ninecli-0.1.2-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3d11b653b9def9641e1eed75be3d2cf64fb2de23cd383a1ac3ef5c610174a6c6
MD5 05c8b05f0a8de6e8c8659c2a8c979527
BLAKE2b-256 099af70cdff0c3e5865d9dea3bdda745a07e725d2afcc863b4723b68873c9753

See more details on using hashes here.

File details

Details for the file ninecli-0.1.2-py3-none-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for ninecli-0.1.2-py3-none-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 9e206ddcfdce87bacc4033b753c5f29b075f5db48d5a570a1cc5e5cc797c602d
MD5 2e7ca611866ab0e9b6a3b8c20fbca969
BLAKE2b-256 3e27a07b658077f40ef7b02750ccbb36d3715019e1724d0dd245dabc403c67e4

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