Skip to content

azion_create_storage_object

GitHub Action edited this page Jan 5, 2026 · 1 revision

azion create storage object

Creates objects in Storage

Synopsis

Allows users to create objects in Storage

azion create storage object [flags]

Examples

$ azion create storage object --bucket-name 'mynewbucket' --object-key 'path/to/my/remote/file.txt' --source './local/file.txt'

Options

      --bucket-name string   The name of the Storage bucket
      --file string          Path to a JSON file containing the attributes of the objects that will be created; you can use - for reading from stdin
  -h, --help                 Displays more information about the create storage objects command
      --object-key string    Name of the object to be stored in the bucket. You can use a full file path (such as: path/to/file/bucket/file.txt)
      --source string        Path to the local file that will be uploaded to the bucket, path absoluto

Options inherited from parent commands

  -c, --config string      Sets the Azion configuration folder for the current command only, without changing persistent settings.
  -d, --debug              Displays log at a debug level
      --format string      Changes the output format passing the json value to the flag
  -l, --log-level string   Set the logging level, "debug", "info", or "error". (default "info")
      --no-color           Changes the output format passing the json value to the flag
      --out string         Exports the output to the given <file_path/file_name.ext>
  -s, --silent             Silences log completely; mostly used for automation purposes
      --timeout int        Defines how much time in seconds the CLI will wait before timing out from the HTTP connection (default 50)
  -t, --token string       Saves a given Personal Token locally to authorize CLI commands
  -y, --yes                Answers all yes/no interactions automatically with yes

SEE ALSO

Auto generated by spf13/cobra on 5-Jan-2026

Clone this wiki locally