Listing scripts

The getOperate script list command is used to list all scripts in the remote workspace.

getOperate script

Pushing a script

The getOperate script push command is used to push a local script to the remote server, overriding any existing remote versions of the script. This command allows you to manage and synchronize your scripts across different environments.

This command support .ts, .js, .py, .go and .sh files.

getOperate script push <path>

Arguments

ArgumentDescription
pathThe path to the local script file that needs to be pushed.

Examples

  • Push the script located at /path/to/script.js
getOperate script push /path/to/script.js

Creating a new script

The getOperate script bootstrap command is used to create a new script locally in the desired language.

getOperate script bootstrap [--summary <summary>] [--description <description>] <path> <language>

Arguments

ArgumentDescription
pathThe path of the script to be created.
languageThe language of the new script. It should be one of deno, python3, bun, bash, go, nativets, postgresql, mysql, bigquery, snowflake, mysql, graphql, powershell

Examples

  1. Create a new python script f/scripts/hallowed_script
getOperate script bootstrap f/scripts/hallowed_script python3
  1. Create a new deno script f/scripts/auspicious_script with a summary and a description
getOperate script bootstrap --summary 'Great script' --description 'This script does this and that' f/scripts/auspicious_script deno

(Re-)Generating a script metadata file

The getOperate script generate-metadata command is used to update a script metadata file, inferring the script schema from the script content and generating the locks. Only the schema and the locks part of the metadata file will be updated. If a change was made to other fields like description or summary, it will be kept.

getOperate script generate-metadata [--lock-only] [--schema-only] <path>

Arguments

ArgumentDescription
pathThe path of the script content file.

Examples

  • After update the of the script f/scripts/hallowed_script.py, re-generate its schema and its locks:
getOperate script update-metadata f/scripts/hallowed_script.py

Showing a script

The getOperate script show command is used to show the contents of a script on the remote server.

getOperate script show <path>

Arguments

ArgumentDescription
pathThe path to the remote script file that needs to be shown.

Examples

  • Show the script located at f/scripts/test
getOperate script show f/scripts/test

Running a script

Running a script by its path s done using the getOperate script run command.

getOperate script run <remote_path> [options]

Arguments

ArgumentDescription
remote_pathThe path of the script to be run.

Options

OptionParametersDescription
-d, --datadataInputs specified as a JSON string or a file using @filename or stdin using @- . Resources and variables must be passed using “res:..."or"res:..." or "var:…” For example getOperate script run u/henri/message_to_slack -d '{"slack":"$res:u/henri/henri_slack_perso","channel":"general","text":"hello dear team"}'
-s, --silentNoneDo not ouput anything other then the final output. Useful for scripting.

Remote path format

<u|g|f>/<username|group|folder>/...