Getting Started

Using Acapella CLI

Write simple fragment

import ap

print("Hello,", ap.user.id)

Save as fragment.py.

Download and install acapella-cli package

Run

acapella run fragment.py
    snapshot created: Alex/cli-launcher/BD69F3F2
    1 fragments not found in CodeBase
    upload fragment: fragment.py
    snapshot is ready
    CPVM 1.2.805 (71b3d42940277db7130c281d769f2cc7457e6e6d)
    using 'transactional' preset
    start fragment: Alex/cli-launcher/BD69F3F2:fragment.py
    transaction started: debf352fce064508
    transaction completed

    execution time:
        without overheads (worker):  7 ms
        total (worker):              7 ms
        total (node):                11 ms
    transaction timestamps: 
        start:          18:21:36.428000 [2018-01-18]
        end:            18:21:36.443000 [2018-01-18]
    counters: 
        total conflicts:   0
        total restarts:    0
        async calls:       0
        sync calls:        0
        TVM reads:         0
        TVM writes:        0
    TVM traffic: 
        TVM bytes read:    0 B
        TVM bytes write:   0 B
    log:

    Hello, Alex

Full description of all possible CLI commands you can find here.

Using HTTP API

NEXT - about cli (command line interface) ->