Kleinkram CLI Usage
Ensure you have installed the CLI and authenticated as described in the Setup Guide.
Getting Started
Here is a quick example of how to create a project, upload data, and run an action.
# 1. Create a Project and Mission
klein project create -p testProject -d "Just a Test Project for running actions"
echo "123" > test.yml
klein upload -p testProject -m testMission --create test.yml
# 2. Build a test Action
# (Assuming you have an action definition in the current directory)
docker build -t <your-docker-hub-account>/test_action .
docker push <your-docker-hub-account>/test_actionCommon Commands
Most commands require you to specify the Project and Mission you want to interact with. You can do this using the -p (or --project) and -m (or --mission) flags.
Uploading Files
Use the upload command to send files to a mission.
klein upload -p myproject -m mymission data.bag metadata.yamlYou can also use wildcards:
klein upload -p myproject -m mymission *.bagCreating Mission on Upload
To create a mission automatically during upload, use the --create flag. The project must already exist.
klein upload --create -p myproject -m mymission *.bagDownloading Files
Use the download command to retrieve files from a mission.
klein download -p myproject -m mymission --dest ./downloaded_dataVerifying Files
Use the verify command to check if files were uploaded correctly.
klein verify -p myproject -m mymission data.bagListing Resources
You can list projects, missions, and files using the list command.
# List all projects
klein list projects
# List missions in a project
klein list missions -p myproject
# List files in a mission
klein list files -p myproject -m mymissionSupported File Types
The CLI supports uploading and verifying all supported file types. See the Files documentation for a complete list of supported formats.
Other Commands
For a full list of available commands and options, you can always use the --help flag:
klein --help