Skip to main content

The official Netskope CLI — manage your Netskope tenant from the command line

Project description

netskope-cli

The official Netskope CLI — manage your Netskope tenant from the command line.

Installation

pip install netskope-cli

Quick Start

The CLI is available as both netskope and the shorter nsk alias:

# Configure your tenant
netskope config set-tenant sedemo.goskope.com

# Authenticate with API token
export NETSKOPE_API_TOKEN="your-token"

# Or login via browser (SSO)
netskope auth login

# Search events
netskope events alerts --query 'alert_type eq "DLP"' --limit 10

# List users (using the short alias)
nsk users list

# Get help
nsk --help

Environment Variables

The CLI supports the following environment variables, which override config file values:

Variable Description Example
NETSKOPE_API_TOKEN API v2 token for authentication export NETSKOPE_API_TOKEN="your-token-here"
NETSKOPE_TENANT Tenant hostname (overrides configured tenant) export NETSKOPE_TENANT="mytenant.goskope.com"
NETSKOPE_PROFILE Configuration profile to use export NETSKOPE_PROFILE="staging"

You can verify which values are active and their sources with:

netskope config show

Shell Completion

Install tab completion for your shell:

# Bash
netskope --install-completion bash

# Zsh
netskope --install-completion zsh

# Fish
netskope --install-completion fish

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

netskope-0.2.0.tar.gz (101.6 kB view details)

Uploaded Source

Built Distribution

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

netskope-0.2.0-py3-none-any.whl (131.9 kB view details)

Uploaded Python 3

File details

Details for the file netskope-0.2.0.tar.gz.

File metadata

  • Download URL: netskope-0.2.0.tar.gz
  • Upload date:
  • Size: 101.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.2.1 CPython/3.12.3 Linux/6.14.0-1018-aws

File hashes

Hashes for netskope-0.2.0.tar.gz
Algorithm Hash digest
SHA256 ee6979d77a777c5ec3bda5e7861f886d7ca66bb5e069146e94aa2f3c4458bab6
MD5 7c6974111c8e8b7e77e1565107842462
BLAKE2b-256 89070133c3ac0d02c4d819344065e92db66174c0f0aedabbcf526f1cba6232ad

See more details on using hashes here.

File details

Details for the file netskope-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: netskope-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 131.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.2.1 CPython/3.12.3 Linux/6.14.0-1018-aws

File hashes

Hashes for netskope-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e4d40f43f7a1513a49c99011d155decd9f395ce6c145b326cadd283fff7e33f5
MD5 56cf089b6f81085dcf9a02cab051466a
BLAKE2b-256 99e2f3cbd55e0558ba0ffbc8a1ef1dc82d321ff8c8e57e41c71580e10f8d6a97

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