Harbormaster Techstack Commands

Techstack List

Display a list of tech stacks

harbormaster stack_list [options] [scope]

Synopsis

List available tech stacks, includes owned models and publicly available models.

options
-f,
--filter: serverless, webapp, restfulapi, mobile Providing no value returns all
scope: public, private, community Empty returns all.

To display all public tech stacks using pretty print:

harbormaster stack_list public --output pretty

To display all public and private tech stacks as JSON[default]:

harbormaster stack_list

To display all serverless type tech stacks as JSON:

harbormaster stack_list -f serverless

Techstack Validation

Validate a tech stack

harbormaster stack_validate <file_path>

Synopsis

Validates the structure and contents of a tecstack packaged as a ZIP file. 

filepath: Absolute or relative path to the techstack ZIP file.

To validate a technology stack ZIP file:

harbormaster stack_validate './samples/techstacks/A_Ruby_On_Rails_Techstack.zip'

Techstack Publishing

Publish a tech stack

harbormaster stack_publish <name> [scope]

Synopsis

Publish a model file or use a YAML with appropriate directives.

yaml_file: The location of a YAML containing the publish directives The structure of the YAML file is:
version: 1.0
saveParams:
    name: Apollo GraphQL
    description: Apollo GraphQL Tech Stack
    stackPath: C:\Users\xxxx\tech.stack.packages\
    stackFile: apollo_techstack.zip

scope: public or private[default].

To publish a tech stack as private:

harbormaster stack_publish ./yamls/save-my-tech-stack.yml public

Techstack Download

Download a tech stack

harbormaster stack_download <name>

Synopsis

Download a tech stack package as a ZIP file. Only owned or public tech stack packages can be downloaded.

name: the unique name of the tech stack package ZIP file used when published
output_file_path: where to download the tech stack package ZIP file to

To download a tech stack package using name myStack:

harbormaster stack_download myStack ./tmp/archive/myStack.zip

Techstack Options

View tech stack options

harbormaster stack_options <name>

Synopsis

Available tech stack options, modifiable to allow customization of a generated project. Download as JSON
and provide as JSON during project generation.

name: the unique name of the tech stack package ZIP file used when published

To download the options for a tech stack using id=1, piped into a file as JSON with output turned to quiet:

harbormaster stack_options --quiet true 1 > tech.stack.options.json

Techstack Promotion

harbormaster stack_promote <name>

Promotes a tech stack

Synopsis

Any owned private tech stack can be promoted to public. Making it public allows it to be accessed by the others.

Promote an owned tech stack from private scope to public. Promotion cannot be undone. Confirmation is required.

name: the unique name of the tech stack package ZIP file used when published

To promote a tech stack from being private to public, referenced by name myStack:

harbormaster stack_promote myStack

Techstack Demotion

harbormaster stack_demote <name>

Demotes a tech stack

Synopsis

Any owned public tech stack can be demoted to private. Making it private disallows access by the others.

Demote an owned tech stack from public scope to private. Confirmation is required.

name: the unique name of the tech stack package ZIP file used when published

To demote a tech stack from being public to private, referenced by name myStack:

harbormaster stack_demote myStack

Techstack Deletion

harbormaster stack_delete <name>

Delete a tech stack.

Synopsis

Can only delete an owned private tech stack. Deletion cannot be undone.

name: the unique name of the tech stack package ZIP file used when published

To delete a tech stack referenced by name myStack, prompted to confirm:

harbormaster stack_delete myStack