MSafe | Aptos
  • Overview
    • MSafe Overview
    • What can you do with MSafe wallet?
      • Why Multi-Sig & Non-Custodial
      • MSafe Wallet Key Benefits
    • Use Cases
      • Treasury Management
      • Smart Contract Deployment & Update
      • Protocol Admin Control
      • dApp Store Integration
    • Security
  • Users
    • Glossary
    • Launch App
    • Connect Wallet
    • Navigation Bar
    • Address Book
    • Create an Account
      • Initiate Creation
      • Co-Managers to Accept
    • Switch btw Accounts
    • Deposit / Receive
    • View Assets
    • View Pending Txn
    • View Txn History
    • Propose Transaction (Enable NFT, Send, Register Coin)
      • Enable NFT
      • Send
      • Add Coin
    • Approve Transaction
      • Co-Managers to Approve Enable NFT
      • Co-Managers to Approve Send
      • Co-Manager to Approve Add Coin
    • Change Vote
    • Reject Transaction
      • Co-Managers to Reject
    • Execute Transaction
      • Execute Approval
      • Execute Rejection
    • App Store
      • Use dApps
    • MSafe 1.0 User guide
      • Connect Wallet
      • First time registration
      • Create an MSafe Account
      • Receive Coin
      • Coin Transfer (APT)
      • DAPP Store
      • Add a new coin
      • Address Book
      • Permissions
      • Wallet FAQs
  • Developers
    • Overview
    • System
      • Auth-key & Multi-Ed25519
      • Backend Walk Through
      • MSafe Contracts
    • Interactive CLI
      • Installation
      • CLI arguments
      • Register and View
      • Create a MSafe Wallet
      • Approve / execute a transaction
      • Transfer Coin
      • Smart Contract | Module Publish
      • Entry Function
      • Reject a transaction
      • Migration from MSafe 1.0 to MSafe 2.0
    • SDK
      • Smart Contract | Deploy a MOVE Module
      • Call An Entry Function
    • Integrate with MSafe (DAPP)
      • FAQ
    • Move Module Publish
  • Product updates
    • 2022 Q4
Powered by GitBook
On this page
  • Prerequisites
  • Installation
  • Setup a wallet
  • Getting started
  1. Developers
  2. Interactive CLI

Installation

PreviousInteractive CLINextCLI arguments

Last updated 2 years ago

Note some basic knowledge is assumed as prerequisites, including:

  1. Command line interface operation

  2. Github commands

  3. Yarn & typescript

Prerequisites

Install Aptos CLI

Follow the to install the Aptos CLI under the system $PATH directory.

After installation, check with the command line shall give you the following message:

$ which aptos
YOUR_PATH_TO_/aptos

$ aptos --version
aptos 0.3.4

Install node.js

Install and on your machine.

Installation

Clone repository

$ git clone https://github.com/Momentum-Safe/CLI-MSafe.git

Install dependancies

$ cd CLI_MSafe
$ yarn install

Wait for package download and installation.

Setup a wallet

Use aptos to initialize a wallet on Devnet.

$ aptos init

Follow the instructions to create a new wallet and the full-node url configurations. For a first time user, we suggest you to follow all default configurations to create a new account on Aptos Devnet.

The command will create a yaml file with the message about full-node api endpoints and account private key and address.

$ ls .aptos/config.yaml

Get some initial fund from faucet

aptos account fund-with-faucet --account ${WALLET_ADDRESS_CREATED} --amount 100000000

Getting started

User yarn to start the CLI tool.

yarn start

Contracts! You have already started to interact with the MSafe through interactive CLI! Feel free to follow the prompts in the CLI tool and play around.

Open a terminal, go to the directory you want to install CLI-MSafe, and clone the .

Aptos official guide
node.js
yarn
Github repository for CLI-MSafe