Latest Threat Research:SANDWORM_MODE: Shai-Hulud-Style npm Worm Hijacks CI Workflows and Poisons AI Toolchains.Details
Socket
Book a DemoInstallSign in
Socket

@veecode-platform/safira-cli

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@veecode-platform/safira-cli

Generate a microservice project from your spec.

npmnpm
Version
0.11.3
Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

safira-cli

safira-cli.

oclif Version

Downloads/week License

Requiments

Before install safira-cli, check if you have installed the following dependencies:

Usage

$ npm install -g @veecode-platform/safira-cli
$ safira-cli COMMAND
running command...
$ safira-cli (--version)
@veecode-platform/safira-cli/0.11.3 linux-x64 node-v16.17.1
$ safira-cli --help [COMMAND]
USAGE
  $ safira-cli COMMAND
...

Commands

safira-cli argocd config-repo

Help you configure the GIT repository for your ArgoCD project

USAGE
  $ safira-cli argocd config-repo [--branch-name <value>] [--kubernetes-server <value>]

FLAGS
  --branch-name=<value>        branch name
  --kubernetes-server=<value>  kubernetes server

DESCRIPTION
  Help you configure the GIT repository for your ArgoCD project

EXAMPLES
  $ safira-cli argocd config-repo

safira-cli autocomplete [SHELL]

display autocomplete installation instructions

USAGE
  $ safira-cli autocomplete [SHELL] [-r]

ARGUMENTS
  SHELL  shell type

FLAGS
  -r, --refresh-cache  Refresh cache (ignores displaying instructions)

DESCRIPTION
  display autocomplete installation instructions

EXAMPLES
  $ safira-cli autocomplete

  $ safira-cli autocomplete bash

  $ safira-cli autocomplete zsh

  $ safira-cli autocomplete --refresh-cache

See code: @oclif/plugin-autocomplete

safira-cli bitbucket credential remove

Remove bitbucket credential

USAGE
  $ safira-cli bitbucket credential remove [--help]

FLAGS
  --help  Show CLI help.

DESCRIPTION
  Remove bitbucket credential

EXAMPLES
  $ safira-cli bitbucket credential remove

safira-cli bitbucket credential set

Configure bitbucket credential

USAGE
  $ safira-cli bitbucket credential set [--help] [-t <value>]

FLAGS
  -t, --token=<value>  token
  --help               Show CLI help.

DESCRIPTION
  Configure bitbucket credential

EXAMPLES
  $ safira-cli bitbucket credential set

  $ safira-cli bitbucket credential set --email=xxxx --username=xxxx --token=xxxx

safira-cli commands

list all the commands

USAGE
  $ safira-cli commands [--json] [-h] [--hidden] [--tree] [--columns <value> | -x] [--sort <value>] [--filter
    <value>] [--output csv|json|yaml |  | [--csv | --no-truncate]] [--no-header | ]

FLAGS
  -h, --help         Show CLI help.
  -x, --extended     show extra columns
  --columns=<value>  only show provided columns (comma-separated)
  --csv              output is csv format [alias: --output=csv]
  --filter=<value>   filter property by partial string matching, ex: name=foo
  --hidden           show hidden commands
  --no-header        hide table header from output
  --no-truncate      do not truncate output to fit screen
  --output=<option>  output in a more machine friendly format
                     <options: csv|json|yaml>
  --sort=<value>     property to sort by (prepend '-' for descending)
  --tree             show tree of commands

GLOBAL FLAGS
  --json  Format output as json.

DESCRIPTION
  list all the commands

See code: @oclif/plugin-commands

safira-cli devportal install

Install the Devportal

USAGE
  $ safira-cli devportal install [--domain <value>] [--secure yes|no] [--okta-client-id <value>] [--okta-client-secret
    <value>] [--okta-id <value>] [--spec-house-branch <value>] [--spec-house-provider github] [--spec-house-owner-repo
    <value>]

FLAGS
  --domain=<value>                 domain
  --okta-client-id=<value>         okta clientid
  --okta-client-secret=<value>     okta clientsecret
  --okta-id=<value>                okta account id
  --secure=<option>                secure
                                   <options: yes|no>
  --spec-house-branch=<value>      branch to listen specs
  --spec-house-owner-repo=<value>  owner/repo
  --spec-house-provider=<option>   spec house provider
                                   <options: github>

DESCRIPTION
  Install the Devportal

EXAMPLES
  $ safira-cli devportal install

safira-cli devportal remove

Remove the Devportal

USAGE
  $ safira-cli devportal remove [-h]

FLAGS
  -h, --help  Show CLI help.

DESCRIPTION
  Remove the Devportal

EXAMPLES
  $ safira-cli devportal remove

safira-cli devportal stack install

Install devportal stack

USAGE
  $ safira-cli devportal stack install [-n <value>] [-f]

FLAGS
  -f, --force
  -n, --name=<value>  name to print

DESCRIPTION
  Install devportal stack

EXAMPLES
  $ safira-cli devportal stack install

safira-cli devportal stack remove

Remove devportal stack

USAGE
  $ safira-cli devportal stack remove [-n <value>] [-f]

FLAGS
  -f, --force
  -n, --name=<value>  name to print

DESCRIPTION
  Remove devportal stack

EXAMPLES
  $ safira-cli devportal stack remove

safira-cli doctor

Check the health of the dependencies

USAGE
  $ safira-cli doctor [-d] [--file <value>]

FLAGS
  -d, --dev
  --file=<value>

DESCRIPTION
  Check the health of the dependencies

EXAMPLES
  $ safira-cli doctor

See code: dist/commands/doctor.ts

safira-cli github credential remove

Remove github credential

USAGE
  $ safira-cli github credential remove [--help]

FLAGS
  --help  Show CLI help.

DESCRIPTION
  Remove github credential

EXAMPLES
  $ safira-cli github credential remove

safira-cli github credential set

Configure github credential

USAGE
  $ safira-cli github credential set [--help] [-t <value>]

FLAGS
  -t, --token=<value>  token
  --help               Show CLI help.

DESCRIPTION
  Configure github credential

EXAMPLES
  $ safira-cli github credential set

  $ safira-cli github credential set --email=xxxx --username=xxxx --token=xxxx

safira-cli gitlab credential remove

Remove gitlab credential

USAGE
  $ safira-cli gitlab credential remove [--help]

FLAGS
  --help  Show CLI help.

DESCRIPTION
  Remove gitlab credential

EXAMPLES
  $ safira-cli gitlab credential remove

safira-cli gitlab credential set

Configure gitlab credential

USAGE
  $ safira-cli gitlab credential set [--help] [-t <value>]

FLAGS
  -t, --token=<value>  token
  --help               Show CLI help.

DESCRIPTION
  Configure gitlab credential

EXAMPLES
  $ safira-cli gitlab credential set

  $ safira-cli gitlab credential set --email=xxxx --username=xxxx --token=xxxx

safira-cli help [COMMAND]

Display help for safira-cli.

USAGE
  $ safira-cli help [COMMAND] [-n]

ARGUMENTS
  COMMAND  Command to show help for.

FLAGS
  -n, --nested-commands  Include all nested commands in the output.

DESCRIPTION
  Display help for safira-cli.

See code: @oclif/plugin-help

safira-cli insomnia export

Export your insomnia spec

USAGE
  $ safira-cli insomnia export [-h]

FLAGS
  -h, --help  Show CLI help.

DESCRIPTION
  Export your insomnia spec

safira-cli insomnia test

Run your insomnia test

USAGE
  $ safira-cli insomnia test [-h] [--inso-spec-name <value>]

FLAGS
  -h, --help                Show CLI help.
  --inso-spec-name=<value>  The name of the INSO specification.

DESCRIPTION
  Run your insomnia test

safira-cli kong install

Install Kong in your k8s cluster

USAGE
  $ safira-cli kong install [--help] [--domain <value>] [--secure yes|no] [--mode dbless|hybrid|standard]
    [--license <value>] [--HA yes|no] [--rbac-password <value>] [--kong-plane control|data] [--kong-telemetry-url
    <value>] [--kong-cp-url <value>] [--postgres-password <value>]

FLAGS
  --HA=<option>                 Use High Availability mode
                                <options: yes|no>
  --domain=<value>              domain
  --help                        Show CLI help.
  --kong-cp-url=<value>         Specifies which Kong CP to point at
  --kong-plane=<option>         Specifies the Plane to install on Hybrid Mode
                                <options: control|data>
  --kong-telemetry-url=<value>  Specifies which telemetry endpoint
  --license=<value>             Path to license file
  --mode=<option>               Kong mode (Hybrid only available in Kong Enterprise)
                                <options: dbless|hybrid|standard>
  --postgres-password=<value>   Postgres password if in Hybrid or Standard Mode
  --rbac-password=<value>       RBAC password
  --secure=<option>             secure
                                <options: yes|no>

DESCRIPTION
  Install Kong in your k8s cluster

EXAMPLES
  $ safira-cli kong install

safira-cli kong remove

Remove kong

USAGE
  $ safira-cli kong remove [--help] [--domain <value>] [--secure yes|no] [--mode dbless|hybrid|standard]
    [--enterprise yes|no] [--license <value>]

FLAGS
  --domain=<value>       domain
  --enterprise=<option>  Kong enterprise
                         <options: yes|no>
  --help                 Show CLI help.
  --license=<value>      Path to license file
  --mode=<option>        Kong mode (Hybrid only available in Kong Enterprise)
                         <options: dbless|hybrid|standard>
  --secure=<option>      secure
                         <options: yes|no>

DESCRIPTION
  Remove kong

EXAMPLES
  $ safira-cli kong remove

safira-cli mockserver install

Install a mockserver

USAGE
  $ safira-cli mockserver install [--domain <value>] [--secure yes|no] [--ssl yes|no] [--crt-file <value>] [--key-file
    <value>] [--secure-admin yes|no] [--cors <value>]

FLAGS
  --cors=<value>           List of hosts to configure Cors
  --crt-file=<value>       Specifies the mockserver .crt file path
  --domain=<value>         Specifies the domain to use in the application
  --key-file=<value>       Specifies the mockserver .key file path
  --secure=<option>        Specifies if the application will have HTTPS
                           <options: yes|no>
  --secure-admin=<option>  Specifies if CPanel must be secured with apikey
                           <options: yes|no>
  --ssl=<option>           Specifies if the application will have HTTPS
                           <options: yes|no>

DESCRIPTION
  Install a mockserver

EXAMPLES
  $ safira-cli mockserver install

safira-cli mockserver remove

Remove mockserver

USAGE
  $ safira-cli mockserver remove [--help]

FLAGS
  --help  Show CLI help.

DESCRIPTION
  Remove mockserver

EXAMPLES
  $ safira-cli mockserver remove

safira-cli mockserver spec deploy

Deploys the spec to the mock server

USAGE
  $ safira-cli mockserver spec deploy [--help] [--server-url <value>] [--context <value>] [--api-key <value>]

FLAGS
  --api-key=<value>     api key
  --context=<value>     api context
  --help                Show CLI help.
  --server-url=<value>  mock server url

DESCRIPTION
  Deploys the spec to the mock server

EXAMPLES
  $ safira-cli mockserver spec deploy

safira-cli okta credential remove

Remove Okta credential

USAGE
  $ safira-cli okta credential remove [--help]

FLAGS
  --help  Show CLI help.

DESCRIPTION
  Remove Okta credential

EXAMPLES
  $ safira-cli okta credential remove

safira-cli okta credential set

Configure Okta credential

USAGE
  $ safira-cli okta credential set [--help] [-a <value>] [-s <value>]

FLAGS
  -a, --client-id=<value>      Okta client id
  -s, --client-secret=<value>  Okta client secret
  --help                       Show CLI help.

DESCRIPTION
  Configure Okta credential

EXAMPLES
  $ safira-cli okta credential set

  $ safira-cli okta credential set --client-id=xxxx --client-secret=xxxx

safira-cli okteto context

Change Okteto context

USAGE
  $ safira-cli okteto context [-l <value>] [--log-output <value>] [--help] [-b <value>] [-n <value>] [-t <value>]

FLAGS
  -b, --builder=<value>    url of the builder service
  -l, --log-level=<value>  amount of information outputted (debug, info, warn, error) (default "warn"
  -n, --namespace=<value>  namespace of your okteto context
  -t, --token=<value>      API token for authentication
  --help                   help for context
  --log-output=<value>     output format for logs (tty, plain, json) (default "tty")

DESCRIPTION
  Change Okteto context

safira-cli okteto context delete

Delete a okteto context

USAGE
  $ safira-cli okteto context delete [-l <value>] [--log-output <value>]

FLAGS
  -l, --log-level=<value>  amount of information outputted (debug, info, warn, error) (default "warn"
  --log-output=<value>     output format for logs (tty, plain, json) (default "tty")

DESCRIPTION
  Delete a okteto context

EXAMPLES
  $ safira-cli okteto context delete

safira-cli okteto context list

List available okteto contexts

USAGE
  $ safira-cli okteto context list [-l <value>] [--log-output <value>] [--help] [-o <value>]

FLAGS
  -l, --log-level=<value>  amount of information outputted (debug, info, warn, error) (default "warn"
  -o, --output=<value>     output format. One of: json|yaml
  --help                   help for list
  --log-output=<value>     output format for logs (tty, plain, json) (default "tty")

DESCRIPTION
  List available okteto contexts

EXAMPLES
  $ safira-cli okteto context list

safira-cli okteto context show

Print the current okteto context

USAGE
  $ safira-cli okteto context show [-l <value>] [--log-output <value>] [--help] [-o json|yaml]

FLAGS
  -l, --log-level=<value>   amount of information outputted (debug, info, warn, error) (default "warn"
  -o, --output=(json|yaml)  output format. One of: ['json', 'yaml'] (default "json")
  --help                    help for show
  --log-output=<value>      output format for logs (tty, plain, json) (default "tty")

DESCRIPTION
  Print the current okteto context

EXAMPLES
  $ safira-cli okteto context show

safira-cli okteto context use

Set the default okteto context

USAGE
  $ safira-cli okteto context use [-l <value>] [--log-output <value>] [--help] [-b <value>] [-n <value>] [-t <value>]

FLAGS
  -b, --builder=<value>    url of the builder service
  -l, --log-level=<value>  amount of information outputted (debug, info, warn, error) (default "warn"
  -n, --namespace=<value>  namespace of your okteto context
  -t, --token=<value>      API token for authentication
  --help                   help for use
  --log-output=<value>     output format for logs (tty, plain, json) (default "tty")

DESCRIPTION
  Set the default okteto context

EXAMPLES
  $ safira-cli okteto context use

safira-cli okteto destroy

Destroy everything created

USAGE
  $ safira-cli okteto destroy [-c <value>] [-d <value>] [-f <value>] [--force-destroy] [--help] [--name <value>] [-n
    <value>] [--no-bash] [--volumes]

FLAGS
  -c, --context=<value>       context where the down command is executed
  -d, --dependencies=<value>  destroy dependencies
  -f, --file=<value>          path to the manifest file (default 'okteto.yml')
  -n, --namespace=<value>     namespace where the up command is executed
  --force-destroy             forces the development environment to be destroyed even if there is an error executing the
                              custom destroy commands defined in the manifest
  --help                      help for down
  --name=<value>              development environment name
  --no-bash                   execute commands without bash
  --volumes                   remove persistent volume

DESCRIPTION
  Destroy everything created

safira-cli okteto down

Deactivate your development container

USAGE
  $ safira-cli okteto down [-l <value>] [--log-output <value>] [-c <value>] [-f <value>] [--help] [-n <value>]
    [--volumes]

FLAGS
  -c, --context=<value>    context where the down command is executed
  -f, --file=<value>       path to the manifest file (default 'okteto.yml')
  -l, --log-level=<value>  amount of information outputted (debug, info, warn, error) (default "warn"
  -n, --namespace=<value>  namespace where the up command is executed
  --help                   help for down
  --log-output=<value>     output format for logs (tty, plain, json) (default "tty")
  --volumes                remove persistent volume

DESCRIPTION
  Deactivate your development container

safira-cli okteto up

Launch your development environment

USAGE
  $ safira-cli okteto up [-l <value>] [--log-output <value>] [--build] [-c <value>] [-f <value>] [--help] [-n
    <value>] [--pull] [-r <value>] [--reset] [-l <value>]

FLAGS
  -c, --context=<value>    context where the up command is executed
  -f, --file=<value>       path to the manifest file (default 'okteto.yml')
  -l, --log-level=<value>  amount of information outputted (debug, info, warn, error) (default "warn"
  -l, --loglevel=<value>   amount of information outputted (debug, info, warn, error) (default 'warn')
  -n, --namespace=<value>  namespace where the up command is executed
  -r, --remote=<value>     configures remote execution on the specified port
  --build                  build on-the-fly the dev image using the info provided by the 'build' okteto manifest field
  --help                   help for up
  --log-output=<value>     output format for logs (tty, plain, json) (default "tty")
  --pull                   force dev image pull
  --reset                  reset the file synchronization database

DESCRIPTION
  Launch your development environment

safira-cli openapi validate [FILE-PATH]

Validates your openapi file.Supports json or yaml file.

USAGE
  $ safira-cli openapi validate [FILE-PATH] [--help]

ARGUMENTS
  FILE-PATH  [default: ./openapi-swagger.yaml] Openapi template file location

FLAGS
  --help  Show CLI help.

DESCRIPTION
  Validates your openapi file.Supports json or yaml file.

EXAMPLES
  $ safira-cli openapi validate

  $ safira-cli openapi validate ./openapi-swagger.json

  $ safira-cli openapi validate ./openapi-swagger.yaml

safira-cli project new

Create a new project

USAGE
  $ safira-cli project new [--help] [-l <value>] [-f springboot|quarkus] [--project-description <value>]
    [--java-pack-manager gradle|maven] [--java-springboot-version <value>] [--java-package <value>] [--java-version
    java8|java11|java17] [--application-port <value>] [--kong-kubernetes yes|no] [--use-database yes|no] [--database
    postgresql|mysql|mariadb|oracle] [--database-url <value>] [--database-user <value>] [--database-password <value>]
    [--export-spec yes|no] [--quarkus-version <value>]

FLAGS
  -f, --framework=(springboot|quarkus)
  -l, --language=java                           Programming language to use
  --application-port=8080                       Application port
  --database=(postgresql|mysql|mariadb|oracle)  The database provider
  --database-password=password123               The password of the database
  --database-url=localhost:5432/database        The url of the database
  --database-user=User                          The user of the database
  --export-spec=(yes|no)                        Export spec
  --help                                        Show CLI help.
  --java-pack-manager=(gradle|maven)            Java package management
  --java-package=com.safira.demo                Java package
  --java-springboot-version=2.5.13              Springboot version
  --java-version=(java8|java11|java17)          Java version
  --kong-kubernetes=(yes|no)                    Generate Kong for Kubernetes configuration
  --project-description=<value>                 The description of the new project.
  --quarkus-version=<value>                     Quarkus version
  --use-database=(yes|no)                       Use database

DESCRIPTION
  Create a new project

EXAMPLES
  $ safira-cli project new

  $ safira-cli project new app-name

  $ safira-cli project new app-name --language java11 --java-pack-manager gradle --application-port 8090

  $ safira-cli project new .  -create a project in the current folder

safira-cli project update

Update an existing safira project

USAGE
  $ safira-cli project update [-h] [-o <value>] [-i <value>] [--inso-spec-name <value>]

FLAGS
  -h, --help                        Show CLI help.
  -i, --insomnia-workspace=<value>  Import OpenAPI file from the INSOMNIA Workspace.
  -o, --openapi-file-path=<value>   The path to the OpenAPI file.
  --inso-spec-name=<value>          The name of the INSO specification.

DESCRIPTION
  Update an existing safira project

safira-cli spec configure

Publish a spec file using pipeline

USAGE
  $ safira-cli spec configure [-s <value>]

FLAGS
  -s, --select-spec=<value>  Select the spec to publish.

DESCRIPTION
  Publish a spec file using pipeline

EXAMPLES
  $ safira-cli spec configure

safira-cli spec publish

Publish a spec directly to devPortal

USAGE
  $ safira-cli spec publish [-n <value>] [-f]

FLAGS
  -f, --force
  -n, --name=<value>  name to print

DESCRIPTION
  Publish a spec directly to devPortal

EXAMPLES
  $ safira-cli spec publish

safira-cli upgrade

Safira-CLI upgrade

USAGE
  $ safira-cli upgrade

DESCRIPTION
  Safira-CLI upgrade

EXAMPLES
  $ safira-cli upgrade

See code: dist/commands/upgrade.ts

Keywords

microservices

FAQs

Package last updated on 18 Oct 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts