Threefold CLI to manage deployments on Threefold Grid.
First download tfcmd binaries.
Login using your mnemonics and specify which grid network (mainnet/testnet) to deploy on by running:
tfcmd loginCheck Wallet Connector for more details if you do not have mnemonics yet.
For examples and description of tfcmd commands check out:
# Login to ThreeFold Grid
tfcmd login
# Deploy a VM
tfcmd deploy vm --name myvm --ssh ~/.ssh/id_rsa.pub --cpu 2 --memory 4
# Get VM information
tfcmd get vm myvm --project-name vm/myvm
# List available gateways
tfcmd list gateways name
# Deploy a gateway name
tfcmd deploy gateway name --name myapp --project-name vm/myvm --network myvmnetwork --node 11 --backends http://10.20.2.2:8080
# Cancel deployment
tfcmd cancel --project-name vm/myvmtfcmd
├── deploy
│ ├── vm # Deploy virtual machines
│ ├── gateway
│ │ ├── name # Deploy name gateway (subdomain)
│ │ └── fqdn # Deploy FQDN gateway
│ ├── kubernetes # Deploy Kubernetes clusters
│ └── zdb # Deploy Zero-DB instances
├── get
│ ├── vm # Get VM information
│ ├── gateway
│ │ ├── name # Get name gateway info
│ │ └── fqdn # Get FQDN gateway info
│ ├── kubernetes # Get Kubernetes cluster info
│ ├── zdb # Get ZDB instance info
│ ├── contract # Get specific contract info
│ └── contracts # List all contracts
├── list
│ └── gateways
│ ├── name # List name gateways
│ └── fqdn # List FQDN gateways
├── cancel
│ └── contracts # Cancel contracts
├── update
│ └── kubernetes # Update Kubernetes workers
├── login # Authenticate with mnemonics
├── version # Show version information
└── completion # Generate shell completions- Download the binaries from releases
- Extract the downloaded files
- Move the binary to any of
$PATHdirectories, for example:
mv tfcmd /usr/local/bintf-grid saves user configuration in .tfgridconfig under default configuration directory for your system see: UserConfigDir()
Clone the repo and run the following command inside the repo directory:
make build