cmd
Last updated: 2025-10-26 01:14:53.089772 File source: link on GitLab
Introduction
The Nunet Command-Line Interface (CLI) serves as a powerful tool for interacting with the Nunet ecosystem, enabling you to manage network configurations, control capabilities, and handle cryptographic keys. It provides a comprehensive set of commands to streamline various tasks and operations within the Nunet network.
Top-Level Commands
Actor System
nunet actorThis command provides a suite of operations tailored for interacting with the Nunet Actor System. It enables you to communicate with actors within the network, facilitating actions like sending messages, invoking specific behaviors, and broadcasting information to multiple actors simultaneously.
Detailed documentation can be found here.
Capability Management
nunet capThis command focuses on capability management within the Nunet ecosystem. It allows you to define, delegate, and control the permissions and authorizations granted to different entities, ensuring secure and controlled interactions within the network.
Detailed documentation can be found here.
Configuration Management
nunet configThe config command allows to interact with and manage your configuration file directly from the command line. This allows you to view existing settings, modify them as needed, and ensure Nunet DMS is tailored to your preferences.
Usage
nunet config COMMANDAvailable Commands
edit: Opens the configuration file in your default text editor for manual adjustments.get: Retrieve and display the current value associated with a specific configuration key.set: Modify the configuration file by assigning a new value to a specified key.
Flags
-h, --help: Display help information for theconfigcommand and its subcommands.
Key Management
nunet keyThe Nunet Key Management CLI allows generating new keypairs and retrieve the Decentralized Identifier (DID) associated with a specific key.
Main Command
nunet keyDescription: The primary command to manage keys within the Nunet DMS
Usage:
nunet key COMMANDAvailable Commands:
did: Retrieve the DID for a specified keynew: Generate a new keypair
Flags:
-h, --help: Display help information for the mainkeycommand.
Subcommands
nunet key didDescription: Retrieves and displays the DID associated with a specified key. This DID uniquely identifies the key within the Nunet network.
Usage:
nunet key did <key-name> [flags]Arguments:
<key-name>: The name of the key for which the DID is to be retrieved
Flags:
-h, --help: Display help information for thedidcommand
nunet key newDescription: Generates a new keypair and securely stores the private key in the user's local keystore. The corresponding public key can be used for various cryptographic operations within the Nunet DMS
Usage:
nunet key new <name> [flags]Arguments:
<name>: A name to identify the newly generated keypair
Flags:
-h, --help: Display help information for thenewcommand.
Important Considerations:
Keep your private keys secure, as they provide access to your identity and associated capabilities within the Nunet DMS
Choose descriptive names for your keypairs to easily identify their purpose or associated devices.
Run Command
nunet runStarts the Nunet Device Management Service (DMS) process, responsible for handling network operations and device management.
Usage:
nunet run [flags]Flags:
-c, --context string: Specifies the key and capability context to use (default: "dms").-h, --help: Displays help information for theruncommand.
Example:
nunet runThis starts the Nunet DMS with the default "dms" context.
GPU Command
nunet gpu
nunet gpuPurpose: The nunet gpu command provides gpu related apis.
Usage:
nunet gpu <operation>Available Operations:
list: List all the available GPUs on the system.test: Test the GPU deployment on the system using docker.
Flags:
-h, --help: Display help information for thegpucommand and its subcommands.
Example:
nunet gpu listThis command will list all the available GPUs on the system.
nunet gpu testThis command will test the GPU deployment on the system using docker.
Last updated

