{
  "id": "northflank",
  "name": "Northflank CLI",
  "homepage": "https://northflank.com",
  "description": "Provides a command-line interface to the Northflank platform.",
  "icon": "https://github.com/northflank.png?size=200",
  "executables": [
    "northflank",
    "nf"
  ],
  "dotfiles": {
    "paths": [
      "~/.northflank/config.json"
    ],
    "exclude": [],
    "secret": [],
    "secret_paths": [
      {
        "file": "~/.northflank/config.json",
        "match": {
          "key_path": [
            "contexts.*.token"
          ]
        }
      }
    ]
  },
  "commands": {
    "format": 1,
    "label": "Northflank CLI",
    "description": "Global options only; use the subcommands for the most common service operations.",
    "quality": "ai-draft",
    "base": "fig:northflank",
    "parser": {
      "end_of_options": "--",
      "interleave": "permute",
      "long_equals": true,
      "short_attached": false,
      "short_bundles": false
    },
    "source": [
      {
        "id": "fig",
        "kind": "completion",
        "url": "https://github.com/withfig/autocomplete/blob/master/src/northflank.ts",
        "license": "MIT"
      }
    ],
    "subcommand": [
      {
        "path": [
          "list",
          "services"
        ],
        "label": "List services",
        "description": "List services in a project.",
        "source": [
          {
            "id": "fig",
            "kind": "completion",
            "url": "https://github.com/withfig/autocomplete/blob/master/src/northflank.ts",
            "license": "MIT"
          }
        ],
        "field": [
          {
            "id": "project",
            "label": "Project ID",
            "type": "string",
            "option": [
              "--project",
              "--projectId"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "output",
            "label": "Output",
            "type": "string",
            "option": [
              "-o",
              "--output"
            ],
            "suggestions": [
              {
                "value": "json",
                "label": "json"
              },
              {
                "value": "yaml",
                "label": "yaml"
              }
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "no_defaults",
            "label": "Ignore context defaults",
            "type": "boolean",
            "option": [
              "--noDefaults"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "verbose",
            "label": "Verbose",
            "type": "boolean",
            "option": [
              "--verbose"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "quiet",
            "label": "Quiet",
            "type": "boolean",
            "option": [
              "--quiet"
            ],
            "sources": [
              "fig"
            ]
          }
        ],
        "task": [
          {
            "id": "list",
            "label": "List services",
            "fields": [
              "project",
              "output"
            ],
            "required": []
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "project",
              "output"
            ]
          },
          {
            "id": "advanced",
            "label": "Advanced",
            "fields": [
              "no_defaults",
              "verbose",
              "quiet"
            ]
          }
        ]
      },
      {
        "path": [
          "get",
          "service"
        ],
        "label": "Get service",
        "description": "Show information about one service.",
        "source": [
          {
            "id": "fig",
            "kind": "completion",
            "url": "https://github.com/withfig/autocomplete/blob/master/src/northflank.ts",
            "license": "MIT"
          }
        ],
        "field": [
          {
            "id": "project",
            "label": "Project ID",
            "type": "string",
            "option": [
              "--project",
              "--projectId"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "service",
            "label": "Service ID",
            "type": "string",
            "option": [
              "--service",
              "--serviceId"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "output",
            "label": "Output",
            "type": "string",
            "option": [
              "-o",
              "--output"
            ],
            "suggestions": [
              {
                "value": "json",
                "label": "json"
              },
              {
                "value": "yaml",
                "label": "yaml"
              }
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "no_defaults",
            "label": "Ignore context defaults",
            "type": "boolean",
            "option": [
              "--noDefaults"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "verbose",
            "label": "Verbose",
            "type": "boolean",
            "option": [
              "--verbose"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "quiet",
            "label": "Quiet",
            "type": "boolean",
            "option": [
              "--quiet"
            ],
            "sources": [
              "fig"
            ]
          }
        ],
        "task": [
          {
            "id": "get",
            "label": "Get service",
            "fields": [
              "project",
              "service",
              "output"
            ],
            "required": [
              "service"
            ]
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "project",
              "service",
              "output"
            ]
          },
          {
            "id": "advanced",
            "label": "Advanced",
            "fields": [
              "no_defaults",
              "verbose",
              "quiet"
            ]
          }
        ]
      },
      {
        "path": [
          "restart",
          "service"
        ],
        "label": "Restart service",
        "description": "Restart a service.",
        "source": [
          {
            "id": "fig",
            "kind": "completion",
            "url": "https://github.com/withfig/autocomplete/blob/master/src/northflank.ts",
            "license": "MIT"
          }
        ],
        "field": [
          {
            "id": "project",
            "label": "Project ID",
            "type": "string",
            "option": [
              "--project",
              "--projectId"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "service",
            "label": "Service ID",
            "type": "string",
            "option": [
              "--service",
              "--serviceId"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "output",
            "label": "Output",
            "type": "string",
            "option": [
              "-o",
              "--output"
            ],
            "suggestions": [
              {
                "value": "json",
                "label": "json"
              },
              {
                "value": "yaml",
                "label": "yaml"
              }
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "no_defaults",
            "label": "Ignore context defaults",
            "type": "boolean",
            "option": [
              "--noDefaults"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "verbose",
            "label": "Verbose",
            "type": "boolean",
            "option": [
              "--verbose"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "quiet",
            "label": "Quiet",
            "type": "boolean",
            "option": [
              "--quiet"
            ],
            "sources": [
              "fig"
            ]
          }
        ],
        "task": [
          {
            "id": "restart",
            "label": "Restart service",
            "fields": [
              "project",
              "service"
            ],
            "required": [
              "service"
            ]
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "project",
              "service",
              "output"
            ]
          },
          {
            "id": "advanced",
            "label": "Advanced",
            "fields": [
              "no_defaults",
              "verbose",
              "quiet"
            ]
          }
        ]
      },
      {
        "path": [
          "forward",
          "service"
        ],
        "label": "Forward service",
        "description": "Port-forward a service locally.",
        "source": [
          {
            "id": "fig",
            "kind": "completion",
            "url": "https://github.com/withfig/autocomplete/blob/master/src/northflank.ts",
            "license": "MIT"
          }
        ],
        "field": [
          {
            "id": "project",
            "label": "Project ID",
            "type": "string",
            "option": [
              "--project",
              "--projectId"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "service",
            "label": "Service",
            "type": "string",
            "option": [
              "--service",
              "--serviceId"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "skip_hostnames",
            "label": "Skip hostnames (no root)",
            "type": "boolean",
            "option": [
              "--skipHostnames"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "no_defaults",
            "label": "Ignore context defaults",
            "type": "boolean",
            "option": [
              "--noDefaults"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "verbose",
            "label": "Verbose",
            "type": "boolean",
            "option": [
              "--verbose"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "quiet",
            "label": "Quiet",
            "type": "boolean",
            "option": [
              "--quiet"
            ],
            "sources": [
              "fig"
            ]
          }
        ],
        "task": [
          {
            "id": "forward",
            "label": "Forward service",
            "fields": [
              "project",
              "service",
              "skip_hostnames"
            ],
            "required": []
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "project",
              "service",
              "skip_hostnames"
            ]
          },
          {
            "id": "advanced",
            "label": "Advanced",
            "fields": [
              "no_defaults",
              "verbose",
              "quiet"
            ]
          }
        ]
      }
    ]
  }
}
