Flow CLI allows you to interact with the Flow API via the command line. It supports most functionality found in the control panel. You can create, configure, and destroy Flow resources like Instances, Security Groups, Networks and more. We will add Mac Bare Metal and Object Storage support soon.
go get github.com/flowswiss/cli/cmd/flow
After downloading you first of all need to authenticate the cli with your username and password. Warning: those credentials will be stored in
flow auth login --username 'USERNAME' --password 'PASSWORD'
alternatively you can also pass
--password PASSWORDto every other command or set the environment variables
FLOW_PASSWORDto avoid the credentials getting stored in your home directory.
Once you have successfully logged in into your account, you can start manipulating things in your organization. As a first step it would be a good idea to upload your personal ssh key onto our platform. You will need this for every linux virtual machine you deploy.
flow compute key-pair create \
--name 'My first key pair' \
Just to test things out, you can try creating an ubuntu virtual machine using the previously uploaded key pair:
flow compute server create \
--name 'My first virtual machine' \
--location 'ALP1' \
--image 'ubuntu-20.04' \
--product 'b1.1x1' \
--key-pair 'My first key pair'