0.0.4-alpha • Published 6 months ago

@ossy/cli v0.0.4-alpha

Weekly downloads
-
License
ISC
Repository
-
Last release
6 months ago

@ossy/cli

Command line tool that makes it easier to interact with our APIs

Cms

import-resource-templates

Imports resource templates to your workspace so that they can be used in the UI.

npx @ossy/cli cms import-resource-templates --authentication <cms-api-token> --ossy-file ossy.json

Workflow example

name: "[CMS] Upload resource templates"

on:
  workflow_dispatch:

jobs:

  upload-resource-templates:
    name: Upload resource templates
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2

      - uses: actions/setup-node@v2
        with:
          node-version: "16"

      - name: Upload
        run: |
          npx --yes @ossy/cli cms import-resource-templates \
            --authentication ${{ secrets.CMS_API_TOKEN }} \
            --ossy-file ossy.json \

Arguments

ArgumentDescriptionRequired
--authenticationYour personal CMS API tokenrequired
--ossy-filePath to the file containing the workspaceId and resource templatesrequired
0.0.4-alpha

6 months ago

0.0.3-alpha

6 months ago

0.0.2-alpha

7 months ago

0.0.1-alpha

10 months ago