CLI Reference
Working with CLI
Login
meltcd login
# show access token after login
meltcd login --show-token
Create a new application
meltcd app create my_app --repo https://github.com/username/repo.git --path compose.yml --refresh 3m0s
This will create a new application with name my_app
You can also specify the Application
spec file
meltcd app create --file <path-to-file>
Example file:
# service.yaml
name: my_app
refresh_timer: "3m0s"
source:
repoURL: https://github.com/kunalsin9h/tiddi.git
path: compose.yml
targetRevision: HEAD
Here
targetRevision
can by any branch likemy-branch
.
or in json
{
"name": "my_app",
"refresh_timer": "3m0s",
"source": {
"repoURL": "https://github.com/kunalsin9h/tiddi.git",
"path": "compose.yml",
"targetRevision": "HEAD"
}
}
To update an existing application
meltcd app update <app-name> --repo <repo-url> --path <path-to-spec>
Or using file
meltcd app update --file <path-to-file>
To get information about the application
meltcd app get <app-name>
# or
meltcd app inspec <app-name>
Get all the applications
meltcd app list
Command to forcefully Refresh (synchronize) application
meltcd app sync <app-name>
# or
meltcd app refresh <app-name>
Remove application
meltcd app remove <app-name>
# or
meltcd app rm <app-name>
Working with Private Repository
See Private Repositoryfor working with private git repository
Last updated
Was this helpful?