Crate ockam_command

source ·
Expand description

This crate provides the ockam command line application to:

  • start Ockam nodes and interact with them
  • manage projects and spaces hosted within the Ockam Orchestrator

For more information please visit the command guide

§Instructions on how to install Ockam Command

  1. You can install Ockam Command pre-built binary using these steps. You can run the following command in your terminal to install the pre-built binary:

    curl --proto '=https' --tlsv1.2 -sSfL https://install.command.ockam.io | bash
    
  2. To build Ockam Command from source, fork the repo, and then clone it to your machine. Open a terminal and go to the folder that you just cloned the repo into. Then run the following to install ockam so that you can run it from the command line.

    cd implementations/rust/ockam/ockam_command && cargo install --path .
    

Re-exports§

Modules§

Macros§

Structs§

  • This struct contains the main structs used to implement commands:
  • Those arguments are common to all commands
  • Top-level command, with:
  • The command’s output message to be displayed to the user in various formats
  • A terminal abstraction to handle commands’ output and messages styling.
  • A small wrapper around the Write trait, enriched with CLI attributes to facilitate output handling.

Enums§

Traits§

  • Trait defining the main methods to write messages to a terminal stream.

Functions§