Skip to content

Cozy stack assets add

cozy-stack assets add

Insert a dynamic asset


Insert an asset that will be available on https:///assets/

For example, if a dynamic asset with the name ‘/foo/bar/baz’ is added for a context foocontext, and an instance is in the foocontext context, then this asset can be requested on (and not on ‘’).

cozy-stack assets add --url <url> --name <name> --shasum <shasum> --context <context> [flags]


$ cozy-stack assets add --url file:///foo/bar/baz.js --name /foo/bar/baz.js --shasum 0763d6c2cebee0880eb3a9cc25d38cd23db39b5c3802f2dc379e408c877a2788 --context foocontext


      --context string   The context of the asset
  -h, --help             help for add
      --name string      The name of the asset
      --shasum string    The shasum of the asset
      --url string       The URL of the asset

Options inherited from parent commands

      --admin-host string   administration server host (default "localhost")
      --admin-port int      administration server port (default 6060)
  -c, --config string       configuration file (default "$HOME/.cozy.yaml")
      --host string         server host (default "localhost")
  -p, --port int            server port (default 8080)