Skip to main content

V Cloud Market Command Tool For User

Install

pip install v-cloud-market-cli-user

Usage

Interactive Mode

Run with no arguments to start the interactive TUI:

vcloud            # mainnet
vcloud -t         # testnet

Non-Interactive CLI

All subcommands output JSON to stdout for scripting and automation.

# Browse the marketplace (no wallet needed)
vcloud market list-providers
vcloud market list-categories --provider v-kube-service
vcloud market list-services --provider v-kube-service --category Container-Service
vcloud market get-service <SERVICE_ID>
vcloud market get-provider <PROVIDER_NAME>

# Order management (wallet needed)
vcloud order list [--status OrderPending|OrderPaid|OrderFiled]
vcloud order get <ORDER_ID>
vcloud order create --service-id <ID> --duration <HOURS> --options '{"key":"val"}'
vcloud order pay <ORDER_ID> --amount <N> [--currency-index <N>]
vcloud order currencies

# Wallet operations (wallet needed)
vcloud wallet info [--balance-detail]
vcloud wallet balance
vcloud wallet pay --recipient <ADDR> --amount <N> [--attachment <TEXT>]

# Service management (wallet needed)
vcloud service list [--status ServiceRunning|ServicePending|ServiceDone|ServiceAbort]
vcloud service get <USER_SERVICE_ID> --provider <NAME>
vcloud service status <USER_SERVICE_ID> --provider <NAME>
vcloud service deploy <USER_SERVICE_ID> --provider <NAME> --config-file <PATH>
vcloud service restart <USER_SERVICE_ID> --provider <NAME>
vcloud service renew <USER_SERVICE_ID> [<ID>...] --duration <HOURS> --amount <N>
vcloud service refund <USER_SERVICE_ID> [<ID>...]

Global Options

Option Description
-t, --testnet Use testnet instead of mainnet
--address-index N Wallet address index (1-based, default 1)

Authentication

For password-protected wallets, set the VCLOUD_PASSWORD environment variable:

export VCLOUD_PASSWORD=yourpassword
vcloud order list

If the wallet has no password, no environment variable is needed.

Piping and Scripting

Output is JSON, so it works with jq and other tools:

# Get the first provider's name
vcloud market list-providers | jq '.list[0].name'

# Create an order and capture the order ID
ORDER_ID=$(vcloud order create --service-id <ID> --duration 1 --options '{}' | jq -r '.id')

# Pay for it
vcloud order pay "$ORDER_ID" --amount 1.76 --currency-index 1

Deployment Config File

The service deploy command takes a JSON config file. Example for deploying nginx:

{
  "containers": [
    {
      "name": "nginx",
      "imageName": "nginx:latest",
      "resourceUnit": 1,
      "ports": [{"containerPort": 80, "protocol": "TCP"}],
      "envs": [],
      "mountPath": "",
      "command": [],
      "args": [],
      "configMountPath": "",
      "config": ""
    }
  ],
  "pvtLogin": [{"username": "", "password": ""}]
}

Wallet Functions

  • Create new wallet
  • Reset wallet
  • Recover wallet with seed
  • Check balance of address in the wallet
  • Export wallet addresses to csv file

Market Services

  • Explore service provider information
  • Explore service category information
  • Explore service type information
  • Make order with service type id

Order Services

  • Pay the order with VSYS
  • Check the status of order
  • View order list
  • View specific order information
  • Refund an order
  • View refundable order list

User Service

  • Explore running user services
  • Explore usable user services
    • The status of usable user services are: ServicePending or ServiceRunning.
    • This function is to get secret information from service provider.
  • Explore expired user services

Run CLI in Local

Install dependencies with uv (preferred):

uv venv && source .venv/bin/activate
uv pip install -r requirements.txt && uv pip install -e .

Or with virtualenv:

pip3 install virtualenv
virtualenv venv
source venv/bin/activate
pip install -r requirements.txt && pip install -e .

Run in mainnet:

python3 market_place_cli/use_main_interface.py

Run in testnet:

python3 market_place_cli/use_main_interface.py -t

Exit virtual environment:

deactivate

Metadata

Release files for v-cloud-market-cli-user 0.12.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for v-cloud-market-cli-user 0.12.0
File Interpreter ABI Platform
v_cloud_market_cli_user-0.12.0-py3-none-any.whl Python 3 none any Details

Release files / v_cloud_market_cli_user-0.12.0-py3-none-any.whl

Download URL v_cloud_market_cli_user-0.12.0-py3-none-any.whl
Size 133.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
82f963518b58b9cc12cb821d0aae76b09c1f54985ae0e30724237882ce4394b8
BLAKE2b-256 checksum
How to use checksums
0788d04012d70ef2f0d36fb7b244f5d902c5ddddf8ef68a53f6b80b39eed4548
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.9.6

Release history Release notifications | RSS feed

This release

0.12.0 This release

1 release file

0.11.0

1 release file

0.10.2

1 release file

0.10.1

1 release file

0.10.0

1 release file

0.9.1

1 release file

0.9.0

1 release file

0.8.0

1 release file

0.7.0

1 release file

0.6.0

1 release file

0.5.0

1 release file

0.4.0

1 release file

0.3.0

1 release file

0.2.0

2 release files

0.1.10

1 release file

0.1.9

2 release files

0.1.8

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page