github.com/cozy/cozy-stack@v0.0.0-20240603063001-31110fa4cae1/docs/cli/cozy-stack_assets_add.md (about) 1 ## cozy-stack assets add 2 3 Insert a dynamic asset 4 5 ### Synopsis 6 7 Insert an asset that will be available on https://<instance>/assets/<name> 8 9 For example, if a dynamic asset with the name '/foo/bar/baz' is added for a 10 context foocontext, and an instance example.mycozy.cloud is in the foocontext 11 context, then this asset can be requested on 12 https://example.mycozy.cloud/assets/foo/bar/baz.js (and not on 13 'example-app.mycozy.cloud'). 14 15 ``` 16 cozy-stack assets add --url <url> --name <name> --shasum <shasum> --context <context> [flags] 17 ``` 18 19 ### Examples 20 21 ``` 22 $ cozy-stack assets add --url file:///foo/bar/baz.js --name /foo/bar/baz.js --shasum 0763d6c2cebee0880eb3a9cc25d38cd23db39b5c3802f2dc379e408c877a2788 --context foocontext 23 ``` 24 25 ### Options 26 27 ``` 28 --context string The context of the asset 29 -h, --help help for add 30 --name string The name of the asset 31 --shasum string The shasum of the asset 32 --url string The URL of the asset 33 ``` 34 35 ### Options inherited from parent commands 36 37 ``` 38 --admin-host string administration server host (default "localhost") 39 --admin-port int administration server port (default 6060) 40 -c, --config string configuration file (default "$HOME/.cozy.yaml") 41 --host string server host (default "localhost") 42 -p, --port int server port (default 8080) 43 ``` 44 45 ### SEE ALSO 46 47 * [cozy-stack assets](cozy-stack_assets.md) - Show and manage dynamic assets 48