Skip to main content

Saving and Load ActionScript

ActionScript can be saved and loaded with CLI tools.

Save

Download the ActionScript file.

hx actions:scripts:download ACTION_ID

USAGE

$ hx actions:scripts:download ACTION_ID

ARGUMENTS

ACTION_ID  action_id from hexabase

OPTIONS

-c, --context=context  use provided context instead of currently set context
-h, --help show CLI help
-o, --output=output output file
-t, --type=post|pre (required) script type

ALIASES

$ hx scripts:download

See code: src/commands/actions/scripts/download.ts

Loading

Upload your ActionScript file.

hx actions:scripts:upload ACTION_ID FILE

USAGE

$ hx actions:scripts:upload ACTION_ID FILE

ARGUMENTS

ACTION_ID  action_id from hexabase
FILE file to be uploaded, e.g. script.js

OPTIONS

-c, --context=context  use provided context instead of currently set context
-h, --help show CLI help
-t, --type=post|pre (required) script type
-y, --yes skip confirmation

ALIASES

$ hx scripts:upload

See code: src/commands/actions/scripts/upload.ts