Scripts
Listing scripts
The getOperate script
list command is used to list all scripts in the remote workspace.
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.
Arguments
Argument | Description |
---|---|
path | The path to the local script file that needs to be pushed. |
Examples
- Push the script located at
/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.
Arguments
Argument | Description |
---|---|
path | The path of the script to be created. |
language | The language of the new script. It should be one of deno , python3 , bun , bash , go , nativets , postgresql , mysql , bigquery , snowflake , mysql , graphql , powershell |
Examples
- Create a new python script
f/scripts/hallowed_script
- Create a new deno script
f/scripts/auspicious_script
with a summary and a description
(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.
Arguments
Argument | Description |
---|---|
path | The 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:
Showing a script
The getOperate script show command is used to show the contents of a script on the remote server.
Arguments
Argument | Description |
---|---|
path | The path to the remote script file that needs to be shown. |
Examples
- Show the script located at
f/scripts/test
Running a script
Running a script by its path s done using the getOperate script run
command.
Arguments
Argument | Description |
---|---|
remote_path | The path of the script to be run. |
Options
Option | Parameters | Description |
---|---|---|
-d, --data | data | Inputs specified as a JSON string or a file using @filename or stdin using @- . Resources and variables must be passed using “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, --silent | None | Do not ouput anything other then the final output. Useful for scripting. |