Documentation
WebsiteMineGitHubFaucet
  • Welcome to MakeOS
  • Introduction
    • Install
    • Quick Start
    • Set Up a Private Network
    • Get Test Coins
    • Track a Repository
    • What is MakeOS
    • How it Works
    • Tokenomics ($MAKE)
    • Dilithium (Deprecated)
    • Roadmap
    • Team
  • Concepts
    • Repository
      • Register a Repository
      • Initialize a New Repository
      • Repository Governance
      • Access Control Config
    • Namespace
    • Key
    • Issue Management
    • Merge Request
    • Transactions
      • Register a Repository
      • Send Coins
    • Validator
    • Host
    • Remote
  • JavaScript Console API
    • repo
    • pushkey
    • namespace
    • node
    • user
    • transaction
    • ticket
  • KIT CLI Reference
    • Overview
    • init
    • start
    • console
    • attach
    • key
      • create
      • gen
      • get
      • import
      • list
      • update
    • tx
      • get
    • repo
      • config
      • create
      • hook
      • init
      • vote
    • user
      • send
    • pk
      • register
    • sign
      • commit
      • note
      • tag
    • contributor
      • add
    • issue
      • close
      • create
      • list
      • read
      • reopen
      • status
    • mr
      • checkout
      • close
      • create
      • fetch
      • list
      • read
      • reopen
      • status
Powered by GitBook
On this page
  • Usage
  • Options
  • Example

Was this helpful?

  1. KIT CLI Reference

attach

The attach command is used to start a JavaScript console that connects to an already running local or remote Kit node.

Usage

kit attach [options]
Start a JavaScript console that attaches to a local or remote node

Usage:
  kit attach [flags]

Flags:
      --exec string           Execute the given JavaScript code
  -h, --help                  help for attach
      --remote.address string Set the RPC server address to connect to (default "127.0.0.1:9002")
      --rpc.https             Connect using HTTPS protocol
      --rpc.password string   Set the RPC password
      --rpc.user string       Set the RPC username

Options

  • --exec - Executes a JavaScript source code and exit. If a path is provided, it is read and executed.

  • --remote.address - The address of the Git & RPC remote server.

  • --rpc.https - Indicates that SSL should be used when connecting to the node.

  • --rpc.user - Provide the username of the server for basic authentication.

  • --rpc.password - Provide the password of the server for basic authentication.

  • -h, --help - Print out a help message.

Example

  • Attach to the local node running on the default address:port.

kit attach
  • Attach to a remote node at the address rpc.mynode.net:9003.

kit attach --remote.address="rpc.mynode.net:9003" --rpc.user="user" --rpc.password="pass"
  • Attach to a node and execute a JavaScript expression immediately after attaching.

kit attach --exec='2+2'
> 4 

PreviousconsoleNextkey

Last updated 4 years ago

Was this helpful?