CLI Reference

Working with CLI

  1. Login

meltcd login

# show access token after login
meltcd login --show-token
  1. 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 like my-branch.

or in json

{
  "name": "my_app",
  "refresh_timer": "3m0s",
  "source": {
    "repoURL": "https://github.com/kunalsin9h/tiddi.git",
    "path": "compose.yml",
    "targetRevision": "HEAD"
  }
}
  1. 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>
  1. To get information about the application

meltcd app get <app-name>

# or 
meltcd app inspec <app-name>
  1. Get all the applications

meltcd app list
  1. Command to forcefully Refresh (synchronize) application

meltcd app sync <app-name> 
# or
meltcd app refresh <app-name>
  1. 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