Introduction of Fkit command line tool
The fkit tool is a command line tool developed by the FlowHub platform using the go language. It can run on windows / Linux / macOS and is mainly used for file upload and download / tool production / tool upload and download.
The compiled version of the fkit tool for each platform can be obtained below. After downloading, unzip it and use it directly.
Operating system | system version | download link |
---|---|---|
Windows | 32digit | https://flowhub-master.oss-cn-hangzhou.aliyuncs.com/publish/fkit_windows_386/fkit.zip |
Windows | 64digit | https://flowhub-master.oss-cn-hangzhou.aliyuncs.com/publish/fkit_windows_amd64/fkit.zip |
Linux | 32digit | https://flowhub-master.oss-cn-hangzhou.aliyuncs.com/publish/fkit_linux_386/fkit.zip |
Linux | 64digit amd64 | https://flowhub-master.oss-cn-hangzhou.aliyuncs.com/publish/fkit_linux_amd64/fkit.zip |
Linux | 64digit arm64 | https://flowhub-master.oss-cn-hangzhou.aliyuncs.com/publish/fkit_linux_arm64/fkit.zip |
MacOS | 64digit amd64 | https://flowhub-master.oss-cn-hangzhou.aliyuncs.com/publish/fkit_darwin_amd64/fkit.zip |
MacOS | 64digit arm64 | https://flowhub-master.oss-cn-hangzhou.aliyuncs.com/publish/fkit_darwin_arm64/fkit.zip |
For Linux and MacOS platform users, we recommend the following download methods
wget -O fkit.zip 下载链接
cul -O fkit.zip 下载链接
Due to the use of docker (what is docker described in the document of ‘introduction of docker’)need administrator rights, so we recommend that users add sudo when using fkit, for Linux and macOS platform users.
sudo ./fkit –help
When the installation is successful, the following documentation will be output, and you can learn about the use of fkit tool through the documentation.
Mainly used for flow hub platform file and tool transfer.
If you encounter any problems during use, please report related problems to flowhub_team@flowhub.com.cn, and we will reply to your message as soon as possible.
Usage:
fkit [command]
Available Commands:
cd Change Dir
createNewVersion Upload the new version of the image to the corresponding tool, and the version number of the corresponding tool +1
createTool Upload the image to the platform account project and name the tool image
download Download Files
help Help about any command
login Login fkit
logout Logout fkit
ls List directory contents
mv Move file
project Select Project
pull Pull the tool image under the platform account to the local for further development
pwd Show current dir
rename Rename file
rm Remove File or Dir
upload Upload Files
version Get fkit version
Flags:
-h, --help help for fkit
Use "fkit [command] --help" for more information about a command.
For the viewing of a single function, such as viewing the function of fkit login to log in to the flowhub account.
sudo ./fkit login –h
The user login, the user needs to complete the login first before performing other operations of fkit
-k token, You can get the token after logging in to the flowhub webpage
E.g: ./fkit login -k dd3e5b06896711eb8cfb12420bfe23ax -s ccd4bf88bb0411ebb2227ae21af0849x
Usage:
fkit login [flags]
Flags:
-k, --access-key string access key Id
-s, --access-secret string access key secret
-h, --help help for login
-H, --host string input fkit endpoint (default "https://www.flowhub.com.cn")
-i, --internal internal is bool variable, true: Upload by internal; false: Upload by intenet