CLI
Getting started
Install Chunkify CLI, authenticate with project tokens, and configure profiles for multiple projects or different environments.
Installation
Installing the latest version:
curl -fsSL https://cli.chunkify.sh | bash
Authentication
After the installation, the first step is to set your project token:
chunkify config token <sk_project_token>
You will find the project token in your project settings page under the Project access token section. It's best to create a new token for the CLI.
Another way to authenticate is to set the environment variable CHUNKIFY_TOKEN:
export CHUNKIFY_TOKEN=sk_project_token
CLI Profiles
You may have multiple projects and want to use different project tokens for different tasks, or simply to differentiate between different environments.
The CLI provides a global --profile flag to use different project tokens.
First, let's save a new token for the testing profile:
chunkify config token sk_project_token --profile testing
Now you can use this profile with the --profile flag for transcoding:
chunkify -i video.mp4 -o video_1080p.mp4 -f mp4_h264 -s 1920x1080 --crf 21 --profile testing
If no profile given, the CLI will use the default one